Claude Code Unpacked

What actually happens when you type a message into Claude Code? The query loop, 40+ tools, multi-agent orchestration, and unreleased features, mapped straight from the source.

0+
Files
0K+
Lines of Code
0+
Tools
0+
Commands
Start exploring
01

The Query Loop

From keypress to rendered response, step by step through the source.

1Input2Message3History4System5API6Tokens7Tools?8Loop9Render10Hooks11Await

Watch what happens when you send a message to Claude Code

1User Input

User types a message or pipes input through stdin

src/components/TextInput.tsx
claude-code
$

Keyboard input comes from Ink's TextInput component. In non-interactive mode, it reads from piped stdin instead.

1/11
02

Architecture Explorer

Click around the source tree. Area = file count.

Tools & Commands
Core Processing
UI Layer
Infrastructure
Support & Utilities
Personality & UX
utils/564 filescomponents/389 filescommands/207 filestools/184 filesservices/130 fileshooks/104 filesink/96 filesbridge/31 filesconstants/21 filesskills/20 filescli/
03

Tool System

Every built-in tool Claude Code can call, sorted by what it does.

File Operations
6 tools
Execution
3 tools
Search & Fetch
3 tools
Agents & Tasks
10 tools
Planning
4 tools
MCP
4 tools
System
6 tools
Experimental
4 tools

Click a tool to see details and source code

04

Hidden Features

Stuff that's in the code but not shipped yet. Feature-flagged, env-gated, or just commented out.

Click a feature to explore