Claude Code Anatomy
2026년 4월 8일
‘How Claude Code Works’ by Anthropic
Official Documentation by Anthropic: How Claude Code works - Claude Code Docs
Agentic Loop
3 Phases of Agentic Loop
- Gather context
- Take action
- Verify results
Claude Code = Agentic harness around Claude
- models: reason
- tools: act
5 categories of built-in tools.
- File operations
- Search
- Execution
- Web
- Code Intelligence (requires plugins)
Extend by skills, MCP, hooks, and subagents.
Useful Commands
Resume or fork sessions
claude --continueorclaude --resume- full conversation history is restored, but session-scoped permissions should be reapproved.
claude --continue --fork-session
The context window
/compact: control what’s preserved during compaction- e.g.,
/compact focus on the API changes
- e.g.,
/context: see what’s using space/mcp: check per-server costs
’Claude Code 내부 아키텍처 분석’ by aldente0630
Blog post by aldente0630 @ AWS
- Claude Code 내부 아키텍처 분석
- Also one of the authors of 『데이터 과학자 원칙』
개인적인 인상
- 비용 절감.
- 체감 대기시간 감소.
- 상호작용 컨트롤.
- 무한루프 방지.
관련 포스팅
- With Animation: Claude Code Unpacked
- As Textbook: Claude Code from Source — Architecture, Patterns & Internals
- As Documentation: 별첨 91. 클로드 코드 소스 코드 분석서 - 클로드 코드 가이드
- Blog Post: Claude Code’s Entire Source Code Got Leaked via a Sourcemap in npm, Let’s Talk About it
- Blog Post: Everyone Analyzed Claude Code’s Features. Nobody Analyzed Its Architecture. | by Han HELOIR YAN, Ph…