
Anthropic has published new engineering guidance on building effective harnesses for long-running AI agents, addressing one of the persistent challenges in autonomous systems: maintaining coherence and efficiency across multiple context windows.
The approach, detailed on the Anthropic Engineering Blog, applies traditional software development practices to AI agent workflows. Instead of treating agents as stateless operations, the guidance recommends structuring work feature by feature, documenting progress comprehensively, and ensuring clean handoffs between sessions.
Traditional Development Meets AI Agents
The core insight is simple. Long-running agents face the same challenges developers encounter in multi-day projects: losing track of decisions, repeating work, or leaving systems in fragile states. Anthropic's solution borrows directly from software engineering.
Agents should work incrementally, focusing on one feature or task at a time rather than attempting sweeping changes across an entire codebase or workflow. Each session should conclude with explicit documentation of what was accomplished, what remains, and the current system state. This creates natural checkpoints that help agents resume work efficiently without redundant context rebuilding.
The approach matters because context window limitations remain a fundamental constraint. Even as models like Claude expand their context capacity, following Anthropic's rapid enterprise growth, real-world agent tasks often span more tokens than a single session can hold. A harness that manages state explicitly performs better than one that relies on cramming everything into context.
Practical Implementation
Anthropically provides both a demonstration and an accompanying codebook showing how these principles work in practice. The documentation shows agents maintaining project logs, tracking feature completion, and writing handoff notes that subsequent sessions can parse.
This structured approach also surfaces another benefit: debuggability. When an agent leaves clear documentation of its reasoning and progress, developers can identify where workflows break down. Traditional logging and monitoring become possible.
The guidance arrives as businesses increasingly deploy AI agents for tasks beyond single-shot queries. Tools like Cursor, Windsurf, and Replit already implement various forms of long-running agent support for code generation. Anthropic's documentation provides a framework that extends beyond coding to any multi-step autonomous workflow.
Implications for Builders
For small business owners and builders using AI tools, this research suggests a broader principle. Treating AI agents like junior developers, complete with code review processes and clear project management, produces more reliable results than expecting magical autonomous performance.
The same structure that helps an AI agent track progress across sessions can help human teams collaborate with AI more effectively. Explicit documentation, incremental work, and clean state management are not just agent optimizations but human-AI interface improvements.
Anthropically's focus on engineering practices rather than pure model capabilities reflects a maturation in how companies approach AI deployment. As Claude expands into nonprofits and enterprise environments, the operational patterns that make agents reliable matter as much as the underlying model performance.
The full engineering blog post includes implementation examples and a working demo. Developers building agent systems can access the codebook for reference implementations of the documented patterns.
Sources
1 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.








