feat: rewrite Claude Code architecture article (278→1,333 lines)#28
Merged
Conversation
…ce-code-verified) Complete rewrite of 03-architecture.md based on v2.1.89 decompiled source analysis. 22 sections covering: Bun runtime, 22 feature flag DCE, bootstrap chain, module architecture, QueryEngine loop, state management, API 4-provider communication, Advisor server-side review, Extended Thinking, context window, prompt caching, retry/backoff (529 degradation), cost tracking, system prompt construction, message types, 39 tools, 23 Bash security checks, permission model, command system, 24 hook events, plugin system, auto-update, telemetry system. 44 source references. 7-round audit: fixed runtime (Node.js SEA→Bun), permission priority order, Zsh command count (17→18), substitution pattern count (11→12), cross-doc consistency (tools 40+→39, hooks 26+→24), init() call chain accuracy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao
added a commit
that referenced
this pull request
Apr 5, 2026
Added PR progress links to detail items: - p0-p1-core #3 (Speculation): PR#2525 ✓ - p0-p1-engine #22 (Thinking retention): PR#2897 - p0-p1-engine #23 (Output token escalation): PR#2898 - p2-stability #28 (Dangerous actions guidance): PR#2889 Previously only the matrix had PR links, now clicking ↓ also shows progress. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
wenshao
added a commit
that referenced
this pull request
Apr 5, 2026
New items from second round of source code comparison: P0 (2 items): - #19: Environment variable sanitization (25+ patterns) - #20: Dangerous command blacklist (rm -rf, find -exec, git -c, etc.) P1 (4 items): - #21: Edit fuzzy matching with Levenshtein distance (10% tolerance) - #22: Omission placeholder detection (prevent "// ... rest") - #23: JIT context discovery for read/write/edit tools - #24: OS-level sandbox (Linux bwrap, macOS Seatbelt, Windows) P2 (6 items): - #25: Folder trust discovery (pre-execution scanning) - #26: Web fetch rate limiting + SSRF hardening - #27: Grep advanced parameters (include/exclude/names_only) - #28: Advanced vim operations (big words, find, replace, toggle) - #29: Footer customization dialog - #30: Write file LLM content correction P3 (2 items): - #31: OAuth flow refactoring (shared utils + RFC 9728) - #32: Conseca safety framework (context-aware policy) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/tools/claude-code/03-architecture.mdbased on v2.1.89 decompiled source analysisREADME.mdindex entry to reflect new content scopeNew/Rewritten Sections (22)
7-Round Audit Fixes
Test plan
🤖 Generated with Claude Code