This repository contains an unofficial source snapshot of Claude Code CLI internals, including the command system, bridge/runtime layers, tools, plugins, and terminal UI modules.
- This is not an official Anthropic repository.
- All original intellectual property rights belong to their respective owners.
- Use this repository for research, reverse engineering study, and educational analysis.
- If you are the rights holder and want this content removed, open an issue in the hosting repository.
- CLI entrypoint and runtime orchestration in
src/main.tsx - Rich slash-command ecosystem in
src/commands/ - Tooling system in
src/tools/andsrc/Tool.ts - Bridge and remote/session communication stack in
src/bridge/ - Plugins and skills loading infrastructure in
src/plugins/andsrc/skills/ - Terminal UI and interaction layers in
src/ink/andsrc/components/
Based on the current package metadata in this repo:
- Package:
@anthropic-ai/claude-code - Version:
2.1.88 - CLI binary name:
claude - Runtime target:
Node.js >= 18
- Startup and environment setup
- Config, auth, policy, and telemetry initialization
- Command registration and argument parsing
- REPL/non-interactive execution path selection
- Tool invocation, session state, and plugin/skill integration
This snapshot appears intended for internal/runtime use and may not include a complete public build workflow. You can still inspect and analyze it effectively:
# Find top-level command registrations
rg "program.command\(|register" src/main.tsx
# Explore command implementations
ls src/commands
# Inspect bridge subsystem
ls src/bridgesrc/main.tsx: main CLI bootstrap and command wiringsrc/commands.ts: core command registry listsrc/setup.ts: startup/setup sequencesrc/entrypoints/init.ts: initialization pipelinesrc/bridge/: bridge transport, messaging, remote controlsrc/tools/: tool implementations used by the agent runtimevendor/: native/auxiliary vendor sources
If you analyze this code:
- Do not hardcode credentials or tokens.
- Avoid running unknown commands against production systems.
- Keep your work in isolated test environments.
Initial public reference for this snapshot context:
This repository is provided as-is for research and documentation purposes. No warranty is provided. Official product, branding, and IP belong to Anthropic and related owners.