Claude Code Unpacked
Claude Code Unpacked
Ask DeepWikiYFeatured on Hacker News
What actually happens when you type a message into Claude Code? The agent loop, 50+ 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 Agent Loop
From keypress to rendered response, step by step through the source.
1
Input
2
Message
3
History
4
System
5
API
6
Tokens
7
Tools?
8
Loop
9
Render
10
Hooks
11
Await
1Input2Message3History4System5API6Tokens7Tools?8Loop9Render10Hooks11Await
Watch what happens when you send a message to Claude Code
1User Input
User types a message or pipes input through stdin
● claude-code
$
Keyboard input comes from Ink's TextInput component. In non-interactive mode, it reads from piped stdin instead.
1/11
0.5x1x2x
02
Architecture Explorer
Click around the source tree to explore what's inside.
Tools & Commands
Core Processing
UI Layer
Infrastructure
Support & Utilities
Personality & UX
src
utils/564 filescomponents/389 filescommands/189 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
FileReadFileEditFileWriteGlobGrepNotebookEdit
Execution
3 tools
BashPowerShellREPL
Search & Fetch
4 tools
WebBrowser🔒WebFetchWebSearchToolSearch
Agents & Tasks
11 tools
AgentSendMessageTaskCreateTaskGetTaskListTaskUpdateTaskStopTaskOutputTeamCreateTeamDeleteListPeers🔒
Planning
5 tools
EnterPlanModeExitPlanModeEnterWorktreeExitWorktreeVerifyPlanExecution🔒
MCP
4 tools
mcpListMcpResourcesReadMcpResourceMcpAuth
System
11 tools
AskUserQuestionTodoWriteSkillConfigRemoteTrigger🔒CronCreate🔒CronDelete🔒CronList🔒Snip🔒Workflow🔒TerminalCapture🔒
Experimental
8 tools
SleepSendUserMessageStructuredOutput🔒LSP🔒SendUserFile🔒PushNotification🔒Monitor🔒SubscribePR🔒
Click a tool to see details and source code
04
Command Catalog
Every slash command available in Claude Code, sorted by what it does.
Setup & Config12
/init/login/logout/config/permissions/model/theme/terminal-setup/doctor/onboarding/mcp/hooks
Daily Workflow24
/compact/memory/context/plan/resume/session/files/add-dir/copy/export/summary/clear/brief/output-style🔒/color/vim/keybindings/skills/tasks/agents/fast/effort/extra-usage/rate-limit-options
Code Review & Git13
/review/commit/commit-push-pr/diff/pr_comments/branch/issue/security-review/autofix-pr🔒/share/install-github-app🔒/install-slack-app🔒/tag
Debugging & Diagnostics23
/status/stats/cost/usage/version/feedback/think-back/thinkback-play/rewind/ctx_viz/debug-tool-call/perf-issue/heapdump/ant-trace/backfill-sessions🔒/break-cache🔒/bridge-kick🔒/mock-limits🔒/oauth-refresh🔒/reset-limits🔒/env/bughunter🔒/passes🔒
Advanced & Experimental23
/advisor/ultraplan🔒/remote-control🔒/teleport/voice🔒/desktop🔒/chrome🔒/mobile🔒/sandbox/plugin/reload-plugins/web-setup/remote-env/ide/stickers/good-claude/btw/upgrade/release-notes/privacy-settings/help/exit/rename
Click a command to see details and source code
05
Hidden Features
Stuff that's in the code but not shipped yet. Feature-flagged, env-gated, or just commented out.
Buddy
A virtual pet that lives in your terminal. Species and rarity are derived from your account ID.
Kairos
Persistent mode with memory consolidation between sessions and autonomous background actions.
UltraPlan
Long planning sessions on Opus-class models, up to 30-minute execution windows.
Coordinator Mode
A lead agent breaks tasks apart, spawns parallel workers in isolated git worktrees, collects results.
Bridge
Control Claude Code from your phone or a browser. Full remote session with permission approvals.
Daemon Mode
Run sessions in the background with --bg. Uses tmux under the hood.
UDS Inbox
Sessions talk to each other over Unix domain sockets.
Auto-Dream
Between sessions, the AI reviews what happened and organizes what it learned.
Click a feature to explore