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.
/plugin marketplace add atman-33/workhub/plugin install memoryWrote 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.
[](https://agentmods.dev/skills/atman-33/workhub/memory-doctor)<a href="https://agentmods.dev/skills/atman-33/workhub/memory-doctor"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/memory-doctor/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.
<a href="https://agentmods.dev/skills/atman-33/workhub/memory-doctor"><img src="https://agentmods.dev/badge/skills/atman-33/workhub/memory-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.00799 |
| Opus 5.5 | $0.00027 | $0.00320 |
| Sonnet 5.5 | $0.00013 | $0.00160 |
| Haiku 4.5 | $0.00007 | $0.00080 |
Grade A, and why
memory-doctor 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
memory-doctor — Is memory actually working?
memory-recall answers "what do I remember". This answers "am I still
remembering at all".
It exists because the engine is deliberately silent: every hook swallows its own errors so a session is never broken by a memory problem. That is the right trade for a hook and the wrong one for the owner — capture failed on 180 of 193 sessions for six weeks before anyone looked (T-0366). Nothing surfaces unless something goes looking.
Steps
-
Run the check.
node "${CLAUDE_PLUGIN_ROOT}/engine/cli.mjs" doctorEvery line is
ok/WARN/FAIL, and each problem carries the action that fixes it. The command exits 1 only onFAIL, so a warning does not fail a script that runs it. -
Report what it found, in the user's language. Lead with the verdict — working, working with a caveat, or not working — then the lines that are not
ok. Do not paste the whole report when everything passes; say it passed and give the memory and session counts. -
Act on the common ones, rather than only relaying them:
Line What it means What to do FAIL setupNo marker, or it predates this engine version Run the memory-setupskill. Until it succeeds every hook is a no-opFAIL engine copy~/.workhub/memory-engine/engine/is missing or staleRun memory-setup. OpenCode calls that copy, not the pluginFAIL databaseThe file cannot be opened Check it is not held open elsewhere; report the message verbatim FAIL capture failuresWrites are failing in a row Read lastError. Once the cause is gone,cli.mjs capture-retryWARN capture queueSessions written to the retry queue cli.mjs capture-retry, or just start another session — capture drains itWARN capture(never / N days)Nothing has been recorded recently If the user has been working in this vault since, capture is failing — not idle WARN embeddingsA backlog of un-embedded rows cli.mjs embed-pending --alland watch for an error; search is keyword-only until it clearsWARN opencode logThe OpenCode side logged a problem Read <vault>/.opencode/plugins/logs/memory.log— it is only written when something went wrong
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.
- 2mo ago First seen · 59 lines · 67 tokens per session scan A e4aecda71321
memory-doctor is a skill published in the GitHub repository atman-33/workhub (3 stars, last pushed 3d ago), licensed MIT. It adds 67 tokens to every session and 799 once invoked, about $0.0003 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-09-19.
memory-doctor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-doctoratman-33/workhub | Skill | 3 | 3d ago | MIT | A | 67 | Claude Code |
| distillhiphapis/loopcraft | Skill | 2 | 4mo ago | none | A | 80 | Claude Code |
| code-understandAr9av/obsidian-wiki | Skill | 3.8k | yesterday | MIT | A | 55 | Claude Code |
| memory-recallzilliztech/memsearch | Skill | 3.0k | yesterday | MIT | A | 38 | Claude Code, Codex |
| misakanet-failure-memoryIkalus1988/MisakaNet | Skill | 567 | today | Apache-2.0 | A | 31 | Claude Code |
| compound-docsoliver-kriska/claude-elixir-phoenix | Skill | 579 | yesterday | MIT | A | 38 | Claude Code |
| closewrg32786/aigent-os | Skill | 26 | 2d ago | MIT | A | 29 | Claude Code |