The Wipe & Inject Pattern: Full Context for Implementation After Long Planning Sessions
dev.to·1d·
Discuss: DEV
🔧KAITAI
Preview
Report Post

If you use Claude Code (or any agentic tool) for serious development, you have hit "The Wall."

The Scenario:

Phase 1 (Planning): You spend 45 minutes debating the architecture. You ask Claude to read 20 files, check dependencies, and plan the auth system.

Cost: ~150k tokens. Result: A perfect plan.

Phase 2 (Implementation): You say: "Great, write the code."

The Crash: Claude responds: "I need to compact my memory to proceed."

The Workaround Everyone Uses:

  1. "OK, save the plan to a .md file first"
  2. Claude compacts (loses context)
  3. "Now read the .md file you just created"
  4. Claude re-explores files mentioned in the plan
  5. "Update the .md with your progress as you go"
  6. Repeat steps 2-5 every time context fills up

The Problem: When the…

Similar Posts

Loading similar posts...