Round 7: The Deepest Architecture Yet
- Source ID:
src-20260409-6913a0b93c8b - Kind:
analysis - Scope:
shared - Origin:
community-analysis - Raw path:
sources/raw/round-7-the-deepest-architecture-yet__src-20260409-6913a0b93c8b.md - Status:
active
Summary
Community analysis document covering Claude Code architecture, internals, and leak analysis. See extracted entities and claims below.
Tags
architecture core-loop query-engine
Extracted entities
- yoloClassifier.ts (file): Auto-mode safety classifier. Evaluates every tool call against user-configurable
- Claude Code (product): Anthropic's CLI coding agent. 512K+ lines of TypeScript. The leaked codebase rev
- StreamingToolExecutor (service): Concurrency system inside query.ts Stage 2 that enables parallel execution of re
- QueryEngine.ts (file): The 1,295-line session supervisor above query.ts. Manages transcript recording,
- Compaction Pipeline (service): Five-tier context compaction system that manages token budget before API calls.
- query.ts (file): The 1,729-line core agentic loop of Claude Code. An async generator that governs
Extracted claims
- [constraint] 150K compaction threshold bug
- [lesson] Compaction laundering attack vector
- [fact] Compaction pipeline has 5 tiers
- [fact] query.ts 9 typed exit paths
- [fact] query.ts 6-stage pipeline
- [fact] Parallel read-only tool execution during generation
Extracted relations
- query.ts --[contains]--> StreamingToolExecutor
- query.ts --[uses]--> Compaction Pipeline
- Claude Code --[contains]--> yoloClassifier.ts
- QueryEngine.ts --[owns]--> query.ts
- Claude Code --[contains]--> query.ts