mb-tooling-core

mb-tooling-core is an agent for Claude Code from fockus/skill-memory-bank. It costs 49 tokens per session (986 once invoked), scanned A, original, MIT.

A shared guide for understanding a codebase before changing it. It routes questions to code maps, dependency links, tests, semantic search, and recorded decisions.

In plain words
What is it for?
Finding similar code, callers, imports, definitions, affected files, related tests, and past design decisions.
Why use it?
It reduces guesswork when locating code or judging what a change might affect. It can still fall back when its stored maps or search services are unavailable.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Finding similar code, callers, imports, definitions, affected files, related tests, and past design decisions.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-tooling-core/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-tooling-core)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-tooling-core"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-tooling-core/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-tooling-core

Your own site · 80×15
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-tooling-core"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-tooling-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 986 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.00049 $0.00986
Opus 5.5 $0.00020 $0.00394
Sonnet 5.5 $0.00010 $0.00197
Haiku 4.5 $0.00005 $0.00099

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

Security

Grade A, and why

mb-tooling-core 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-tooling-core.md · 45 lines

How it starts

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

MB Tooling Core — code-understanding routing

This is a partial, not an agent. The installer places it above the text of every agent that lists it under compose:. It is the single routing table MB agents use to understand code before touching it; agents do not keep their own copies.

Code-understanding tools (graph-first, fail-open)

For code-understanding questions, prefer Memory Bank graph tools over grep. Bundled scripts run through the skill bundle root, from the project directory. Bind it in the SAME shell call as the command (shell state does not persist between calls). If your prompt carries a Skill path: <dir> line (the /mb work dispatch sends one), that <dir> is the value — use SKILL_DIR="<dir>"; otherwise:

SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"

Make the lookup before answering or choosing files to edit. For an implementation question in a non-English language, keep the original in query and write one short English description of the same behavior in searchQuery. Copy identifiers, flags, paths and error strings literally; do not invent likely filenames. Set sourceOnly: true for implementation, not for test discovery. CLI equivalent:

python3 "$SKILL_DIR/scripts/mb-code-context.py" --query 'Где обновляется ключ доступа?' --search-query 'Where is the access token refreshed?' --source-only --json

Open a relevant file from recommended_next_reads and verify the code before citing file:line. Use the graph commands below directly for structural questions. If a graph lookup fails, check bash "$SKILL_DIR"/scripts/mb-graph.sh status, then use Grep/Read to verify the answer.

Intent Token Canonical command
ambiguous "where is the logic for X?" / "find similar implementation" (fuzzy code-context) code_context scripts/mb-code-context.py
"who calls X?" (direct structural query) graph_neighbors bash "$SKILL_DIR"/scripts/mb-graph.sh who-calls <Symbol>
"change impact" / "reverse deps" / blast-radius graph_impact bash "$SKILL_DIR"/scripts/mb-graph.sh impact <Symbol>
"which tests cover this file/symbol?" graph_tests bash "$SKILL_DIR"/scripts/mb-graph.sh tests <Symbol>
concept search (exact name → BM25, phrase → embeddings) search_code bash "$SKILL_DIR"/scripts/mb-graph.sh search "<query>"
decisions / "why did we …?" recall /mb recall <query>

Read the full file on GitHub · 45 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 · +6 lines db646a83bbd8
  2. 1mo ago Changed · +9 lines 95f18b421236
  3. 2mo ago Changed · +1 lines · +7 tokens per session 6fdb4dd09939
  4. 3mo ago First seen · 29 lines · 42 tokens per session scan A d941c078e14a

Subscribe to this mod's changes

mb-tooling-core is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 5d ago), licensed MIT. It adds 49 tokens to every session and 986 once invoked, about $0.0002 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-tooling-core compared with agents from other repositories

mb-tooling-core next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mb-tooling-corefockus/skill-memory-bankAgent335d agoMITA49Claude 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