Skip to content
ruvnet avatar

Cost Conversation

Per-conversation cost view that ranks sessions by spend, message count, and top model.

CCM score
63 of 100
skills.sh installs
682
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a per-session rollup of every entry in the cost-tracking namespace, shown as a markdown table or JSON
  • Reports started-at, session ID prefix, message count, top model, and total cost, plus a grand total and per-tier rollup
  • Supports CONV_LIMIT to show only the most recent sessions and CONV_NAMESPACE for per-project rollups
  • Designed for retrospectives on long sessions and for checking whether a project's session pattern is sustainable

Install

$ npx -y skills add ruvnet/ruflo --skill cost-conversation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

    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
  2. 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

Details

Repository
github.com/ruvnet/ruflo
Categories
Agent Workflow & Planning, Finance & Trading, Memory & Context
First seen
Jun 3, 2026

Questions

What does the cost-conversation skill do?

The cost-conversation skill gives a per-conversation cost view, listing every session in cost-tracking with its start time, message count, top model and total cost. It aggregates by session rather than by agent or model, which shows which conversations cost the most. The script prints a markdown table with per-tier rollups and can emit JSON instead.

How do I install the cost-conversation skill?

Run npx -y skills add ruvnet/ruflo --skill cost-conversation -y in your project. This installs the skill from the ruvnet/ruflo repository. Once installed, the agent can run the conversation cost script to report spend per session.

Which skills lead the cost-conversation skill in its category?

In the Agent Workflow & Planning category, cost-conversation sits alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. Its distinct lens is session-level cost, which differs from the agent and model views of cost-report and cost-optimize. It suits retrospectives on which sessions ran long on expensive models.

Can I limit or filter the cost-conversation output?

Yes, the script accepts environment variables. CONV_LIMIT=20 shows only the most recent N conversations, CONV_FORMAT=json switches output to JSON, and CONV_NAMESPACE overrides the target namespace, for example cost-tracking-<project> for per-project rollups.

More from ruvnet/ruflo

All 236

Similar to Cost Conversation

More Agent Workflow & Planning