Model or dataset
openedclaude/claude-reviews-claude avatar
openedclaude/claude-reviews-claude

claude-reviews-claude: 1,902 files claimed, 122,000 lines accounted for

Claude reads its own source code — 17-chapter architectural deep-dive into Claude Code v2.1.88. EN/ZH bilingual.

1,647 stars706 forksUnknownMIT

At a glance

What is it?
openedclaude/claude-reviews-claude is a bilingual Markdown analysis of Claude Code v2.1.88, eighteen table rows deep, served as a VitePress site. It ships no code, and the numbers in its own chapter table cover about a quarter of the codebase it describes.
Who is it for?
This repository is worth reading as a reading map rather than as a reference: nineteen numbered sections, each with a stated size, tell you which parts of Claude Code v2.1.88 are documented in depth and which are not, and the design-philosophy line about the scaffolding being a loop is the thesis every chapter returns to. Two cautions before you lean on it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 7 months 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

  • openedclaude/claude-reviews-claude1,647 ★ · +73
Star history
Repository2026-09-102026-11-22
openedclaude/claude-reviews-claude1.6k1.6k

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

Editorial analysis

The analysis is pinned to v2.1.88 and the last commit is 2026-04-01

Every chapter describes one version of one product: the TypeScript source of Claude Code v2.1.88, put at 1,902 files and 477,439 lines, running on Bun with a terminal UI built from React and Ink. The pin is the important part. A version string this specific means the chapters describe a snapshot, and anything Anthropic shipped after v2.1.88 is outside the frame by construction. The repository itself carries no GitHub releases, so there is no tagged edition to compare against, and package.json is a private documentation package at version 1.0.0 that has never been versioned in step with its subject. The last recorded commit on main is 2026-04-01, so the pinned version string and the repository's own final state are from the same period rather than the analysis being refreshed against a newer release.

Four names for one repository

The repository slug is claude-reviews-claude. The package manifest calls itself claude-code-deep-dive-docs. The directory listing in the documentation roots itself at a folder called claude-code-deep-dive. The hosted reading copy sits under a path that adds a locale segment for the Chinese variant. None of these is a mistake you can fix by renaming, because each is load-bearing in a different place: the slug is what GitHub serves, the package name is what the manifest declares, the folder name appears in every relative path in the documentation, and the locale segment is what the bilingual split produces. The default README here is the Chinese one, with README_EN.md beside it as the English version, and both DISCLAIMER.md and DISCLAIMER_CN.md ship alongside them.

The chapter table accounts for about a quarter of the codebase

Start from the headline figure and add up what the chapters claim for themselves. Plugin system 18,800 lines. Infrastructure and configuration 15,000. Services and API layer 12,000. Bridge system 11,700. Bash engine 11,500. Permission pipeline 9,500. Context assembly 8,300. Hook system 8,000. Startup and bootstrap 7,600 plus. Session persistence 7,600. Agent swarms 6,800. Compact system 3,900. QueryEngine itself 1,296. That totals roughly 122,000 lines against the stated 477,439, and two of the numbered rows give no line count at all, reporting 140 or more UI components and a telemetry chapter described by topic instead. So the per-chapter numbers are depth markers for the sections somebody sat with, not a partition of the codebase, and nothing in the text says so.

Eighteen rows numbered 0 to 17 for seventeen chapters

The contents table runs from 0 to 17, which is eighteen rows, and row 0 is the overview. The surrounding prose counts seventeen in three separate places, once as the episode total, once as the number of subsystems the overview tours, and once in the directory listing comment for the architecture folder. Reading the two together is the only way to make them agree, and the directory listing never finishes making it: it stops partway through the tool-system filename, so a reader cannot confirm from the listing how many files the folder actually holds. The second table, a six-row quick view of subsystems, links to repository-relative paths under architecture/ while the main table links to hosted URLs, so the same chapter is reachable by two different routes with no stated rule for which is canonical.

The core loop is a streaming call and a stop_reason branch

