Skip to content

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

@NeoMetric

Description

@NeoMetric

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions