TL;DR
This paper analyzes the architecture of Claude Code, an AI agentic coding tool, comparing it with OpenClaw to highlight design choices influenced by deployment context and human values.
Contribution
It provides a detailed architectural analysis of Claude Code, identifying core design principles, mechanisms, and differences from OpenClaw driven by deployment context.
Findings
Claude Code's core is a simple while-loop calling the model and tools.
The surrounding systems include permission controls, context management, and extensibility mechanisms.
Deployment context significantly influences architectural design choices.
Abstract
Claude Code is an agentic coding tool that can run shell commands, edit files, and call external services on behalf of the user. This study describes its comprehensive architecture by analyzing the publicly available TypeScript source code and further comparing it with OpenClaw, an independent open-source AI agent system that answers many of the same design questions from a different deployment context. Our analysis identifies five human values, philosophies, and needs that motivate the architecture (human decision authority, safety and security, reliable execution, capability amplification, and contextual adaptability) and traces them through thirteen design principles to specific implementation choices. The core of the system is a simple while-loop that calls the model, runs tools, and repeats. Most of the code, however, lives in the systems around this loop: a permission system with…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
