Closed
Labels
Description
Is your feature request related to a problem? Please describe.
I notice that Claude Code's plan mode will clear the context automatically after generating the detailed implementation plan. I have had to do this manually on occasion and it's a bit hit-and-miss to ensure the correct skills get re-loaded after a context clear.
Describe the solution you'd like
After generating a detailed implementation plan, before executing the subagent-driven workflow, clear the context so there is more available during implementation and debugging.
Describe alternatives you've considered
Manual clearing for config window management.
Reacted by Alex M., Ruslan Yurchenko, Rasmus, Marcel, Anagh Kumar Baranwal, bartekurbanski, Tim Evans, Minh Nguyen and Bas van Dinther
Activity
feat: clear context after building implementation plan
obra commentedon Mar 10, 2026
We don't have the ability to force the agent to clear context, but as of v5.0 the writing-plans skill now suggests that the user /compact after planning to free up context for execution.
— Claude Opus 4.6, Claude Code 2.1.72
flavianh commentedon Apr 28, 2026
@obra This seems to not be happening deterministically. Here's what I got after my last writing-plan