Paper Dives Into Claude Code: Core Is a While-Loop, Safety and Context Are the Real Work
bibryam · x · 2026-09-15
A new arXiv paper, Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems, analyzes Claude Code's publicly available source code and compares it with two open-source agent systems, OpenClaw and Hermes Agent.
Key points:
- It derives 13 design principles from five human values/needs: human decision authority, safety/security/privacy, reliable execution, capability amplification, and contextual adaptability.
- The core is a simple while-loop that calls the model, runs tools, and repeats; most code lives in the surrounding systems.
- The permission system has seven modes plus an ML-based classifier; context management uses a five-layer compaction pipeline.
- Four extensibility mechanisms: MCP, plugins, skills, and hooks; plus subagent delegation/orchestration and append-oriented session storage.
- The same design questions get different answers across deployment contexts: Claude Code gates per-action safety, OpenClaw emphasizes perimeter access, Hermes renders approvals across surfaces.
Conclusion: deployment context shapes an agent system's trust model and architectural trade-offs.
More from coding & agent
- General Reasoning explains how to train agent swarms with RL and latency pressure — rosstaylor90 · 2026-11-02
- "Coding isn't the bottleneck anymore — usage windows are," says founder Kyle Gawley — kylegawley · 2026-11-02
- Demo passed ≠ production-ready: 5 questions to answer before letting agents run your business — _kellhus · 2026-11-02
- An AI agent passed 100 test chats—still not ready to run the business — djgoel123 · 2026-11-02
- Agent given total creative freedom produces a 1:44 code-drawn animated short film — ivegotnoidea1 · 2026-11-02
- Meme: Wake Up, Use Claude Code, Repeat All Day — tekbog · 2026-11-02