mb-research

mb-research is an agent for Claude Code from fockus/skill-memory-bank. It costs 86 tokens per session (2,077 once invoked), scanned A, original, MIT.

A research agent for investigating codebases, project memory, libraries, APIs, repositories, and current web information. It chooses different search sources based on the question and does not edit production code.

In plain words
What is it for?
Tracing callers and dependencies, assessing change impact, finding tests, checking library usage, comparing implementations, and researching current information.
Why use it?
It gathers evidence before implementation so developers can understand behavior, dependencies, prior decisions, and available approaches.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents; mentions Codex.

Good fit Tracing callers and dependencies, assessing change impact, finding tests, checking library usage, comparing implementations, and researching current information.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-research
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/fockus/skill-memory-bank

Made for: Claude Code.

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 mb-research

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-research/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-research)
Your own site
<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.

agentmods 80×15 button for mb-research

Your own site · 80×15
<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>
Per session 86 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,077 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.00086 $0.02077
Opus 5.5 $0.00034 $0.00831
Sonnet 5.5 $0.00017 $0.00415
Haiku 4.5 $0.00009 $0.00208

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

Security

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.

agents/mb-research.md · 111 lines

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/Edit tools). 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 Read it.
  • 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

Read the full file on GitHub · 111 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. 4d ago Changed e5d40ef00c3c
  2. 1mo ago Changed · -1 lines 0429aeaad3df
  3. 1mo ago Changed · +13 lines cd19911738c0
  4. 2mo ago Changed · -92 tokens per session scan C → A 7e79cf2d6589
  5. 3mo ago First seen · 99 lines · 178 tokens per session scan C 0944b83e75d9

Subscribe to this mod's changes

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.

Related

mb-research compared with agents from other repositories

mb-research next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mb-researchfockus/skill-memory-bankAgent335d agoMITA86Claude Code
testerdrobins25/craftAgent74yesterdayMITA200Claude Code
trailhead-executorToRvaLDz/trailheadAgent37yesterdayMITA32Claude Code
trailhead-planToRvaLDz/trailheadAgent37yesterdayMITA33Claude Code
plan-creation-qa-criticQBall-Inc/the-bulwarkAgent9yesterdayMITA66Claude Code
trailhead-codebase-mapToRvaLDz/trailheadAgent37yesterdayMITA28Claude Code
trailhead-researchToRvaLDz/trailheadAgent37yesterdayMITA20Claude Code