Skip to content

Research atlas

This appendix keeps discovery machinery separate from the main runtime narrative. Use it when starting from a raw constant, generated module record, prompt-catalog entry, byte offset, minified symbol, native module, or documentation gap.

The atlas is a triage layer, not proof. Promote a finding into the main internals sections only after a focused source read confirms behavior.

It contains three deliberately separate document types:

TypeOwnerPurpose
Source navigationBundle module map and generated data/Locate candidate source regions and literal surfaces.
Coverage evidenceFull-system documentation coverage review, Disassembled string-surface review, and domain audit ledgersRecord which source-confirmed mechanisms have an owner and which evidence limits remain.
Documentation architectureDocumentation structure and duplication reviewRecord canonical ownership, merge/rename decisions, and intentional non-merges.

Source-anchor policy

This page is a research guide. Linked pages and generated artifacts carry concrete anchors.

Semantic aliasMinified anchorScope
Research atlas chapterN/A — navigation pageGroups artifact/bytecode notes, source-anchor methodology, and future watchpoints.
Atlas/research pagesSee linked pages and claude-code-pkg/ artifactsConcrete bundle anchors and generated inventories live in destination artifacts.

Research workflow

flowchart TD
Question[Question or raw constant] --> Artifact[claude-code-pkg artifacts]
Artifact --> Surface[cli.js strings / JS shims / optional temporary graph parse]
Surface --> Source[Focused source read]
Source --> Classify{Behavior confirmed?}
Classify -->|yes| MainDoc[Patch or create internals section doc]
Classify -->|partial| Backlog[Record opportunity]
Classify -->|no| Noise[Mark as scan noise]
MainDoc --> Validate[links and Markdown checks]

Primary reading order

OrderPage or artifactResearch question answered
1Bundle module map from cli.renamed.jsWhich Bun module loaders correspond to which Claude Code subsystems, and at what line ranges in the semantically renamed bundle?
2Full-system documentation coverage reviewWhich source-confirmed lifecycles were promoted, rejected as false gaps, or left evidence-bounded?
3Disassembled string-surface reviewWhich undocumented strings led to real executable mechanisms, aliases, noise, or native evidence limits?
4Documentation structure and duplication reviewWhich pages are canonical owners, which duplicate was retired, and why do adjacent architecture/reference/lifecycle pages remain separate?
5data/cli-modules.jsonWhat loader, declaration, and export records did the structural extractor find?
6data/cli-module-themes.jsonWhich semantic modules matched each populated runtime/vendor theme?
7data/prompt-catalog.jsonWhich long literal prompts passed the domain/noise filter, with line/offset/hash provenance?

Mechanism-question audits

These ledgers record the question → source trace → documentation update → full reread loop for all 63 canonical mechanism pages in the main wiki. The count follows the final page manifests in the six ledgers; it is not the total Markdown-page count and is not inferred from filename suffixes. Each page was asked at most ten questions per round, and each domain stopped only after a complete pass produced zero new questions answerable from the retained 2.1.215 artifacts. The full-system coverage review first compared the six converged domains and cross-cutting inventories. The later structure review retired one duplicate command page without removing a mechanism, and the independent string-surface review subsequently promoted two executable owners that theme/page inventories had missed.

DomainAudit ledgerPagesFinal result
Runtime and startupRuntime mechanism question audit10Converged
Context and model loopContext/model mechanism question audit8Converged
Tools, integrations, and securityTools/security mechanism question audit15Converged
Sessions, persistence, and remoteSessions/remote mechanism question audit10Converged + string follow-up
Operations and native supportOperations/native mechanism question audit10Converged + string follow-up
Agents and automationAgents/automation mechanism question audit10Converged

“Converged” is artifact-bounded: server, unavailable native/bootstrap, runtime-only, and future-version questions remain explicitly listed as evidence limits rather than guessed answers.

Promotion rules

  • Treat raw string hits as leads, not behavioral proof.
  • Anchor every promoted claim with file path, approximate line/byte offset, exact string or symbol, and semantic meaning.
  • Keep bytecode-only or native-binary-only observations as research notes unless paired with readable JS or safe runtime behavior.
  • Update docs/SUMMARY.md, section README files, and adjacent cross-links whenever a finding becomes a main documentation page.

Created and maintained by Yingting Huang.