stats

stats is a skill for Claude Code from kalinbogatzevski/captain-memo. It costs 36 tokens per session (623 once invoked), scanned A, original, Apache-2.0.

A health-check command for Captain Memo, a local memory system used by coding tools. It reports whether its worker, search service, settings, and plugin setup are working.

In plain words
What is it for?
Use it to check service status, indexing progress, stored-content counts, configuration, and related installation issues.
Why use it?
It helps identify which part of the memory system is unavailable and gives a starting point for fixing the problem.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the captain-memo plugin — 5 skills, 6 hooks shipped together

Good fit Use it to check service status, indexing progress, stored-content counts, configuration, and related installation issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kalinbogatzevski/captain-memo/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.

Any agent
npx skills add kalinbogatzevski/captain-memo --skill stats
Clone the repo
git clone --depth 1 https://github.com/kalinbogatzevski/captain-memo

Made for: Claude Code.

Or install captain-memo, the plugin that ships this one along with the rest of its 5 skills, 6 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 stats

README.md
[![agentmods](https://agentmods.dev/badge/skills/kalinbogatzevski/captain-memo/stats.svg)](https://agentmods.dev/skills/kalinbogatzevski/captain-memo/stats)
Your own site
<a href="https://agentmods.dev/skills/kalinbogatzevski/captain-memo/stats"><img src="https://agentmods.dev/badge/skills/kalinbogatzevski/captain-memo/stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00036 $0.00623
Opus 5 $0.00018 $0.00311
Sonnet 5 $0.00007 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured 7d ago against content hash 3e0b68938d58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

stats scanned grade A with 1 finding 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 7d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:39888/stats
plugin/skills/stats/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Captain Memo — corpus stats

When invoked, fetch the worker's /stats endpoint and present it readably.

What to do

curl -s http://127.0.0.1:39888/stats

The response includes: total_chunks, by_channel, observations (total/queue_pending/queue_processing), indexing (status/done/total/percent/elapsed_s/errors/last_error), project_id, embedder (model/endpoint), efficiency, and worker (started_at_epoch, uptime_s).

A successful /stats response means the backend worker is ONLINE — lead with that and its uptime. Format worker.uptime_s compactly: 45s / 12m / 2h 13m / 3d 4h. If the curl fails / connection refused, the worker is OFFLINE — say so and point the user at captain-memo doctor (see "On error").

Output format

Captain Memo — corpus statistics
────────────────────────────────
  Worker:         ● online · up 2h 13m
  Project:        <project_id>
  Indexing:       ready (or "indexing 47/275 (17%) ETA=3m 12s")
  Total chunks:   <total>
  By channel:
    memory          <count>
    skill           <count>
    observation     <count>
  Observations:   <total> · <pending> pending · <processing> processing
  Embedder:       <model> @ <endpoint>

Efficiency
──────────
  Compression:    16.4× — distilled 184,320 tokens of work into 11,240 stored
                  (94% saved · based on 312/340 observations)
  Embedder:       47 calls · ~690 ms avg · 4,100 tok/s   (since worker start)
  Dedup:          95% of docs skipped re-embed (488/512 unchanged)

The efficiency block reports corpus compression (summed observation work_tokens vs stored_tokens), embedder throughput, and dedup hit-rate. If compression shows "— (run 'captain-memo reindex' …)", the corpus has no work_tokens data yet — reindex to populate it.

If indexing.status === "indexing", show the progress in yellow with rate and ETA. If "ready", show in green with "indexed N/N in M". If "error", show the last_error in red.

On error

Read the full file on GitHub · 57 lines

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. 7d ago First seen · 57 lines · 36 tokens per session scan A 3e0b68938d58

Subscribe to this mod's changes

stats is a skill published in the GitHub repository kalinbogatzevski/captain-memo (3 stars, last pushed 4d ago), licensed Apache-2.0. It adds 36 tokens to every session and 623 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.