Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

1.6 KB
Raw Blame

name: cost-conversation description: Per-conversation cost view β€” list every session in cost-tracking with started-at, message count, top model, and total cost argument-hint: "" allowed-tools: Bash disable-model-invocation: true

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

  • 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