<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prompt Engineering on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/prompt-engineering/</link>
    <description>Recent content in Prompt Engineering on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 19 Jul 2026 18:30:00 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/prompt-engineering/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Why Does AI Keep Saying ‘I Forgot’? Tokens, Context Windows, and the Sticky Notes It Must Throw Away</title>
      <link>https://blog.margrop.net/en/post/ai-token-context-window-sticky-notes/</link>
      <pubDate>Sun, 19 Jul 2026 18:30:00 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/ai-token-context-window-sticky-notes/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;AI often appears to have a bad memory because only a limited amount of material can be carried into the model for the current request. Think of a context window as a stack of sticky notes with finite capacity. New questions and tool outputs keep adding notes. Once the stack is full, the system must summarize, truncate, filter, or remove older notes. If a note is removed from the current context, the model may no longer be able to use it.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Have you ever told an AI, “Use Python for every code example,” only to receive JavaScript fifteen turns later? Or supplied a long document that the model can summarize accurately at the beginning and end, but cannot answer about the important restriction buried in the middle?&lt;/p&gt;&#xA;&lt;p&gt;It is tempting to say that the AI “forgot.” A more precise explanation is this: &lt;strong&gt;the model can only see what fits inside the current context window, and seeing a piece of text does not guarantee that every part of it receives equal attention.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;This article explains tokens and context windows without turning them into intimidating mathematics. The main analogy is a stack of sticky notes. We will look at what tokens are, how a request is assembled, why long conversations become unreliable, why agents fill their context quickly, and how to make AI forget less through simple information management.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Stop Worshipping Agent Frameworks: 12-Factor Agents as an Engineering Baseline</title>
      <link>https://blog.margrop.net/en/post/12-factor-agents-agent-principles/</link>
      <pubDate>Sat, 23 May 2026 14:50:00 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/12-factor-agents-agent-principles/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;12-Factor Agents&lt;/code&gt; is not an installable agent framework, and it is not a Skill for Codex, Claude, Cursor, or any other agent runtime. It is better understood as a set of engineering principles for the AI era. When a system made from a large model, a tool list, and a while loop reaches the familiar 70% or 80% quality bar but refuses to become production-grade, these principles tell you where to look: prompts, context, structured outputs, state, human approval, error compaction, control flow, and recovery.&lt;/p&gt;&#xA;&lt;p&gt;The best part is that it does not romanticize agents. It says, in effect, that reliable agents are mostly software. The LLM is powerful, but it should live inside a system that is observable, interruptible, recoverable, auditable, and testable.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;All examples in this article use public projects, public links, and placeholders. No real server addresses, accounts, tokens, business configuration, or private network details are included. The figures are taken from the official &lt;code&gt;humanlayer/12-factor-agents&lt;/code&gt; repository and are referenced under the project author&amp;rsquo;s CC BY-SA 4.0 content license statement. Code license details should be checked in the upstream repository.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
