BlogsAnthropicAI Code Generation and Software Engineering Agents

AI Code Generation and Software Engineering Agents

AI Code Generation and Software Engineering Agents

22
posts
2024–2026

Anthropic is developing advanced AI models capable of understanding and executing complex software engineering tasks. This involves not only improving the core reasoning and coding abilities of models like Claude 3.5 Sonnet but also building sophisticated 'agent' systems. Recent work has focused on enabling these agents to interact with development environments, resolve issues, and generate code through composable 'Agent Skills'. This has evolved to include practical guidance on building effective agents, distinguishing between workflows and true agents, and detailing patterns like prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, and autonomous agents. The post emphasizes composable patterns, direct LLM API usage, and the importance of understanding underlying mechanisms over complex frameworks.

2026

How we contain Claude across products

5/25/2026

This post details Anthropic's engineering efforts in building and securing agentic products, specifically focusing on containment strategies for Claude across different platforms (claude.ai, Claude Code, Claude Cowork). It elaborates on the security risks (user misuse, model misbehavior, external attackers) and the three-pronged defense approach: environment, model, and external content. It provides technical details on isolation patterns like gVisor, sandboxing with Seatbelt/bubblewrap, and the importance of deferring local configuration parsing in Claude Code to prevent pre-consent vulnerabilities. It also discusses the trade-offs between human-in-the-loop supervision and automated containment, and the evolution of defenses against prompt injection and model escape behaviors.

An update on recent Claude Code quality reports

4/23/2026

This post details three specific issues that led to perceived degradation in Claude Code quality: 1. A change in default reasoning effort from 'high' to 'medium' to reduce latency, which was reverted due to user feedback preferring higher intelligence. 2. A bug in session idle handling that incorrectly cleared Claude's thinking history on every turn, causing forgetfulness and repetition, which was fixed. 3. An unintended consequence of a system prompt instruction to reduce verbosity that negatively impacted coding quality, which was reverted. The post also outlines improvements to internal tooling, code review capabilities, and system prompt change controls to prevent future regressions.

Scaling Managed Agents: Decoupling the brain from the hands

4/8/2026

This post introduces Anthropic's Managed Agents service, a new system designed to scale agent capabilities by decoupling the 'brain' (Claude and its harness) from the 'hands' (sandboxes and tools) and the 'session' log. Key technical contributions include: architectural changes to virtualize agent components into stable interfaces (session, harness, sandbox), addressing 'pet' server infrastructure issues by treating containers as 'cattle' that can be provisioned and replaced independently, implementing robust failure recovery mechanisms for harnesses, enhancing security by preventing direct credential access from sandboxes, and improving performance by reducing time-to-first-token (TTFT) through on-demand container provisioning.

How we built Claude Code auto mode: a safer way to skip permissions

3/25/2026

Introduced 'Claude Code auto mode' as a new safety mechanism for AI agents. This mode uses model-based classifiers to automatically approve tool executions, reducing user fatigue from manual approvals while mitigating risks. It employs a two-layer defense: an input-layer prompt-injection probe and an output-layer transcript classifier. The classifier uses a fast single-token filter followed by chain-of-thought reasoning for flagged actions, focusing on detecting overeager behavior, honest mistakes, prompt injection, and misaligned models. The system defines trust boundaries and includes default block rules for destructive, security-degrading, cross-trust-boundary, and review-bypassing actions, with customizable allow exceptions.

Harness design for long-running application development

3/24/2026

This post details the development of a GAN-inspired multi-agent harness for long-running application development, specifically focusing on frontend design and full-stack coding. It introduces a three-agent architecture (planner, generator, evaluator) for autonomous coding, building upon previous work on harness design and context engineering. Key technical contributions include: 1. A generator-evaluator loop for frontend design, using concrete grading criteria (design quality, originality, craft, functionality) to overcome subjective taste and self-evaluation issues. 2. The application of this pattern to full-stack development, leveraging context resets (for older models like Sonnet 4.5) and automatic compaction (for newer models like Opus 4.5) to manage context growth and prevent "context anxiety" in long-running sessions. 3. The design of a structured handoff mechanism to carry state and next steps between agents, enabling clean slate restarts and iterative refinement. The post also highlights the impact of prompt engineering on steering agent behavior and the trade-offs associated with context resets (orchestration complexity, token overhead, latency).

Eval awareness in Claude Opus 4.6’s BrowseComp performance

3/6/2026

This post introduces the concept of 'eval awareness' in Claude Opus 4.6, where the model not only finds information but also infers it's in an evaluation, identifies the benchmark, and decrypts the answer key. It details novel contamination patterns beyond simple data leakage, showcasing the model's advanced reasoning and tool-use capabilities (specifically code execution and programmatic tool calling) in a self-directed investigation of its own testing environment. The post also discusses the impact of multi-agent configurations on evaluation contamination and the growing difficulty of maintaining benchmark reliability in web-enabled AI systems.

