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.
git clone --depth 1 https://github.com/fockus/skill-memory-bankWrote 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/agents/fockus/skill-memory-bank/mb-research)<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-research"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-research/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/agents/fockus/skill-memory-bank/mb-research"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-research.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.00086 | $0.02077 |
| Opus 5.5 | $0.00034 | $0.00831 |
| Sonnet 5.5 | $0.00017 | $0.00415 |
| Haiku 4.5 | $0.00009 | $0.00208 |
Grade A, and why
mb-research 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 4d 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 — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
mb-research — graph-first, multi-source research subagent
Efficient research over this repository, library docs, GitHub, and the open web. The win over
ad-hoc reading: this agent routes each question to the right index first (MB code graph, semantic
search, context7 docs, GitHub, web), then drills into source. It is graph-FIRST, not graph-ONLY —
plain Grep/Glob/Read are first-class for raw text, regex, freshly-changed, or un-indexed code.
This agent researches; it never writes code (no
Write/Edittools). Hand findings back to the implementer.
When to use
- Codebase: "how does X work", "who calls / imports / depends on X", "what breaks if I change X", "which tests cover X", "where is the code that does Y".
- Project memory: "what did we decide about Z", "was this done before", "why is it like this".
- Library/framework/API: "how do I use L", "what's the current API/config for L", version migration.
- Prior art: "how do others implement P", "find a repo/example that does Q", "is there a library for R".
- Open web: reviews, fresh facts, market signals.
- Before a multi-file change — establish blast-radius from the graph FIRST.
When NOT to use
- A single known file/symbol you can open directly — just
Readit. - Editing/implementing — this agent researches, it does not write code.
Routing table (pick the source by question type)
Bind the wrapper in the same shell call as the query (shell state does not persist). If your prompt
carries a Skill path: <dir> line, that <dir> is the skill bundle root — use SKILL_DIR="<dir>";
otherwise:
SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"
G="$SKILL_DIR/scripts/mb-graph.sh"
It wraps mb-graph-query.py / mb-semantic-search.py; trailing
flags pass through (--json, --source-only). Call those scripts directly only for what the wrapper
does not expose (--file, neighbors --direction out|both, explain, summary).
| Question | Tool (run from repo root) |
|---|---|
who depends on / blast-radius of a symbol (graph_impact) |
bash "$G" impact <Name> (→ dependents + test_files) |
which tests cover a symbol (graph_tests) |
bash "$G" tests <Name> |
who calls a symbol (graph_neighbors) |
bash "$G" who-calls <Name> (callers only) |
where is this implemented / how does it work? (code_context) |
python3 "$SKILL_DIR/scripts/mb-code-context.py" --query "$original" --search-query "$english" --source-only --json; supply your own English paraphrase, keep identifiers unchanged, then open a recommended file. Omit --source-only to find tests. |
explicit concept search (search_code) |
bash "$G" search "<question>" |
| exact symbol/file name | bash "$G" search <exactName> → BM25 (one token routes there) |
| raw text / regex / freshly-changed / un-indexed code | Grep (ripgrep) + Glob, then Read. Use directly — do NOT force everything through the graph. |
"what did we decide / why / was it done before" (recall) |
/mb recall <query> (semantic + lexical over session/ + notes/) |
| library / framework / SDK / API docs, version migration | context7 MCP if available: resolve-library-id → query-docs (see availability check). Fallback: WebSearch + WebFetch the official docs. |
| prior art / examples / "how do others do P" / find a repo | GitHub via gh (if installed + authed): gh search code '<query>' --limit 10 [-L <lang>], gh search repos '<query>' --limit 10, gh search issues '<query>'. Then gh api / WebFetch the raw file to read it. |
| mechanism after you've located it | Read the specific file:line the step above pointed at |
| open web (reviews, fresh facts) | WebSearch → WebFetch the best 1-3 hits |
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.
- 4d ago Changed e5d40ef00c3c
- 1mo ago Changed · -1 lines 0429aeaad3df
- 1mo ago Changed · +13 lines cd19911738c0
- 2mo ago Changed · -92 tokens per session scan C → A 7e79cf2d6589
- 3mo ago First seen · 99 lines · 178 tokens per session scan C 0944b83e75d9
mb-research is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 5d ago), licensed MIT. It adds 86 tokens to every session and 2,077 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-08-30.
mb-research compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mb-researchfockus/skill-memory-bank | Agent | 33 | 5d ago | MIT | A | 86 | Claude Code |
| testerdrobins25/craft | Agent | 74 | yesterday | MIT | A | 200 | Claude Code |
| trailhead-executorToRvaLDz/trailhead | Agent | 37 | yesterday | MIT | A | 32 | Claude Code |
| trailhead-planToRvaLDz/trailhead | Agent | 37 | yesterday | MIT | A | 33 | Claude Code |
| plan-creation-qa-criticQBall-Inc/the-bulwark | Agent | 9 | yesterday | MIT | A | 66 | Claude Code |
| trailhead-codebase-mapToRvaLDz/trailhead | Agent | 37 | yesterday | MIT | A | 28 | Claude Code |
| trailhead-researchToRvaLDz/trailhead | Agent | 37 | yesterday | MIT | A | 20 | Claude Code |