Scenarios
Citation-grounded walkthroughs of how Claude Code works. Every sentence ends with a token that points to a specific function, dimension node, or design decision in the CKG. A deterministic verifier checks every claim before publishing.
14
scenarios
270
sentences
336
citations
97.2%
avg verifier
How does an external SDK consumer connect to a running Claude Code session over the WebSocket/SSE bridge, authenticate, send a user message, receive streamed assistant events, and disconnect cleanly
100.0%24/24 sentences·113 fn·0 dec·919 sem
Bridge & Remote ConnectivityApplication Bootstrap & EntrypointsAuthentication & Credential Storage
How does the telemetry pipeline collect a tool-call event, batch it, and export through OpenTelemetry, Perfetto tracing, and BigQuery, including span correlation across the agent loop
100.0%24/24 sentences·115 fn·0 dec·1084 sem
Analytics & TelemetryTool FrameworkAgent & Task OrchestrationApplication Bootstrap & Entrypoints
How does Claude Code resolve and merge CLAUDE.md memory files from the user home directory, project root, and parent directories, and inject them into the system prompt at session start
100.0%7/7 sentences·115 fn·0 dec·1002 sem
Memory & Auto-MemoryContext & Prompt SystemApplication Bootstrap & Entrypoints
How does Claude Code discover, validate, load, and invoke a user plugin from the .claude/plugins directory, including manifest parsing, capability check, and registration into the tool set
100.0%18/18 sentences·112 fn·0 dec·825 sem
Plugin & Skill EcosystemCommand SystemTool FrameworkApplication Bootstrap & Entrypoints
How does Claude Code initialize on first launch end-to-end, from CLI invocation through auth check, settings load, MCP server discovery, telemetry setup, and reaching the first interactive prompt
100.0%34/34 sentences·112 fn·0 dec·967 sem
Application Bootstrap & EntrypointsAuthentication & Credential StorageSettings & ConfigurationMCP Integration
How does the codebase parse and dispatch a slash command typed by the user, from input string to command handler invocation
100.0%20/20 sentences·93 fn·0 dec·619 sem
Command SystemPrompt InputInput Suggestions
How does the system handle a SIGINT mid-stream, abort the in-flight model request and any running tools, persist session state, and flush analytics before exit
87.5%7/8 sentences·94 fn·0 dec·858 sem
Application Bootstrap & EntrypointsAPI Client & Model ResolutionTool FrameworkAnalytics & Telemetry
How does the system detect and apply settings.json changes without a restart, including the mtime cache, source resolution, and the freshness watcher
100.0%25/25 sentences·94 fn·0 dec·1166 sem
Settings & ConfigurationFoundation Utilities
How does an MCP server get registered and have its tools become available to the agent, from config file loading through client connection to tool merging
90.0%9/10 sentences·95 fn·0 dec·724 sem
Application Bootstrap & EntrypointsSettings & ConfigurationMCP IntegrationTool Framework
How does the auto-compact mechanism trigger when context grows near the limit, fork a summary query, and write a compact boundary marker the next turn can resume from
88.9%16/18 sentences·95 fn·0 dec·1413 sem
Context & Prompt SystemApplication Bootstrap & EntrypointsAPI Client & Model ResolutionMessage Rendering
How does the permission system decide whether to allow a tool call, including in-prompt decisions, JIT classifier, hook injection, and the permission cache
93.8%15/16 sentences·95 fn·0 dec·769 sem
Permission & Security FrameworkPermissions UITool FrameworkSettings & Configuration
How does the Edit tool apply a file change, from receiving the old/new patch to validating, diffing, and writing the new content to disk
100.0%21/21 sentences·95 fn·0 dec·872 sem
Tool FrameworkPermission & Security FrameworkFoundation Utilities
How does the Bash tool execute a command end-to-end, from permission classification through AST safety check to subprocess spawn and output streaming
100.0%19/19 sentences·95 fn·0 dec·765 sem
Tool FrameworkPermission & Security Framework
How does the agent loop process a user message and stream the assistant response back, including tool dispatch and stop hooks
100.0%26/26 sentences·94 fn·0 dec·949 sem
Application Bootstrap & EntrypointsAgent & Task OrchestrationTool FrameworkContext & Prompt System