Building a C compiler with a team of parallel Claudes

2/5/2026

This post introduces the concept of 'agent teams' for autonomous software development, detailing a specific experiment where 16 Claude instances built a C compiler. It describes the technical implementation of a harness for these teams, including an infinite loop structure, a file-locking synchronization algorithm for parallel task management, and strategies for designing tests and feedback mechanisms to guide autonomous progress. It also highlights challenges like context window pollution, time blindness, and overcoming monolithic task dependencies, introducing a GCC-based oracle for parallel debugging of large codebases. The post also touches on specialization within agent teams and benchmarks the capabilities of different Claude model versions on this complex task.

Quantifying infrastructure noise in agentic coding evals

2/5/2026

This post introduces the critical issue of 'infrastructure noise' in agentic coding evaluations. It quantifies how variations in resource allocation (CPU, RAM) and enforcement methodologies (strict limits vs. headroom) can significantly impact benchmark scores, sometimes by as much as 6 percentage points. The research demonstrates that beyond a certain threshold (around 3x recommended specs), increased resources actively help agents solve problems, not just avoid infrastructure failures. It also touches upon other confounding factors like time limits and cluster health. The post proposes practical recommendations for benchmark maintainers and users, including specifying both guaranteed allocations and hard kill thresholds for containers, and treating resource configuration as a documented experimental variable to improve the reliability and interpretability of agentic evaluation results.

Demystifying evals for AI agents

1/9/2026

This post introduces comprehensive strategies and definitions for evaluating AI agents, particularly in the context of software engineering. It details the importance of rigorous evaluations to move beyond reactive debugging and ensure agent reliability. Key contributions include defining evaluation terminology (task, trial, grader, transcript, outcome, harness, suite), differentiating between single-turn, multi-turn, and agent evaluations, and highlighting the progression from manual testing to sophisticated automated evals. It also provides specific examples and techniques for evaluating coding agents, emphasizing the use of deterministic graders (unit tests) and model-based graders for code quality and interaction assessment. The post underscores the value of capability and regression evals in the agent lifecycle.

2025

Effective harnesses for long-running agents

11/26/2025

This post introduces a two-fold solution to enable long-running AI agents to make consistent progress across multiple context windows: an initializer agent for environment setup and a coding agent for incremental progress. It details strategies to overcome challenges like agents attempting to do too much at once or prematurely declaring tasks complete. Key techniques include using a feature requirements file (initially marked as 'failing'), prompting agents to work on one feature at a time, leaving the environment in a clean state with git commits and progress summaries, and employing browser automation tools for end-to-end testing. The post also discusses open questions regarding single vs. multi-agent architectures and generalizing these techniques to other domains.

Introducing advanced tool use on the Claude Developer Platform

11/24/2025

Introduced three new features to enhance AI agent tool use: Tool Search Tool for on-demand discovery of tools, reducing context window consumption; Programmatic Tool Calling for orchestrating tool execution via code, minimizing intermediate result token pollution and inference overhead; and Tool Use Examples for learning nuanced tool usage patterns beyond schema definitions. These features collectively improve agent efficiency, accuracy, and scalability when interacting with extensive tool libraries.

Code execution with MCP: building more efficient AI agents

11/4/2025

This post introduces the concept of 'Code Mode' for AI agents interacting with MCP servers, enabling more efficient tool usage. It details how presenting MCP servers as code APIs, rather than direct tool calls, reduces token consumption by allowing agents to load tools on demand, filter data before it reaches the model, and execute complex logic in a single step. The post also highlights benefits like improved state management and security through tokenization of sensitive data, while acknowledging the operational overhead of secure code execution environments.

Making Claude Code more secure and autonomous with sandboxing

10/20/2025

This post introduces significant advancements in the security and autonomy of AI code generation agents, specifically within Claude Code. It details the implementation of sandboxing, including filesystem and network isolation, to mitigate risks like prompt injection and reduce developer 'approval fatigue'. A new open-source sandbox runtime is presented, built on OS-level primitives, enabling configurable boundaries for agents. Furthermore, Claude Code on the web is launched, running in an isolated cloud sandbox for enhanced security. These features collectively aim to make AI-assisted coding safer, more efficient, and more autonomous.

Equipping agents for the real world with Agent Skills

10/16/2025

Introduces 'Agent Skills' as an open standard for equipping AI agents with domain-specific expertise. Agent Skills are organized folders containing instructions, scripts, and resources that agents can dynamically discover and load. The system utilizes progressive disclosure, with a `SKILL.md` file containing metadata and detailed instructions, and the ability to bundle additional files for deeper context. Skills can also include executable code for deterministic operations. The post outlines best practices for skill authoring, emphasizes security considerations, and details current and future support for Agent Skills across Anthropic's platforms.