The architecture diagram reduces the product to one cycle. User input enters QueryEngine.query(), which makes a streaming call to the Claude API, then branches on the returned stop_reason: end_turn produces output, while tool_use triggers a permission check, executes the tool and injects the result back into the loop. The stated philosophy is that the intelligence lives in the model and the scaffolding is only a loop, with everything else arranged around it. The quick-reference table gives that loop a 12-step state machine, and gives the surrounding pieces their own numbers: 42 or more tools registered against schemas with 30 or more method contracts, a permission path of seven layers running rule matching, then AST analysis, then a YOLO classifier, then an OS sandbox, a context cascade of four stages from micro-compression through truncation and an AI summary to an emergency compression step against a 200K window, seven multi-agent task types across iTerm2, tmux and in-process backends, and a terminal UI of 140 or more components on a forked Ink with React 19, Vim modes and an IDE bridge.

Chapter 17 lists an emergency switch and an undercover mode

Read the one-line chapter summaries as a table of claims and the last row is the one to stop on. Titled telemetry, privacy and operational controls, it covers dual-channel telemetry, model codenames, an undercover mode, a remote emergency switch and a future roadmap. Three other rows carry the same kind of operational detail. The bridge system is described as a remote control protocol with a dual-generation transport layer, a poll and dispatch loop and crash recovery. Session persistence is described as append-only JSONL storage with a parent-UUID chain and a 64KB lightweight recovery path. Startup is described as a fast-path cascade with dynamic imports, API pre-connection and a global state singleton. None of those bodies appear in the repository text available here, so what can be checked is the claim list, not the analysis behind it.

The source being read comes from two community reconstructions

The analysis is second-hand by construction, and the repository is candid about it. A source-acquisition section states that the work is based on the TypeScript source of Claude Code v2.1.88 and then points at two community repositories for anyone who wants the code itself: one described as restored Claude Code source, one described as original TypeScript extracted from a source map. This repository ships no source files. Its tree is documentation and configuration, .github/, .gitignore, the two READMEs, the two disclaimers, LICENSE, architecture/, docs/, package.json and package-lock.json. What is not stated anywhere is how the 1,902 files were obtained, deobfuscated or checked, so a reader who wants to verify a chapter has to do that verification against the original product rather than against a method write-up.

Editorial conclusion

This repository is worth reading as a reading map rather than as a reference: nineteen numbered sections, each with a stated size, tell you which parts of Claude Code v2.1.88 are documented in depth and which are not, and the design-philosophy line about the scaffolding being a loop is the thesis every chapter returns to. Two cautions before you lean on it. The per-chapter line counts sum to roughly a quarter of the headline 477,439 lines, so the accounting is a claim about depth, not a census. And the source it reads is proprietary code reached through community reconstructions, one of them extracted from a source map, so check the terms of that source before treating any of it as verified.

Frequently asked questions

What does openedclaude/claude-reviews-claude contain?

Documentation, not code. The tree holds README.md, README_EN.md, DISCLAIMER.md, DISCLAIMER_CN.md, LICENSE, architecture/, docs/, package.json and package-lock.json. The manifest is private, version 1.0.0, with vitepress ^1.6.3 as its only devDependency and three scripts: docs:dev, docs:build and docs:preview.

Which version of Claude Code does the claude-reviews-claude analysis describe?

Claude Code v2.1.88, read from its TypeScript source. That codebase is put at 1,902 files and 477,439 lines, running on Bun with a React and Ink terminal user interface.

How many tools does claude-reviews-claude say Claude Code has?

42 or more, described as self-contained modules that register, validate and execute against a schema, with 30 or more method contracts. The permission pipeline is described as seven layers deep, from rule matching through AST analysis and a YOLO classifier to an operating system sandbox.

Where did the analysed Claude Code source come from?

The source table points at two community repositories, one described as restored Claude Code source and one described as original TypeScript extracted from a source map. The analysis repository itself ships no source files, only the Markdown and the site configuration.

Does claude-reviews-claude tag any releases?

No. The repository has no GitHub releases, its manifest sits at a private 1.0.0, and the last recorded commit on main is 2026-04-01, with the analysis pinned to Claude Code v2.1.88.

Official sources

  1. Issues
  2. License: MIT
  3. openedclaude/claude-reviews-claude on GitHub
  4. Project website
  5. README
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/openedclaude-claude-reviews-claude.svg)](https://hysenlabs.com/projects/openedclaude-claude-reviews-claude)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/openedclaude-claude-reviews-claude.svg)](https://hysenlabs.com/projects/openedclaude-claude-reviews-claude)

Was this useful?