Dive into Claude Code
VILA-Lab/Dive-into-Claude-Code
Architecture analysis of Claude Code with a design guide and comparison against OpenClaw and Hermes-Agent
Dive into Claude Code is a research repository that analyzes the source-level architecture of Claude Code and turns it into design guidance for people building AI agent systems. It includes a cross-system comparison of Claude Code, OpenClaw and Hermes-Agent, which makes it a reference for Hermes Agent users comparing agent designs.
What Dive into Claude Code does
The repository accompanies a paper on Claude Code version 2.1.88, covering about 1,900 TypeScript files. It walks through the agentic query loop, permission and safety layers, extensibility mechanisms, context and memory handling, subagent delegation and session persistence. Its headline claim is that AI decision logic is a small slice of the codebase, and that the rest is deterministic infrastructure such as permission gates, context management, tool routing and recovery.
Beyond the paper, the README adds a design guide for building your own agent, a section on newer signals in the agent design space, a catalog of community analyses and projects organized by design question, and a cross-system comparison of Claude Code, OpenClaw and Hermes-Agent. The architecture analysis itself describes Claude Code, not Hermes Agent, so the comparison section is the part that speaks to Hermes users.
Key features
- Source-level architecture analysis of Claude Code v2.1.88
- Documentation of seven safety layers and five compaction stages
- Design guide for building an AI agent system
- Cross-system comparison of Claude Code, OpenClaw and Hermes-Agent
- Catalog of community projects and research organized by design question
- Link to the full paper on arXiv
When to use it
- Comparing how Claude Code and Hermes Agent handle permissions, memory and subagents
- Learning how production coding agents are structured before building a custom agent
- Finding community research on coding-agent architecture
Who it is for: Agent builders and researchers who want a structured study of how a production coding agent is put together.
How it fits with Hermes Agent
It is not software for Hermes Agent. It supports Hermes users as a reference, through a comparison of Claude Code, OpenClaw and Hermes-Agent.
Note: The architecture analysis covers Claude Code v2.1.88 rather than Hermes Agent.
FAQ
What is Dive into Claude Code?
Dive into Claude Code is a research repository with a source-level architectural analysis of Claude Code, a design guide for agent builders and a catalog of community analyses.
Does Dive into Claude Code work with Hermes Agent?
It is a documentation and research repository, so there is nothing to run. It does include a section comparing Claude Code, OpenClaw and Hermes-Agent.
Is Dive into Claude Code free and open source?
The repository's license is reported as NOASSERTION, which means GitHub could not match it to a standard license. Check the repository's license file before reusing its content.
Similar resources for Hermes Agent
All resourcesCurated list of open-source tools and products for building AI agents, with Hermes Agent listed
LearnPrompt LearnPromptFree Chinese-language AI course covering Hermes, OpenClaw, Claude Code, Codex, Obsidian and more
slavakurilyak Awesome AI AgentsCurated list of 300+ agentic AI projects, with Hermes Agent listed under agents and long-term memory
NVIDIA NVIDIA DGX Spark PlaybooksNVIDIA setup guides for DGX Spark, including a playbook for running Hermes Agent with a local LLM
e2b-dev E2B CookbookExample code and guides for E2B sandboxes, with a Hermes Agent incident-triage skill example
bradAGI Awesome CLI Coding AgentsCurated list of 130+ terminal coding agents and their harnesses, with Hermes Agent listed first
Related guides: SOUL.md for Hermes Agent: what it is and how to write one · What is Hermes Agent?