Skip to content
Flows
Tier 1 · Claude Code internals Claude Code internals · fetched 2026-07-02

claude-code-source-analysis (jiahp0920)

Smaller independent analysis of the Claude Code source; skimmed for unique observations to cross-check the major bundles.

View source on GitHub

Key takeaways

  • 01

    Use as a cross-check witness against the book-length analyses

From the archive

Verbatim excerpts mined from our local archive of this repository — the prompts, schemas, and patterns worth stealing.

Insight

The full syllabus of a production harness

Section map of the source analysis site: startup chain · query loop · query lifecycle · tool dispatch · permission system · risk control & security hardening · agent architecture · hook mechanism · MCP system · plugin system · command system · context management · service layer · cost & rate limits · UI interaction layer · config & migration · settings.json parameter manual · external integrations · native capabilities · anti-distillation & output protection · vertical agent design guide.

[translated] Read the navigation as a checklist: cost control, anti-distillation protection, and a settings manual are chapters here because they are subsystems in the real product.

02-tool-dispatch.html