hebel. today · 19 November 202624 / 80
Agentic Engineering · Context Engineering
Developers debate whether agent context needs manual curation or automated compaction
Curation over compaction. Sifu Yik Chan argues that developers should maintain an AGENTS.md file in the root of their workspace, adding rules only after the agent makes the same mistake twice. This approach relies…
From 5 newsletters · 1 min read · one thing to try
Curation over compaction. Sifu Yik Chan argues that developers should maintain an AGENTS.md file in the root of their workspace, adding rules only after the agent makes the same mistake twice (Sifu Yik's Substack). This approach relies on hand-written instructions that keep the context short, as research on 138 projects found that AI-generated context files increased costs by 20% without improving performance. Jenny Ouyang supports this focus on high-quality context by using meta-prompts that force the agent to question its own plan before starting work (Jenny Ouyang from Build to Launch).
Compaction through harnesses. Jason, a developer of Rust-based SDKs, advocates for automated compaction where harnesses like Claude Code or Pi trigger a reduction in session size once token counts hit a specific threshold, such as 75% of the context window. Cobus Greyling notes that this harness-level management of memory hierarchies and relevance scoring allows developers to offload the burden of manual token accounting (Cobus Greyling on AI, Agents, Loop &…). Pinterest’s analytics team implemented loop engineering to achieve 89.3% compliance on SQL tasks, testing changes on paired test suites to refine agent behavior automatically (TLDR Data).
The trade-off. The debate centers on whether reliability stems from human-led, hand-curated constraints or from automated systems that manage large-scale data flow. While manual curation avoids the noise of stale tool outputs that plague long-context sessions, automated compaction prevents the context length exceeded errors that occur during complex, multi-step agent operations (Hao Hoang from AI Interview Prep).
Try today · 15 min
Create an AGENTS.md file in your project root to capture specific, recurring errors.
Identify one rule that would have prevented the last mistake your agent made.
You need
- A text editor
- List of recent agent failures
Steps
- Identify the most recent recurring mistake your agent made.
- Write a single, concise rule in a new AGENTS.md file to prevent this mistake.
- Test the agent on the same task to verify the fix.
- Delete any rules that did not prevent a specific, repeated error.