Model or dataset
VILA-Lab/Dive-into-Claude-Code avatar
VILA-Lab/Dive-into-Claude-Code

The Claude Code analysis states a ninety three percent approval rate and two CVEs without evidence

A Systematic Analysis and Discussion of Claude Code for Designing Today's and Future AI Agent Systems

2,255 stars335 forksUnknownNOASSERTION

At a glance

What is it?
VILA-Lab/Dive-into-Claude-Code is a document repository, not code: an arXiv paper plus a long architecture walkthrough of Claude Code v2.1.88, a design guide, and a resource catalog. Its most quotable numbers, a ninety three percent prompt approval rate and a claim that one point six percent of the codebase decides anything, appear with no sample, no method, and no citation in the text a reader sees.
Who is it for?
This is worth reading if you are building a coding agent and want a map of the parts people usually skip, because the permission model, the compaction stages, and the hook surface are laid out in a way no vendor document will be. It is not a substitute for the source.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 12 days ago.
What is it written in?
GitHub does not report a main language for this repository.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • VILA-Lab/Dive-into-Claude-Code2,255 ★ · +149
Star history
Repository2026-09-112026-11-22
VILA-Lab/Dive-into-Claude-Code2.1k2.3k

149 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

A ninety three percent approval rate carries no sample, window, or population

The values table has five rows, and the first one is the most quoted and the least evidenced. Under Human Decision Authority it says humans retain control through a principal hierarchy, and then gives the reason: when a ninety three percent prompt approval rate revealed approval fatigue, the response was restructured boundaries rather than more warnings. That is a good finding and a good response, and it is reported with no sample size, no time window, no population, and no source. Whether the ninety three percent came from telemetry, from a user study, or from an internal session sample changes what the design lesson is: a high approval rate across thousands of prompts is a different fact from the same rate across a handful. Nothing else in the table carries a number except the count of safety mechanisms, so this one stands out as the single figure a reader is most invited to quote.

Two CVEs are asserted without an identifier, an advisory, or an affected version

One of the five key highlights reads: two CVEs reveal a pre-trust window, and the elaboration is that extensions execute before the trust dialog appears. Read as an engineering claim, that is specific and testable. It is also a security claim about a specific product, stated with nothing attached: no CVE numbers, no advisory identifiers, no affected versions, no disclosure timeline, and no mitigation advice beyond the observation itself. The repository carries a citation file and a paper directory, so the venue for that kind of sourcing exists in the project, but the visible highlight does not use it. The distinction matters for anyone who might act on this. A reader who wants to check whether their own installation is affected cannot, and a reader who wants to write about the finding has nothing to attribute it to.

The architecture is pinned to one release and the catalog is pinned to a date

There are two freshness baselines in this document and they are stated separately, which is good practice. The architecture sections describe a single version, v2.1.88, with no date attached to that version. The design guide and the resource catalog extend the analysis with work reviewed through September 15, 2026. So the structural claims are about one build and the recommendations and the resource list are current to a date, and a reader has to keep the two apart. The paper itself exists in two vintages as well: the main PDF link opens arXiv version 2 dated July 2, 2026, while an April 2026 repository PDF is kept as an archive. Combined with the fact that the repository has no releases and the last commit is dated 2026-09-30, the pattern is a document that is revised continuously under a version number that belongs to its subject rather than to itself.

The one point six percent figure is stated twice and never shown being measured

The tip box at the top is the document's thesis: only one point six percent of the codebase is AI decision logic, and the other ninety eight point four percent is deterministic infrastructure, namely permission gates, context management, tool routing, and recovery logic. The agent loop is described as a simple while loop. That claim then appears again in the highlights, again as a value row describing capability amplification, and again in the architecture table answering where reasoning lives, where the answer is that the model reasons and the harness enforces. Four appearances, and no method anywhere in the visible text: no line counts given, no file list, no rule for what counts as a decision, no script that produces the figure. The proportion is plausible given the described architecture, and plausible is not the same as reproducible.

One query loop serves the CLI, the SDK, and the IDE

