Skip to content

Clear context after building detailed implementation plan - Claude Code #478

Closed

Description

@tardoe

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.

Activity

  1. added
    enhancement
    on Feb 15, 2026
  2. added a commit that references this issue on Feb 15, 2026
    9a40cd7
  3. added
    claude-code
    on Feb 21, 2026
  4. obra commented on Mar 10, 2026

    @obra
    Owner

    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

  5. flavianh commented on Apr 28, 2026

    @flavianh

    @obra This seems to not be happening deterministically. Here's what I got after my last writing-plan

    Coding plan is done —                                            
      docs/superpowers/plans/2026-04-28-web-review-buckets-ace.md (1,790 
      lines, commit 1571dc26).                                 
                                                                         
      Plan shape:                                                      
      - 14 tasks, each = one commit                                      
      - [...]   
                                                                         
      Notable adjustments from the spec:                                 
      - [...]                             
                                                                       
      Review the plan and let me know if you want changes, or say go and 
      I'll start executing task by task.   
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-codeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions