Your AI Agent Already Forgot Half of What You Told It
Summary
Andrew Stellman's May 28, 2026 article, "Your AI Agent Already Forgot Half of What You Told It," addresses the common problem of AI agents and chatbots losing context mid-workflow due to "context compaction." This occurs when an AI's fixed-size context window fills, causing it to truncate, compress, or inconsistently drop older information without notification. Stellman, drawing parallels to human team communication challenges from his 2005 book "Applied Software Project Management," proposes four techniques to externalize critical information. These include splitting discovery from documentation by writing observations to files like CONTRACTS.md, using AI-generated handoff documents for new sessions, providing acceptance criteria instead of step-by-step procedures, and employing spec documents as a single source of truth to bridge multiple AI tools. These methods, developed for projects like Octobatch and Quality Playbook, are shown to be effective for both AI skill development and general chatbot interactions, including managing the article series itself.
Key takeaway
For AI Engineers and Prompt Engineers managing complex AI workflows, proactively externalizing context is crucial to prevent silent information loss. You should implement strategies like splitting discovery from documentation, generating handoff documents for session continuity, and defining clear acceptance criteria instead of step-by-step procedures. Additionally, use shared spec documents as a single source of truth across different AI tools to maintain consistent design intent and avoid costly re-explanation.
Key insights
AI context loss is mitigated by externalizing information to persistent files.
Principles
- AI context windows have fixed sizes; information is lost when full.
- Split complex AI tasks into discovery and documentation phases.
- Define "done" with acceptance criteria, not procedural steps.
Method
Externalize AI's working memory by writing critical information to persistent files, preventing context compaction loss. This involves splitting tasks, creating handoff documents, defining acceptance criteria, and using shared spec documents.
In practice
- Write AI observations to external files like CONTRACTS.md.
- Ask AI to generate handoff documents before ending sessions.
- Define "done" for AI tasks using acceptance criteria.
Topics
- AI Context Management
- Agentic Engineering
- Prompt Engineering
- Context Compaction
- Handoff Documents
- Acceptance Criteria
Code references
Best for: AI Engineer, Machine Learning Engineer, Prompt Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by AI & ML – Radar.