health

health is a command for coding agents from skynetcmd/m3-memory. It costs 22 tokens per session (448 once invoked), scanned A, original, Apache-2.0.

A health-check command for the m3-memory tool. It reports the installed version, included files, stored chat-log records, and hook status for each supported agent.

In plain words
What is it for?
Use it to inspect an m3-memory installation, confirm chat logging, and check agent hooks.
Why use it?
It gives a short view of whether m3-memory is installed and working, and points out problems that may need repair.

Command

Part of the m3 plugin — 16 skills, 15 commands, 2 agents, 3 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/skynetcmd/m3-memory/health
Clone the repo
git clone --depth 1 https://github.com/skynetcmd/m3-memory

Or install m3, the plugin that ships this one along with the rest of its 16 skills, 15 commands, 2 agents, 3 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 health

README.md
[![agentmods](https://agentmods.dev/badge/commands/skynetcmd/m3-memory/health.svg)](https://agentmods.dev/commands/skynetcmd/m3-memory/health)
Your own site
<a href="https://agentmods.dev/commands/skynetcmd/m3-memory/health"><img src="https://agentmods.dev/badge/commands/skynetcmd/m3-memory/health.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 448 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00022 $0.00448
Opus 5 $0.00011 $0.00224
Sonnet 5 $0.00004 $0.00090
Haiku 4.5 $0.00002 $0.00045

Measured 5d ago against content hash 91f88976c389, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

health 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 5d 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.

commands/health.md · 44 lines

What it actually says

Step 1 — run the doctor command, trying the resolvers below in order. Stop at the first one that returns exit 0; do not run the remaining ones.

# 1. Plain CLI, if mcp-memory is on PATH:
mcp-memory doctor

# 2. Module form, works whenever the m3_memory package is importable
#    (catches pip install --user on Windows where the Scripts dir
#    isn't on PATH, and any `pip install -e` dev checkout):
python -m m3_memory.cli doctor

# 3. Repo-local venv (developer case, run from the repo root):
.venv/Scripts/python.exe -m m3_memory.cli doctor   # Windows
.venv/bin/python -m m3_memory.cli doctor           # macOS/Linux

Step 2 — print the full doctor output verbatim (no paraphrasing).

Step 3 — append exactly ONE short line of interpretation. Examples:

  • all healthy.
  • chatlog DB never captured — run /m3:install.
  • Gemini SessionEnd hook off — run mcp-memory chatlog init --apply-gemini.

Do not write a paragraph. One line. The user can read the doctor output themselves.

Step 4 — if (and only if) doctor reported a repairable problem (a stale/dead agent config path, a duplicate bridge, a disabled plugin, or a "run doctor --fix" hint), OFFER to auto-repair. doctor --fix repoints dead config paths, de-duplicates MCP registrations, and re-syncs agent hooks — it is non-destructive to data. Run the same resolver that worked above, with --fix:

mcp-memory doctor --fix
# or: python -m m3_memory.cli doctor --fix

Then re-run plain doctor to confirm the fix took. If doctor was already all healthy, do NOT run --fix.

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. 5d ago First seen · 44 lines · 22 tokens per session scan A 91f88976c389

Subscribe to this mod's changes

health is a command published in the GitHub repository skynetcmd/m3-memory (23 stars, last pushed 5d ago), licensed Apache-2.0. It adds 22 tokens to every session and 448 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-08-30.