feat(cli): add /compress command for manual conversation context compression

Introduced a new command "/compress" to the CLI, allowing users to manually trigger context compression on the current conversation. The method checks for sufficient conversation history and active agent status before performing compression, providing feedback on the number of messages and tokens before and after the operation. Updated command documentation accordingly.
This commit is contained in:
teknium1 2026-03-01 00:16:38 -08:00
parent 41d8a80226
commit 30efc263ff
2 changed files with 38 additions and 0 deletions

View file

@ -26,6 +26,7 @@ COMMANDS = {
"/skills": "Search, install, inspect, or manage skills from online registries",
"/platforms": "Show gateway/messaging platform status",
"/verbose": "Cycle tool progress display: off → new → all → verbose",
"/compress": "Manually compress conversation context (flush memories + summarize)",
"/quit": "Exit the CLI (also: /exit, /q)",
}