Ais
51 posts

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.

Environment Variables Reference - Complete Claude Code Configuration Guide
Complete Claude Code environment variables reference handbook, covering all configurable options for debugging, caching, permissions, memory, models, and more.

After Compaction, What Does AI Still Remember?——State Retention Mechanism
Deep dive into Claude Code’s context compaction state retention mechanism: lossy compression design, metadata preservation, the role of reference links, and how AI elegantly makes tradeoffs when “memory runs out.”

Prompt Caching——Claude Code's "Money-Saving Secret"
Deep dive into Claude Code’s prompt caching mechanism: cache breakpoint design, tool ordering stability, and cache interruption detection. Unveiling how prompt caching dramatically reduces API call costs, and why tool ordering must remain stable.

File Index Handbook - Claude Code Source Code Quick Reference
Claude Code core source code file index, organized by functional modules, with quick location guide for key classes, functions, and configuration files.

Codex Mobile with Third-Party API: Exploiting the Auth/Model Layer Decoupling
Got Codex Mobile working with a third-party API relay. The key insight: Auth and Model layers are fully decoupled — ChatGPT handles identity, coding.rexai.top handles inference. Full configuration guide included.

200K Context Window——AI's "Memory Palace" Management
Deep dive into Claude Code’s context management mechanism: 200K tokens isn’t “unlimited memory,” how it auto-compacts, precisely prunes, and budget allocates. Unveiling how AI manages massive code information within a limited context window.

Shortcomings - What Claude Code Still Does Imperfectly
An objective analysis of Claude Code’s six major shortcomings: context window ceiling, tool latency accumulation, cost-quality tradeoffs, lack of offline capability, complex logic limitations, and memory system boundaries.

Tool Descriptions——Helping AI "Understand" Each Tool's Manual
Deep dive into Claude Code’s tool description design: how to help AI accurately understand each tool’s purpose and use cases. Unveiling how tool descriptions become “instructions for the model,” how inputSchema affects parameter selection, and the application of dynamic descriptions.

Production-Grade AI Coding Patterns - 6 Reusable Engineering Practices
Six production-grade AI coding patterns extracted from Claude Code source code: Read Before Edit, Graduated Autonomy, Defensive Git, Structured Verification, Scope-Matched Response, and Tool-Level Prompts, plus the wisdom of dual-layer constraints.
