$ Subsystems Map
Claude Code is organized into 29 subsystems containing 1,372 files. This map shows the relative scale and purpose of each module.
## File Distribution
Relative size of each subsystem — the top 4 account for 78% of all files
## Subsystem Grid
Each card is sized proportionally to its file count
utils/
564 filesShared utilities
components/
389 filesUI components, React/Ink
services/
130 filesAgentSummary, MagicDocs, etc.
hooks/
104 filesReact hooks, notifications
bridge/
31 filesBridge API, config, debug
constants/
21 filesAPI limits, betas, common
skills/
20 filesBundled skills (batch, claudeApi, etc.)
cli/
19 filesCLI handlers
keybindings/
14 filesKey binding system
types/
11 filesType definitions, generated events
migrations/
11 filesSettings migration system
memdir/
8 filesMemory directory, relevant memories
entrypoints/
8 filesCLI, init, SDK types
buddy/
6 filesThe pet system
state/
6 filesAppState, store
vim/
5 filesVim motions, operators, text objects
remote/
4 filesRemote session manager, WebSocket
native-ts/
4 filesColor diff, file index, yoga layout
server/
3 filesDirect connect session, manager
screens/
3 filesDoctor, REPL, ResumeConversation
plugins/
2 filesBuilt-in plugins, bundled
upstreamproxy/
2 filesRelay, proxy
assistant/
1 fileSession history
bootstrap/
1 fileState
coordinator/
1 fileCoordinator mode
moreright/
1 fileuseMoreRight hook
outputStyles/
1 fileOutput style loading
schemas/
1 fileHook schemas
voice/
1 fileVoice mode enabled flag
## Size Tiers
Subsystems grouped by scale
Large
100+ files- utils/564
- components/389
- services/130
- hooks/104
Medium
4-99 files- bridge/31
- constants/21
- skills/20
- cli/19
- keybindings/14
- types/11
- migrations/11
- memdir/8
- entrypoints/8
- buddy/6
- state/6
- vim/5
- remote/4
- native-ts/4
Micro
1-3 files- server/3
- screens/3
- plugins/2
- upstreamproxy/2
- assistant/1
- bootstrap/1
- coordinator/1
- moreright/1
- outputStyles/1
- schemas/1
- voice/1
// Data sourced from Claude Code v2.1.88 source map analysis.
// Total: 29 subsystems, 1,372 TypeScript files across 1,902 source modules.