Menu
The Pragmatic Engineer·March 4, 2026

Architecting Claude Code: AI-Assisted Development Workflows and Infrastructure

This article explores the architecture and workflow of Claude Code at Anthropic, detailing how it evolved from a side project into a critical internal tool for AI-assisted software development. It highlights practical system design choices such as using basic file search (glob and grep) over complex RAG for context retrieval, and the architectural considerations for sandboxing and permissions in derivative products like Claude Cowork.

Read original on The Pragmatic Engineer

Evolution of AI-Assisted Development at Anthropic

Anthropic's Claude Code, initially a side project, became a fundamental tool for engineers. The system facilitates rapid iteration by allowing engineers to run multiple Claude instances in parallel, generating significant numbers of Pull Requests (PRs) daily. This shift necessitates new development workflows, emphasizing rapid prototyping over extensive Product Requirement Documents (PRDs).

Key Architectural Decisions for Claude Code

  • Context Retrieval: Surprisingly, simple `glob` and `grep` commands, guided by the LLM, proved more effective for code context retrieval than sophisticated RAG architectures, local vector databases, or recursive model-based indexing. This approach avoided issues like stale indexes and complex permissioning.
  • Parallel Agent Execution: The system supports running multiple Claude instances simultaneously, often across different codebases or feature branches. This distributed execution model significantly boosts developer throughput, requiring robust session management and environment isolation.
  • Sandboxing and Permissions: For products like Claude Cowork, which extends AI coding tools to non-technical users, safety and security are paramount. The architecture incorporates advanced sandboxing via shipping VMs and OS-level protections against accidental file deletion. This also necessitated a rethinking of the permission model to prevent unauthorized access or modification for less technical users.
💡

Architectural Simplicity for AI Tools

The success of Claude Code's agentic search with basic `glob` and `grep` illustrates that for certain AI-driven tasks, leveraging robust, battle-tested tools with simple interfaces, and allowing the LLM to orchestrate their use, can often outperform complex, custom-built AI infrastructure solutions. This can lead to greater reliability and easier maintenance.

Impact on Engineering Workflow and Infrastructure

The adoption of AI coding tools like Claude Code blurs the lines between traditional engineering roles and shifts focus towards managing parallel agents and rapid context switching. The article also reinforces the importance of a solid infrastructure foundation; fixing foundational issues (like broken type checkers or outdated frameworks) before building new products is critical for long-term productivity, a lesson learned from Meta's engineering culture.

AI developmentLLMdeveloper toolsworkflow automationsandboxingcode generationsystem architectureagentic AI

Comments

Loading comments...