-
Notifications
You must be signed in to change notification settings - Fork 5
Add compaction events display to CLI #8
Copy link
Copy link
Open
Labels
area: cliCLI commands and optionsCLI commands and optionsdifficulty: beginnerSuitable for first-time contributorsSuitable for first-time contributorsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Metadata
Metadata
Assignees
Labels
area: cliCLI commands and optionsCLI commands and optionsdifficulty: beginnerSuitable for first-time contributorsSuitable for first-time contributorsenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Problem
CAT has a full
compaction_eventstable and a/api/compactionsendpoint, but no CLI command to view compactions and no dashboard panel showing them. Compactions are critical events where the context window is reset — users need visibility into how often this happens and how many tokens are recovered.What to do
Add a
compactionsCLI command tosrc/context_analyzer_tool/cli.pythat:/api/compactionsendpointFiles to look at
src/context_analyzer_tool/collector/routes.py— the/api/compactionsendpoint already existssrc/context_analyzer_tool/cli.py— follow the pattern ofanomaliescommandsrc/context_analyzer_tool/db/compaction.py— DB layer (already done)Why this is a good first issue
The backend is 100% done. This is purely a presentation task — call an existing API and format the response. Great for learning the CLI → API pattern.