Agent skill · Audited from source
Cost Track
skill · ruvnet/rufloMIT licenceAudited 25 Sep 2026 · source ef7d4f0535e5
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit ef7d4f0535e5 and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 4 findings, 0 critical or high. What it does: Auto-capture per-session token usage from the Claude Code session jsonl and persist to the cost-tracking namespace
Cite
Cite this page
ModelsAtlas. “Cost Track (ruvnet/ruflo)”. Retrieved 25 Sep 2026. https://modelsatlas.com/skills/ruvnet/cost-track
Trust audit
Audit 0.4.1 · source read 25 Sep 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 4 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (4)
MEDIUMInventory / provenanceinv.symlink · crates
crates
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/agents
plugin/agents
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/commands
plugin/commands
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/skills
plugin/skills
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha ef7d4f0535e5 · 25 Sep 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherruvnet GitHub userOwner of the repository this skill is read from
- Source folderruvnet/ruflo/plugins/ruflo-cost-tracker/skills/cost-trackThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdictef7d4f0535e5A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Auto-capture per-session token usage from the Claude Code session jsonl and persist to the cost-tracking namespace
---
name: cost-track
description: Auto-capture per-session token usage from the Claude Code session jsonl and persist to the cost-tracking namespace
argument-hint: ""
allowed-tools: Bash mcp__plugin_ruflo-core_ruflo__memory_store
---
# Cost Track
Reads the active Claude Code session jsonl (`~/.claude/projects/<encoded-cwd>/<session>.jsonl`), tallies assistant-message `usage` per model, computes USD cost using REFERENCE.md pricing, and writes a structured record to the `cost-tracking` AgentDB namespace. This is the **producer** that gives `cost-report` and `cost-optimize` real data to consume.
## When to use
- After a meaningful chunk of work, to capture spend for the report.
- At session-end to persist the final tally.
- Periodically during long sessions (cron-friendly — see `/loop 30m`).
## Steps
1. **Run the tracker** from the project root:
```bash
node plugins/ruflo-cost-tracker/scripts/track.mjs
```
The script auto-discovers the session jsonl from the current working directory. To pin a specific session: `TRACK_SESSION=/path/to/session.jsonl`. To dry-run (no memory write): `TRACK_DRY_RUN=1`.
2. **Inspect the markdown summary** — total cost, per-model and per-tier breakdowns, and the persisted memory key.
3. **Verify persistence** — `mcp__plugin_ruflo-core_ruflo__memory_search --query "session-" --namespace cost-tracking` should list the new record. `cost-report` step 1 reads from this namespace.
## Record shape (in `cost-tracking` namespace)
Key: `session-<sessionId>`. Value (JSON):
```json
{
"sessionId": "1dba3b8c-...",
"cwd": "/Users/cohen/Projects/ruflo",
"startedAt": "2026-05-04T...",
"endedAt": "2026-05-05T...",
"messageCount": 234,
"byModel": {
"claude-opus-4-7": {
"tier": "opus",
"input_tokens": 12345,
"output_tokens": 6789,
"cache_creation_input_tokens": 800000,
"cache_read_input_tokens": 2000000,
"messages": 50,
"cost_usd": 1.23
}
},
"byTier": { "haiku": 0.0, "sonnet": 0.45, "opus": 1.23, "unknown": 0 },
"total_cost_usd": 1.68,
"capturedAt": "2026-05-05T..."
}
```
## Pricing source of truth
The script's `PRICING` constant mirrors REFERENCE.md "Model pricing (USD per 1M tokens)". Update both together when prices change. Cache-write tokens are billed at `cache_write` rate; cache-read tokens at `cache_read` (per Anthropic billing docs).
## Env overrides
| Env | Default | Purpose |
|---|---|---|
| `TRACK_CWD` | `process.cwd()` | Override which project's sessions to scan |
| `TRACK_SESSION` | most-recent jsonl | Pin a specific session file |
| `TRACK_OUT` | unset | Also write the JSON summary to this path |
| `TRACK_DRY_RUN=1` | unset | Skip the `memory store` call |
| `TRACK_QUIET=1` | unset | Suppress markdown output |
| `TRACK_NAMESPACE` | `cost-tracking` | Override target namespace |
## Cross-references
- `cost-report` (consumer) — reads records produced by this skill
- REFERENCE.md "Cost attribution formula" — the math the script implements
- `cost-budget-check` (consumer; landing in P2) — reads totals to evaluate alertsExcerpt, first 3,088 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit ef7d4f0
git clone https://github.com/ruvnet/ruflo git -C ruflo checkout ef7d4f0535e5
The author documents no install command, so this uses the repository directly. Our verdict covers commit ef7d4f0535e5 only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
ef7d4f0535e5
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/ruvnet/cost-track/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
ruvnet/claude-flow
Quantum-resistant, self-learning version control for AI agents with ReasoningBank intelligence and multi-agent coordination
ruvnet/claude-flow
Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus
ruvnet/claude-flow
Cloud-based AI swarm deployment and event-driven workflow automation with Flow Nexus platform
ruvnet/claude-flow
Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management
ruvnet/claude-flow
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
ruvnet/claude-flow
Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
Add this badge to your README
[](https://modelsatlas.com/skills/ruvnet/cost-track/)
<a href="https://modelsatlas.com/skills/ruvnet/cost-track/"><img src="https://modelsatlas.com/skills/ruvnet/cost-track/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Cost Track
What does the Cost Track skill do?
Is Cost Track safe to install?
What can Cost Track access on my machine?
Which assistants does Cost Track work with?
How current is this page?
Sources
- github.com/ruvnet/ruflo/tree/main/plugins/ruflo-cost-tracker/ski — the audited source at commit ef7d4f0535e5 and every finding aboveObserved · 25 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Cost Track skill do?
- Is Cost Track safe to install?
- What can Cost Track access on my machine?