stats

stats is a command for Claude Code from yacb2/domaintome. It costs 26 tokens per session (384 once invoked), scanned A, original, MIT.

A command that reports DomainTome's MCP usage from the current project's database, including calls, transferred data, estimated tokens, and breakdowns by tool and operation.

In plain words
What is it for?
Use it after a DomainTome sync or for a selected time period with an ISO timestamp to review calls, errors, data volume, and tool or operation counts.
Why use it?
It makes usage patterns visible so you can see how often the MCP tools are called and which ones account for the traffic.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the dt plugin — 1 skill, 9 commands, 1 agent, 2 hooks, 1 MCP server shipped together

Good fit Use it after a DomainTome sync or for a selected time period with an ISO timestamp to review calls, errors, data volume, and tool or operation counts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yacb2/domaintome/stats
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yacb2/domaintome

Made for: Claude Code.

Or install dt, the plugin that ships this one along with the rest of its 1 skill, 9 commands, 1 agent, 2 hooks, 1 MCP server.

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 stats

README.md
[![agentmods](https://agentmods.dev/badge/commands/yacb2/domaintome/stats/github.svg)](https://agentmods.dev/commands/yacb2/domaintome/stats)
Your own site
<a href="https://agentmods.dev/commands/yacb2/domaintome/stats"><img src="https://agentmods.dev/badge/commands/yacb2/domaintome/stats/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 stats

Your own site · 80×15
<a href="https://agentmods.dev/commands/yacb2/domaintome/stats"><img src="https://agentmods.dev/badge/commands/yacb2/domaintome/stats.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 384 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.00384
Opus 5.5 $0.00010 $0.00154
Sonnet 5.5 $0.00005 $0.00077
Haiku 4.5 $0.00003 $0.00038

Measured 1mo ago against content hash a8a7fd467aae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stats 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 1mo 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.

plugins/domaintome/commands/stats.md · 50 lines

What it actually says

Report DomainTome's own usage analytics: how many MCP calls have been made against this graph, the byte volume exchanged (with a rough token estimate), and a per-tool / per-op breakdown.

Steps

  1. Run dt stats against the current project's DB. If $ARGUMENTS contains an ISO timestamp, pass it as --since:

    dt stats [--since $ARGUMENTS]
    
  2. Summarize the output in a tight block:

    ## DomainTome usage (<period>)
    
    - Calls: N   (errors: N)
    - Total exchanged: X KB  (~Y tokens)
    - Input: X KB (~Y tokens)
    - Output: X KB (~Y tokens)
    
    ### By tool
    - dt_add_node: N calls · X KB (~Y tokens)
    - dt_audit: N calls · X KB (~Y tokens)
    - ...
    
    ### By op
    - audit / read / create / update / delete counts.
    
  3. Honest proxy note: the CLI does not measure true tokens; the column is bytes × 0.3, useful for relative comparisons between tools or time periods, not for billing-grade numbers. Mention this only if the user asks for precision.

When to use

  • After a /dt:sync (INIT or EXTEND mode) to see what the seed/extend pass cost.
  • Periodically to spot unusually hot tools.
  • With --since <yesterday> to scope to a session.
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. 1mo ago First seen · 50 lines · 26 tokens per session scan A a8a7fd467aae

Subscribe to this mod's changes

stats is a command published in the GitHub repository yacb2/domaintome (0 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 384 once invoked, about $0.0001 per session on Opus 5.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-08-31.

Related

Other commands, from other repositories

mega-approve

Approve the mega-plan and start feature execution. Creates worktrees and generates PRDs for each feature. Usage: /plan-cascade:mega-approve [--flow ] [--tdd ] [--confirm] [--no-confirm] [--spec ] [--first-principles] [--max-questions N] [--auto-prd] [--agent ] [--prd-agent ] [--impl-agent ].

Taoidle/plan-cascade · 110 tokens

auto

AI auto strategy executor. Analyzes task and automatically selects and executes the best strategy: direct execution, hybrid-auto PRD generation, hybrid-worktree isolated development, or mega-plan multi-feature orchestration.

Taoidle/plan-cascade · 41 tokens

resume

Auto-detect and resume any interrupted Plan Cascade task. Detects mega-plan, hybrid-worktree, or hybrid-auto context and routes to the appropriate resume command.

Taoidle/plan-cascade · 32 tokens

worktree

Start a new task in an isolated Git worktree for parallel multi-task development. Creates a task branch, worktree directory with planning files, and leaves the main directory untouched. Usage: /plan-cascade:worktree [task-name] [target-branch]. Example: /plan-cascade:worktree feature-login main.

Taoidle/plan-cascade · 65 tokens

mega-status

Show detailed status of mega-plan execution including feature progress and story completion. Usage: /plan-cascade:mega-status.

Taoidle/plan-cascade · 23 tokens

edit

Edit the current PRD in your default editor. Opens prd.json, validates after saving, and re-displays review. Supports adding/removing stories, changing priorities, and modifying dependencies.

Taoidle/plan-cascade · 38 tokens