You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: abctl: text-based visualization of cortex event volume and performance #873
I don't know how much LLM and tools my agents are using.
I can view individual events chronologically in the abctl event picker, but it is hard to infer usage over time from that view.
Proposed Solution
Add a "usage" or "metrics" screen to the abctl TUI.
The screen would provide simple bar or line graphs of volume and response time, with the horizontal axis being wall clock time.
The screen will cycle between show volume and time details for a single session or all sessions
The screen will cycle between a view of the last five minutes, the last hour, and longer (if historical info is there)
The screen will perhaps use ANSI color or texture to allow the user to distinguish between traffic for a METHOD (e.g. claude-sonnet), a STATUS (200 vs 50x), or a PLUGIN.
Want to contribute?
I would like to work on this issue.
Additional Context
See #872 for inspirational Grafana dashboard showing the kinds of metrics Claude users like to see.
Session count cap — default 100. discards whole sessions when too many exist.
abctl's Snapshot refetch replaces the list of events.
abctl could be modified to keep events, or the counts and sums needed for visualization. However, this means that exiting abctl and restarting it would lose data, and that different users or different abctl sessions could show different data for the same Cortex instance.
Cortex offers a /v1/events stream, but it only streams new events, not historical ones.
To get around those limitations we could add a /v1/metrics endpoint to Cortex and let it accumulate/sum durations and token counts. However, Cortex doesn't know what the abctl user wants, or even if abctl is connected. If no one queries, it is wasted work.
Activity
esnible commentedon Sep 4, 2026
Note: currently Cortex limits the historical information it offers to abctl in three ways:
abctl's Snapshot refetch replaces the list of events.
abctl could be modified to keep events, or the counts and sums needed for visualization. However, this means that exiting abctl and restarting it would lose data, and that different users or different abctl sessions could show different data for the same Cortex instance.
Cortex offers a /v1/events stream, but it only streams new events, not historical ones.
To get around those limitations we could add a /v1/metrics endpoint to Cortex and let it accumulate/sum durations and token counts. However, Cortex doesn't know what the abctl user wants, or even if abctl is connected. If no one queries, it is wasted work.
esnible commentedon Sep 4, 2026
Candidate view of token usage
esnible commentedon Sep 4, 2026
Candidate view of grouping by STATUS
esnible commentedon Sep 4, 2026
Candidate view of duration
Feat: Add stacked-by-status and mean-with-whiskers usage renderers (#883