Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems
이 뉴스, 어떠셨어요?
한 번의 탭으로 반응을 남겨요 · 로그인 불필요
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 architecture by analyzing the publicly available source code and comparing it with two independent open-source AI agent systems, OpenClaw and Hermes Agent, that answer many of similar or even the same design questions.
Our analysis identifies five human values, philosophies, and needs that motivate the architecture: human decision authority, safety, security, and privacy, reliable execution, capability amplification, and contextual adaptability.
We then trace them through thirteen design principles to 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 seven modes and an ML-based classifier, a five-layer compaction pipeline for context management, four extensibility mechanisms (MCP, plugins, skills, and hooks), a subagent delegation and orchestration mechanism, and append-oriented session storage.
Comparisons with OpenClaw and Hermes Agent show that the same design questions produce different answers across three deployment contexts.
Claude Code emphasizes per-action safety, OpenClaw emphasizes perimeter-level access, and Hermes renders per-action approvals across many surfaces.
At the runtime layer, Claude Code uses a single CLI loop, OpenClaw embeds the runtime within a gateway control plane, and Hermes uses one process whose role is set by its entry point.
At the context and extension layer, Claude Code extends the context window, OpenClaw registers gateway-wide capabilities, and Hermes provides pluggable memory and model backends.
We finally identify six open design directions for future agent systems, grounded in recent empirical, architectural, and policy literature.