This repository has been archived on 2026-04-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
claude-code-2026-04-02/docs-site/docs/reproducibility.md
2026-03-31 15:38:58 +05:00

2.2 KiB
Raw Blame History

Reproducibility and limits

!!! warning "You cannot rebuild the shipping CLI from this tree alone" This folder is a source reconstruction, not a complete open-source project drop.

What is missing for a full build

  1. No root package.json
    The published npm package bundles dependencies internally. This repo does not declare versions or scripts to reproduce that bundle.

  2. Bun-specific build features
    The entry module uses bun:bundle APIs such as feature('KAIROS'), feature('COORDINATOR_MODE'), feature('VOICE_MODE'), etc. Those are compile-time gates in Anthropics internal bundling pipeline, not something you can flip in a stock TypeScript compile.

  3. Private or unpublished packages
    Imports may reference packages or paths that exist only inside Anthropics build graph.

  4. Native addons
    Some flows (keychain, protocol handlers, optional NAPI modules) assume native binaries shipped beside the real claude executable.

What you can do with this tree

  • Read and trace control flow: main.tsx → REPL or cli/print.tsquery.ts / QueryEngine.tsservices/api → tools.
  • Compare behavior to the public CLI reference and how Claude Code works.
  • Study MCP, permissions, compaction, hooks, and IDE bridge code against official feature docs.

“Infrastructure” in the sense of this codebase

There is no separate microservice repo here: the CLI is a single process (plus child processes for bash, MCP servers, etc.) that talks to Anthropics cloud APIs and optional MCP servers over stdio/WebSocket. Enterprise features (remote-managed settings, policy limits, OAuth) are implemented as client-side modules under src/services/ and src/utils/settings/, not as deployable server code in this tree.

Rebuilding or redistributing the product for end users is outside the scope of these docs and may infringe Anthropics rights. Use this material for analysis only unless you have explicit permission.