技能 效率工具 会话成本明细

会话成本明细

v20261029
cost-conversation
按会话汇总 cost-tracking 数据,列出每个会话的开始时间、消息数、主要模型和总成本,便于分析单次对话开销、复盘高成本会话及项目成本汇总。
获取技能
166 次下载
概览

Cost per Conversation

cost-report and cost-optimize aggregate by agent and model. This skill aggregates by conversation (session) — a different lens that surfaces which conversations cost the most. Useful for retrospectives ("which sessions ran long on Opus?") and for evaluating whether a given project's session pattern is sustainable.

When to use

  • After multiple sessions, to see total spend per conversation.
  • Before scoping a long session, to understand typical cost-per-conversation.
  • For per-project rollups via CONV_NAMESPACE=cost-tracking-<project>.

Steps

  1. Run the script from anywhere:

```bash
node plugins/ruflo-cost-tracker/scripts/conversation.mjs
```

Optional env:

  • CONV_FORMAT=json — emit JSON instead of markdown
  • CONV_LIMIT=20 — show only the most recent N conversations
  • CONV_NAMESPACE=cost-tracking — override target namespace
  1. Inspect the markdown table — total cost across all conversations, per-tier rollup, then a per-session table (started-at, sessionId prefix, message count, top model, cost).

Cross-references

  • cost-track — the producer that populates cost-tracking:session-*
  • cost-report — same data, per-agent / per-model lens
  • cost-trend — drift across bench runs (different axis: corpus runs vs conversations)
  • cost-budget-check — sums across conversations to evaluate the budget threshold
信息
分类 效率工具
名称 cost-conversation
版本 v20261029
大小 1.64KB
更新时间 2026-10-30
语言