claude-code
claude-code copied to clipboard
[FEATURE] Compact tool
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
My current workflow requires I call /compact after each stage to use as little of the context window as possible.
Proposed Solution
I would like Claude to have a tool that lets it compact, something I can reference in a Skill as a cleanup step after some work has been accomplished.
Alternative Solutions
No response
Priority
Medium - Would be very helpful
Feature Category
API and model interactions
Use Case Example
- Claude just finished performing some research with subagents and compiled a research document
- Compact the context window to remove tool call results since they are now in the document
- Begin drafting an implementation plan
- Compact the context window
Additional Context
No response