Back to AI information
Breakthrough of the long-term running proxy problem: Anthropic proposed a combination of Initializer and Coding

Breakthrough of the long-term running proxy problem: Anthropic proposed a combination of Initializer and Coding

AI information Admin 130 views

Anthropic publishes an article on the engineering blog on how to design more effective harness structures for long-running, multi-turn AI agents across multiple rounds. The team pointed out that when existing agents build complex projects, they often have phenomena such as "half disconnected and restarted" due to limited context windows, and misjudged that the task has been completed, making it difficult to continue and steadily advance in multiple sessions.

To this end, this paper proposes a two-stage solution of "Initializer agent + coding agent" in the Claude Agent SDK: run the environment built by Initializer for the first time, generate a detailed feature list, initialize the git repository, create a progress log and init.sh script; After reading these artifacts, the coding agent selects only one open feature, completes the implementation and self-test, submits the code, and updates the progress record to keep the environment in a "clean state" that can continue development at any time.

The authors argue that this engineering constraint significantly mitigates the forgetfulness and drift of long-term agents, making them behave closer to process-adhering human engineers rather than one-time completion tools. The current experiment is mainly for full-stack web application development, and the future direction includes the introduction of specialized agents such as testing, quality assurance, and refactoring, and the extension of similar methods to other long-term tasks such as scientific research and financial modeling.

FAQ

Q: What does this "Long-term Agent Harness" article address?

A: The article focuses on issues such as AI agents easily forgetting context during multiple rounds of long tasks, breaking gears in the middle of tasks, or declaring completion prematurely, and explores how to keep agents moving steadily across multiple sessions.

Q: What does the Initializer agent do in the scenario?

A: It builds a basic environment during the first run, including generating feature requirements lists, creating git repositories and progress logs, writing init.sh, etc., providing a clear starting point for subsequent coding agents.

Q: How does a coding agent differ from the traditional "auto-write the entire project" approach?

A: The coding agent only selects one feature to implement each time, submits the code and updates the log after completing the self-test, emphasizing small steps and environment cleanup to avoid chaos caused by excessive changes at one time.

Q: Are these practices only applicable to web application development?

A: The current example is for a full-stack web project, but the author believes that ideas such as feature lists, progress files, and incremental submissions are expected to be extended to other long-term agency tasks such as scientific research and financial modeling.

Anthropic's long-term AI agent harness design ClaudeAgentSDK long-task agent practice Run the AI agent context management solution for a long time Multi-round conversation agents prevent disconnection in the middle of a task AI agent engineering for long-term projects The Initializer agent initializes the development environment process The coding agent implements code incrementally by features Build full-stack web application projects with AI agents Proxy architecture design under context window constraints Through the progress log, the AI agent continues to relay development Long task decomposition methodology based on feature list Automatically create a proxy for git repositories and init scripts How AI agents avoid misjudging that the task is complete Small-step and fast AI coding agent workflow design Make AI agents behave more like engineers who follow the process Multi-session AI agent keeps environment clean skill Reduce drift with harness constraint Claude agents Application of long-term AI agent in document iteration scenarios The use of long-task AI agents in complex codebases Integrate automated test agents into long-term development processes The future direction of introducing quality assurance and restructuring of specialized agents Long-term AI agent collaboration for scientific research projects The field of financial modeling adopts the idea of long-term AI agents Use progress files to have agents remember goals across sessions Reduce error rates by doing only one feature at a time Long-task AI agents avoid one-time completion of major changes Claude agents steadily advance projects through multiple iterations Design a recoverable AI-developed session template How to use log files to guide the next agent run Improve the AI agent reliability experience with engineering constraints Analysis of the problem of context forgetting in long dialogue tasks The harness structure makes agent task boundaries clearer The AI agent automatically initializes dependencies and project skeletons Split large projects into trackable feature subtasks An agent framework suitable for enterprise-level long-term development Long-term AI agents combined with version control best practices Access the Claude agent in the continuous integration pipeline Coordinate multi-agent collaboration with progress Kanban files Prevent agents from deviating from demand through harness policies AI agent system design for complex task chains How developers can configure the ClaudeAgentSDK long task Risks and boundary control of long-running AI agents Use automated logs to get agents to support audit trails Balance agent autonomy and constraints in long-form projects Map human engineering processes to AI agent behavior Long-term agent reliability construction for production environments The multi-agent architecture supports the division of labor for testing and quality assurance reconstruction Help agents recover context with structured artifacts Migration of Harness mode in cross-domain long tasks Choose the appropriate AI agent form when planning long-term tasks

Recommended Tools

More