Summary
Context compaction currently runs automatically when the context window
approaches the model limit. Add a /compact slash command so users can
trigger it manually, and expose the threshold as a configurable setting.
Scope
/compact slash command in the TUI — triggers compaction immediately
nexus config set compaction.threshold 0.8 — set the auto-trigger fraction
nexus config set compaction.enabled false — disable auto-compaction
- Compaction summary displayed in the chat after
/compact completes
Acceptance criteria
Summary
Context compaction currently runs automatically when the context window
approaches the model limit. Add a
/compactslash command so users cantrigger it manually, and expose the threshold as a configurable setting.
Scope
/compactslash command in the TUI — triggers compaction immediatelynexus config set compaction.threshold 0.8— set the auto-trigger fractionnexus config set compaction.enabled false— disable auto-compaction/compactcompletesAcceptance criteria
/compactregistered in the commands palette and slash-command handlercompaction.thresholdconfig key accepted and persistedcompaction.enabledconfig key accepted and persisteddocs/sdk.mdunder "Long-context compaction"