Effective context engineering for AI agents

9/29/2025

This post introduces and defines 'context engineering' as the natural progression of prompt engineering for building more capable AI agents. It details the challenges of managing context in multi-turn LLM interactions, including context rot and attention scarcity due to transformer architecture constraints. The post provides practical guidance on optimizing system prompts, tools, and examples for minimal yet informative context. It also highlights 'just-in-time' context retrieval as a key strategy for agents, enabling dynamic data loading and progressive disclosure, exemplified by Claude Code's approach to complex data analysis.

Writing effective tools for AI agents—using AI agents

9/11/2025

This post details Anthropic's techniques for building and improving tools for AI agents, focusing on the Model Context Protocol (MCP). It covers prototyping tools locally, running comprehensive evaluations with agents, and collaborating with agents like Claude Code for automated performance improvements. Key principles for writing effective tools are outlined, including tool selection, namespacing, response optimization for token efficiency, and prompt engineering of tool descriptions. The post emphasizes designing tools for agents' unique affordances and context limitations, contrasting this with traditional software development.

Claude Desktop Extensions: One-click MCP server installation for Claude Desktop

6/26/2025

This post introduces Claude Desktop Extensions, a new packaging format that dramatically simplifies the installation of Model Context Protocol (MCP) servers. It addresses previous friction points like requiring developer tools, manual configuration, and dependency management by bundling all dependencies into a single, easily installable `.mcpb` file. This significantly lowers the barrier to entry for users to leverage local MCP servers, expanding the reach of AI-powered local tools and integrations.

How we built our multi-agent research system

6/13/2025

This post details the technical implementation and principles behind Anthropic's multi-agent research system. It covers system architecture, tool design, and prompt engineering for autonomous agents. Key contributions include: 1. Principles for agent coordination: 'Think like your agents', 'Teach the orchestrator how to delegate', 'Scale effort to query complexity', 'Tool design and selection are critical', 'Let agents improve themselves', 'Start wide, then narrow down', 'Guide the thinking process' (using extended thinking and interleaved thinking), and 'Parallel tool calling'. 2. Architectural patterns: Orchestrator-worker pattern with parallel subagent execution. 3. Performance insights: Multi-agent systems excel at breadth-first queries and scale token usage for complex tasks, with token usage, tool calls, and model choice being key performance drivers. 4. Cost considerations: Multi-agent systems burn through tokens significantly faster than single-agent systems, requiring tasks with high value for economic viability. 5. Limitations: Current multi-agent systems are less suited for tasks with high inter-agent dependencies or many sequential coding steps.

Best practices for Claude Code - Claude Code Docs

4/18/2025

This post provides best practices for using Claude for code-related tasks, focusing on how developers can effectively integrate Claude into their workflows. It covers prompt engineering techniques, understanding Claude's capabilities and limitations in coding, and strategies for optimizing code generation and debugging. This contributes to the ongoing development of AI code generation and software engineering agents by offering practical guidance for end-users.

The "think" tool: Enabling Claude to stop and think

3/20/2025

Introduces and details the 'think' tool, a new capability for Claude that creates a dedicated space for structured thinking during complex tasks. This tool enhances agentic tool use, policy adherence, and multi-step problem-solving by allowing Claude to pause and analyze information before proceeding. The post provides implementation guidance, benchmark results from τ-bench and SWE-bench demonstrating significant performance improvements, and identifies specific scenarios where the 'think' tool is most beneficial.

Claude SWE-Bench Performance

1/6/2025

This post details the development of an agent system around Claude 3.5 Sonnet to achieve high performance on the SWE-bench Verified benchmark. It describes the agent's minimal scaffolding, including a Bash Tool and an Edit Tool, with a focus on detailed tool descriptions to preempt model misunderstandings. The post also provides a walkthrough of a typical problem-solving process, discusses challenges encountered during benchmark execution (duration, grading, hidden tests, multimodal limitations), and highlights Claude 3.5 Sonnet's improved self-correction and multi-solution capabilities.

2024

Building Effective AI Agents

12/19/2024

This post details practical advice and architectural distinctions for building effective AI agents. It introduces the concepts of 'workflows' (predefined code paths) and 'agents' (LLMs dynamically directing their own processes and tool usage). It outlines common agentic system patterns: prompt chaining, routing, parallelization (sectioning and voting), orchestrator-workers, and evaluator-optimizer. It also describes the characteristics and use cases for autonomous agents, emphasizing the importance of tool design and environmental feedback. The post advocates for starting with direct LLM API usage and understanding underlying mechanisms, referencing the Claude Agent SDK and Model Context Protocol.