CommandCodeAI / CommandCodeAI/command-code

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

未关闭
#474 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 TUI 的聊天和会话显示开始,然后追踪现有的逐条消息响应数据,以获取上下文、令牌、成本和时间值。定义应如何显示会话总计和每步耗时,并验证显示内容会在对话过程中更新,并在新会话开始时重置。

由索引模型根据 Issue 内容生成。

评估

领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。