[FEATURE] Claude clear context for itself

Open 💬 9 comments Opened Jan 27, 2026 by createdaccountbecauseIwantgithubcopilot

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Give Caude the ability to run /clear or /compact for itself, but it preserves the last prompt + some message it can give to itself

Proposed Solution

Claude can run softer versions of /clear or /compact, preserving the last prompt (for when it's executing a plan and believe a good portion is done) and keeps some message to itself (for when it needs to know what's been done).

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

Example scenario:
I've given Claude a larger more detailed plan than it can handle in the current context.
Claude implements some features, and now has to worry about new features
Claude clears it's context about implementing the first few features, and goes back to a clean context window that includes just the original prompt that contains the plan + todolist if it made one + description from the last context window about what's been done.

Additional Context

This feature is for larger more detailed plans, which Claude currently almost certainly fails. This is largely due to how the autocompact works, where it may be in the middle of implementing something and then the context fails, or the autocompact may be affecting the prompt containing the detailed plan.
Currently, when Claude is given long and detailed plans that it cannot handle within a 200k context alone, it almost certainly starts messing up after auto compaction, misremembering details and optimizations, where after half-assing certain implementations, it frequently attempts band aid fixes or becomes inconsiderate of performance, which can all be fixed by giving it the plan prompt + what's been completed with a new context window.
Giving Claude the ability to prune it's own context window allows it to adhere more closely to plans compared to the autocompact used right now.

View original on GitHub ↗

This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