octo-usage

octo-usage is a command for Claude Code, Cursor from nyldn/claude-octopus. It costs 26 tokens per session (518 once invoked), scanned A, original, MIT.

A usage report that breaks down recorded token and estimated cost data by provider, skill, and MCP server. An MCP server is a connected service that supplies tools or data to the agent.

In plain words
What is it for?
It reads usage records and workflow summaries, then presents a table or machine-readable report with interpretation.
Why use it?
It makes it easier to see where agent usage and spending came from and compare the results with Claude Code's report.

Command for Claude CodeCursor

Written for Claude Code and Cursor: allowed-tools in frontmatter, but also a Cursor plugin manifest. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the octo plugin — 70 skills, 106 commands, 10 agents, 18 hooks shipped together

Good fit It reads usage records and workflow summaries, then presents a table or machine-readable report with interpretation.

Compare 6 commands from other repositories ↓
About the project

Claude Octopus is an orchestration project that sends research, design, and coding tasks to Claude Code and other AI model providers so their results can be compared. Developers use it for multi-model work, disagreement detection, reviews, persistent context, and an optional workflow that moves from discovery through delivery. The catalogue entries are its commands, skills, agents, instructions, hooks, plugins, and settings.

nyldn/claude-octopus · 4,056 stars · on GitHub · reddit.com

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nyldn/claude-octopus
Claude Code
/plugin install octo

Made for: Claude Code, Cursor.

Or install octo, the plugin that ships this one along with the rest of its 70 skills, 106 commands, 10 agents, 18 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for octo-usage

README.md
[![agentmods](https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-usage/github.svg)](https://agentmods.dev/commands/nyldn/claude-octopus/octo-usage)
Your own site
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-usage"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-usage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for octo-usage

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/octo-usage"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/octo-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00518
Opus 5 $0.00013 $0.00259
Sonnet 5 $0.00005 $0.00104
Haiku 4.5 $0.00003 $0.00052

Measured 6d ago against content hash 393cc5efb127, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

octo-usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • usage — 91% identical, 3 lines differ
.cursor-plugin/commands/octo-usage.md · 49 lines

What it actually says

Usage Report (/octo:usage)

Your first output line MUST be: 🐙 Octopus Usage Report

Produce a per-provider, per-skill, and per-MCP-server cost and token breakdown from recorded Octopus usage artifacts. Output schema matches Claude Code's native /usage report (claude-code/usage-v1), so results can be compared or merged with the host session's own usage pane.

EXECUTION CONTRACT (Mandatory)

STEP 1: Run the report helper

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}"
"$OCTO_ROOT/scripts/helpers/usage-report.sh" --view usage --format table

If the user asked for machine-readable output (or passed --format json):

OCTO_ROOT="${CLAUDE_PLUGIN_ROOT:-${HOME}/.claude-octopus/plugin}"
"$OCTO_ROOT/scripts/helpers/usage-report.sh" --view usage --format json

The helper reads:

  • ~/.claude-octopus/usage/*.jsonl — JSONL records written by hooks/subagent-stop-gate.sh and provider adapters
  • ~/.claude-octopus/results/**/summary.json — council and workflow roster artifacts (query counts)

STEP 2: Present the breakdown

Show the helper's table output directly. Then add a one-paragraph interpretation:

  • Which provider drove the most estimated cost
  • Whether any external CLI seat (🔴 Codex, 🧭 Antigravity) dominates and could be swapped for an included provider
  • Whether MCP server usage is material

STEP 3: Flag empty data honestly

If the helper prints No usage records found, say so and point the user at OCTOPUS_SUBAGENT_GATE_STRICT and the SubagentStop gate hook (hooks/subagent-stop-gate.sh), which populates the usage log as subagents complete. Do not fabricate numbers.

Cost reference

Rates come from config/model-pricing.tsv. The helper is the only calculator. Providers with subscription or local backends such as agy, Copilot, Ollama, Cursor Agent, and native OpenCode report $0.00.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 49 lines · 26 tokens per session scan A 393cc5efb127

Subscribe to this mod's changes

octo-usage is a command published in the GitHub repository nyldn/claude-octopus (4,056 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 518 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.