cost-conversation
它能做什么
这项技能列出你记录过的每一次 AI 会话,包括开始时间、消息数量、主要模型和总成本。适合想查看哪些对话花费最多的人。
适用场景
- ✓当你想回顾过去哪些对话比较昂贵时。
- ✓当你计划一次长会话,想先了解典型成本时。
- ✓当你希望按项目分组查看成本摘要时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-conversation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请告诉我,我的哪些 AI 对话花费最多。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能读取已记录的会话数据,生成一个包含总计和各模型明细的表格。你可以只显示最近的对话,或要求输出 JSON 格式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
Run the script from anywhere:
node plugins/ruflo-cost-tracker/scripts/conversation.mjsOptional env:
CONV_FORMAT=json— emit JSON instead of markdownCONV_LIMIT=20— show only the most recent N conversationsCONV_NAMESPACE=cost-tracking— override target namespace
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 populatescost-tracking:session-*cost-report— same data, per-agent / per-model lenscost-trend— drift across bench runs (different axis: corpus runs vs conversations)cost-budget-check— sums across conversations to evaluate the budget threshold
常见问题
我能只看最近的对话吗?
可以。设置一个数量限制,即可只显示最近的对话。
它与成本报告有什么不同?
成本报告按智能体和模型分组汇总支出,而这项技能按对话分组。
我能获得机器可读的格式吗?
可以。一个设置可以将输出切换为 JSON。
详情
作者的原始描述
Per-conversation cost view — list every session in cost-tracking with started-at, message count, top model, and total cost
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1597
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。