The architecture section poses four questions every production coding agent has to answer, and its answers are short. Where reasoning lives: the model reasons, the harness enforces. How many execution engines: one query loop, shared across the command line, the SDK, and the IDE. Default safety posture: deny first, ordered deny over ask over allow, with the strictest rule winning. Binding resource constraint: roughly two hundred thousand tokens on older models and one million on the current series, with context management stages that activate under their own conditions. The system then decomposes into seven components in a chain: user, interfaces, agent loop, permission system, tools, state and persistence, and execution environment, across five architectural layers. The single loop is the load-bearing claim, since it is what makes three interfaces consistent.

The safety model is seven layers and thirteen principles from five values

The stated chain is five human values, then thirteen design principles, then implementation, and the document is careful to say that every design choice traces back through it. The five values are human decision authority, safety and security and privacy, reliable execution through a gather act verify loop, capability amplification described as a Unix utility rather than a product, and contextual adaptability via a configuration file hierarchy and trust trajectories that evolve. Eight of the thirteen principles are visible in the table, and they are the interesting half: deny first with human escalation, a graduated trust spectrum, defence in depth, externalised programmable policy with lifecycle hooks, context treated as a scarce resource with a graduated pipeline instead of single pass truncation, append only durable state over mutable snapshots, minimal scaffolding with maximal harness, and values over rules. One bounded rule is given as a concrete example: in the legacy shell parser path, more than fifty subcommands triggers an ask decision.

The licence field is unresolved while a licence file sits at the root

The machine readable licence for this repository reads as unasserted, and there is a licence file at the root with a badge in the readme pointing at it. Nothing in the visible document says which licence applies, so the two sources disagree and neither is identified as authoritative. For a repository whose entire value is that someone else can read it and build on the analysis, that is the wrong detail to leave unresolved, and it is also inconsistent with the care taken elsewhere: there is a citation file for the paper, a Chinese translation of the readme, an assets directory, a paper directory holding both PDF vintages, and a documentation directory that the reading guide points into by audience. Four reader types are routed to different starting points, agent builders, security researchers, product managers, and researchers, which is a sign the authors thought about who is reading.

Editorial conclusion

This is worth reading if you are building a coding agent and want a map of the parts people usually skip, because the permission model, the compaction stages, and the hook surface are laid out in a way no vendor document will be. It is not a substitute for the source. Check four things. Every number you intend to repeat, because the headline split between decision logic and infrastructure, the approval rate, the subcommand threshold, and the CVE count all appear as assertions with no method, sample, or identifier attached in the text a reader sees. Which version the architecture describes, since that part is pinned to one release while the design guide and catalog run to a later date. Whether the extension trust finding applies to the version you run. And the licence, because the machine readable field and the file at the repository root do not agree and nothing in the document resolves it.

Frequently asked questions

What does Dive into Claude Code analyse?

Claude Code at version v2.1.88, described as roughly 1,884 files and about 512K lines. The analysis is organised around seven components across five architectural layers, seven safety layers, five compaction stages, 54 tools, 27 hook events, four extension mechanisms, and seven permission modes.

What is the central claim about Claude Code's architecture?

That about 1.6% of the codebase is AI decision logic and the other 98.4% is deterministic infrastructure, namely permission gates, context management, tool routing and recovery logic, with the agent loop itself being a simple while loop.

Which version of Claude Code do the architecture sections describe?

v2.1.88, with no date attached to that version. The design guide and the resource catalog separately extend the analysis with work reviewed through September 15, 2026, so the document has two different freshness baselines.

Where can I read the Dive into Claude Code paper?

On arXiv, where the abstract page and the version 2 PDF dated July 2, 2026 are linked from the readme. An April 2026 PDF is also kept in the repository's paper directory as an archive. The repository itself has no GitHub releases.

Who is the Dive into Claude Code documentation written for?

Four audiences are routed to different entry points: agent builders start with the build your own agent guide, security researchers with the safety and permissions section, product managers with the key highlights, and researchers with the full paper and the community resources.

Official sources

  1. Issues
  2. Project website
  3. README
  4. VILA-Lab/Dive-into-Claude-Code on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/vila-lab-dive-into-claude-code.svg)](https://hysenlabs.com/projects/vila-lab-dive-into-claude-code)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/vila-lab-dive-into-claude-code.svg)](https://hysenlabs.com/projects/vila-lab-dive-into-claude-code)

Was this useful?