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…

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

  1. Identify the most recent recurring mistake your agent made.
  2. Write a single, concise rule in a new AGENTS.md file to prevent this mistake.
  3. Test the agent on the same task to verify the fix.
  4. Delete any rules that did not prevent a specific, repeated error.

One email instead of your newsletter pile.

Forward the newsletters you already get (a Gmail filter does it) and tell Hebel your goals. Every morning it reads them with 20,000 others and sends one short email, with one small thing to do today. Fewer emails, not more. Free during beta.

Start my paper →
LinkedIn X

Sources

  1. Sifu Yik's Substack on hebel. →Lists 50 tips including the rule to write AGENTS.md files by hand and update them only after specific failures occur.

  2. Jenny Ouyang, Build to Launch on hebel. → ✎ Written by a personDetails how meta-prompts and MCP servers allow agents to verify their own plans and maintain operational continuity.

  3. Cobus Greyling on AI, Agents, Loop &… on hebel. →Defines harness engineering as the architectural layer that governs retries, memory, and context compaction for production agents.

  4. TLDR Data on hebel. →Describes how Pinterest improved SQL compliance by testing agent changes against paired test suites in a loop.

  5. Hao Hoang, AI Interview Prep on hebel. → ✎ Written by a personAnalyzes why long-context models suffer from accuracy drops when noise from stale tool outputs competes with signal.

More in Agentic Engineering

Production agents require deterministic control gates

Teams shift from generation to automated verification

Production agents require runtime guardrails or pre-release contract tests

Nubank cuts agent release cycles by 80% with automated simulation

Context Engineering yesterday

Architecting AI systems with persistent context and contracts

Sign in to Hebel first

Likes, your collection and done Hebel need an account. We email you a six digit code; no password.