-
Notifications
You must be signed in to change notification settings - Fork 788
[Feature Request] Allow /compact to accept custom summarization instructions #544
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What feature would you like to see?
Description
- Background: /compact currently uses a fixed prompt, so users cannot steer summarization (e.g., “code only”, “avoid personal info”). Claude Code supports /compact , and we have the same need.
- Problem: Manual /compact calls can’t accept a hint, so the summary may not fit the scenario. Automatic compaction should keep the default behavior.
- Proposal:
- Let /compact accept an optional hint /compact and pass it through to SimpleCompaction.
- In SimpleCompaction, append User instruction: after the default prompts.COMPACT; if no hint is provided, keep current behavior.
- Update help text and add a test covering custom instruction injection.
- Impact: Defaults unchanged; only user-invoked /compact with a hint alters the compaction prompt.
- Validation: Add/adjust tests; manual check with /compact summarize code only to see the summary change.
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request