main.tsx Entry Point
- Entity ID:
ent-20260419-522c1fccbf67 - Type:
file - Scope:
shared - Status:
active - Aliases: main.tsx
Description
CLI entry point of Claude Code, ~4,684 lines / ~785KB bundle (803KB source); hosts main(), run(), entrypoint initialization, migrations, settings loading, startup telemetry, and the dispatch wiring that launches the REPL or non-interactive mode.
Key claims
- Claude Code module-size distribution concentrates complexity in QueryEngine
- main.tsx bundles to 785KB as a single entry file
- Commander.js is used with @commander-js/extra-typings
- main.tsx parallelizes I/O before heavy imports
Relations
- main.tsx Entry Point --[contains]--> tt() Function
- main.tsx Entry Point --[implements]--> Entrypoint System
- main.tsx Entry Point --[uses]--> replLauncher.tsx
- main.tsx Entry Point --[uses]--> Commander.js CLI Parser
- main.tsx Entry Point --[implements]--> Parallel Startup Prefetch