[FEATURE] Ability to show and manipulate raw contents of the context window
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
The context window is currently a black box. If Claude Code can show current contents of its context window, very useful features could be built on top of that information. There are hacky ways to infer what’s in there but just being able to dump it and see it at any moment would be immensely useful!
It would be even better if it was possible to manipulate it directly in addition to seeing it. True “context management” which could be entirely or partially given to an external tool!
Proposed Solution
Users wouldn’t care to use this directly It would to build tools on top, so API call, cli option, that sort of interface would be best.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
- I have no way to peer into the context window
- I’d love to build a tool to augment context window management
Additional Context
_No response_
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