Skip to content

feat(stats): show session metrics in teamai stats#119

Merged
jeff-r2026 merged 1 commit into
codex/codex-usage-dashboardfrom
feat/stats-dashboard-metrics
Jul 2, 2026
Merged

feat(stats): show session metrics in teamai stats#119
jeff-r2026 merged 1 commit into
codex/codex-usage-dashboardfrom
feat/stats-dashboard-metrics

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • teamai stats 命令新增展示 dashboard 收集的会话级指标:
    • 会话数量 (sessions)
    • 对话轮数 (conversation turns)
    • Token 用量(总量 + input/output/cache 细分)
    • 人工干预统计(interrupts/tool rejects/corrections)
  • 复用已有的 readEventsaggregateSessionMetricsformatTokenCount 模块,无新依赖
  • 本地数据与已上报的 team stats 合并展示

Test plan

  • npx tsc --noEmit 类型检查通过
  • npx vitest run 相关测试全部通过(111/111)
  • npx tsx src/index.ts stats 手动验证输出格式正确

🤖 Generated with Claude Code

… interventions

The `teamai stats` command now displays dashboard-collected metrics
(sessions, prompts, tokens, interventions) alongside skill usage,
giving a complete view of AI coding tool usage from the CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-r2026 jeff-r2026 merged commit fa74e23 into codex/codex-usage-dashboard Jul 2, 2026
1 check passed
@jeff-r2026 jeff-r2026 deleted the feat/stats-dashboard-metrics branch July 2, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant