← All projects

Claude Code

Anthropic's official agentic CLI. Streaming tool calls, prompt caching, thinking signatures, multi-agent subagents, slash commands.

Category
agent-cli
Language
TypeScript · React/Ink
Runtime
Node 20+
Providers
Anthropic, Bedrock, Vertex
Agent loop
generator
Tool format
anthropic-tool_use
Memory
llm-summarize
Caching
cache_control-explicit
Sandbox
process + firewall
Pedagogical
★★★★★
Flags
multi-agent · thinking · md-skills · streaming
Concepts
agent-loop ·tool-calling-formats ·memory-compression ·prompt-caching ·multi-agent-coordination ·guardrails ·extended-thinking ·skills-as-md ·streaming-tools
Verified
paper-pass
Upstream
github.com/anthropics/claude-code

What it is

Anthropic’s official agentic CLI. The most production-hardened agent in the corpus, and the one to read first if you want to see what “shipping a tool that millions use” looks like.

What’s worth studying

Claude Code is the cleanest reference for a generator-driven agent loop with everything turned on: streaming tool calls, explicit prompt caching with a sentinel-string boundary, thinking blocks with signature preservation across turns, latched sticky flags for cache coherence, and a slash-command + skills system that lets users (and Anthropic) extend the agent without touching its core.

Three patterns are uniquely visible here:

  1. The cache-edit boundary as a literal string. A 24-character sentinel splits the system prompt into org-static and session-dynamic regions. Survives every refactor and every contributor. See cache-boundary-sentinel.
  2. Latched sticky flags. User-toggleable flags that live in the cacheable prefix are latched on: once on, they stay on for the session, even if the user toggles them off. The team accepted a small UX surprise for a 50–70K-token cache win. See latched-sticky-flags.
  3. Thinking-signature preservation across turns, stripped on model switch. Anthropic’s HMAC signatures are model-bound; switching from Sonnet to Opus mid-session would crash if Claude Code didn’t strip the blocks. See thinking-signature-preservation.

Drill-down

The full per-doc analysis lives below — these are the original numbered analyses, rendered as styled HTML. Pick a section to study deeper.

Insights from this project

Non-obvious tricks pulled out as standalone study cards.