Context Compaction is Like Moving and Packing

When AI's "Brain" Isn't Enough——Compaction and Microcompact

Deep dive into Claude Code’s context compaction mechanism: differences between auto-compaction and microcompact, state preservation after compaction, and context collapse. Unveiling how AI elegantly makes tradeoffs when “memory runs out,” and why AI sometimes “forgets” previous content.

May 30, 2026 · 5 min · 1021 words · Monster Programming
System Prompts are Like a Director Guiding Behind the Scenes

System Prompts——The "Director Behind the Scenes"

Deep dive into Claude Code’s system prompt architecture: segmented composition design, division of identity/tools/format/safety modules, and the secrets of model-specific tuning. Unveiling why the same request gets completely different response styles from Claude Code versus ChatGPT.

April 25, 2026 · 5 min · 981 words · Monster Programming
Claude Code Agent Loop: Restaurant Kitchen Assembly Line

Agent Loop——How Does an AI's "Brain" Work?

Deep dive into Claude Code’s core Agent Loop: the complete lifecycle from user input to model response. Unveiling the query.ts state machine, tool execution orchestration, and continuation decision logic to understand how the AI coding assistant “thinks” and “acts.”

April 18, 2026 · 8 min · 1599 words · Monster Programming
High‑value AI Toolkit Less than a coffee/month →
扫码关注公众号
微信公众号二维码

Weekly Rust / AI tips · Community Q&A · Exclusive perks