CommandCodeAI / CommandCodeAI/command-code

Display real-time session and context metrics to improve user awareness, cost control.

Open
#474 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

Feature Description

The TUI should display the following information in a visible and accessible section (e.g., below the chat box or at the top):

Context Usage

  • Current context usage vs total available context (e.g., 12K / 32K tokens)

Token Metrics

  • Total input tokens
  • Total output tokens
  • Cached tokens (if applicable)

Cost Tracking

  • Total cost incurred during the session (in $)

Time metrics

  • Total time elapsed for each step/message in a conversation
  • Time elapsed since the session started or last reset
Use Case
  • Helps users monitor context limits
  • Improves cost transparency and control
  • Enables users to decide when to start a fresh session instead of continuing with an overloaded one
Additional Context

No response

How important is this to you?

None

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TUI's chat and session display, then trace the existing per-message response data for context, token, cost, and timing values. Define how session totals and per-step times should be shown, and verify that the display updates during a conversation and resets with a new session.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.