mb-tooling-core

mb-tooling-core is an agent for coding agents from fockus/skill-memory-bank. It costs 42 tokens per session (565 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

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 agents/fockus/skill-memory-bank/mb-tooling-core
Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 565 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 $0.00042 $0.00565
Opus 5 $0.00021 $0.00282
Sonnet 5 $0.00008 $0.00113
Haiku 4.5 $0.00004 $0.00056

Measured 5d ago against content hash d941c078e14a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

agents/mb-tooling-core.md · 29 lines

What it actually says

MB Tooling Core — code-understanding routing

This is a prepended partial, not an agent. /mb work inlines this block ahead of the role-specific agent delta. It carries the single routing table every MB implementer uses to understand code before touching it.

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

For code-understanding questions, prefer Memory Bank graph tools over grep:

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 / imports / defines X?" (direct structural query) graph_neighbors scripts/mb-graph-query.py neighbors
"change impact" / "reverse deps" / blast-radius graph_impact scripts/mb-graph-query.py impact
"which tests cover this file/symbol?" graph_tests scripts/mb-graph-query.py tests
concept search (BM25 default, --backend embeddings opt-in) search_code scripts/mb-semantic-search.py
decisions / "why did we …?" recall /mb recall <query>

Fail open: missing graph, stale graph, missing semantic provider, or unavailable native extension must not block work — CLI scripts / Grep / Glob / Read are the universal fallback. These indexes are optional; if absent or stale, fall back to Grep/Glob/Read — never block.

  • On a stale graph you MAY run python3 scripts/mb-graph-query.py catchup --graph <bank>/codebase/graph.json --src-root . --json once (bounded single-consumer catch-up: non-blocking codebase/.graph.lock flock, hard MB_GRAPH_CATCHUP_BUDGET budget with process-group kill, cooldown after failure, opt-in layers preserved) — never call mb-codegraph.py --apply directly from an agent and never take ad-hoc locks. If the result is locked/cooldown/timed_out, proceed on the stale graph and fall back to Grep/Glob/Read — never block.
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 · 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 (24 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 565 once invoked, about $0.0002 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.