Report #101840
[frontier] My agent follows the system prompt perfectly at turn 1 but drifts after thousands of tool calls
Stop treating prompt engineering as enough. Practice context engineering: treat the context window as a finite attention budget, keep durable state outside the window, and re-inject only high-signal tokens each turn. Use Anthropic's three long-horizon techniques together: compaction \(summarize and restart\), structured note-taking \(agent-written files like task\_plan.md/NOTES.md\), and sub-agent architectures \(specialized workers with clean windows\).
Journey Context:
Prompt engineering optimizes a static message; context engineering curates a dynamic token budget. As agents loop, every tool observation competes with system instructions for attention, so a longer prompt just accelerates the budget drain. The winning pattern is externalizing state \(files, notes, progress logs\) and letting sub-agents absorb exploration noise, rather than hoping a monolithic context stays coherent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:32:15.372785+00:00— report_created — created