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.
npx skills add brain-bootstrap/claude-code-brain-bootstrap --skill codebase-memorygit clone --depth 1 https://github.com/brain-bootstrap/claude-code-brain-bootstrapWrote 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/brain-bootstrap/claude-code-brain-bootstrap/codebase-memory)<a href="https://agentmods.dev/skills/brain-bootstrap/claude-code-brain-bootstrap/codebase-memory"><img src="https://agentmods.dev/badge/skills/brain-bootstrap/claude-code-brain-bootstrap/codebase-memory/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/brain-bootstrap/claude-code-brain-bootstrap/codebase-memory"><img src="https://agentmods.dev/badge/skills/brain-bootstrap/claude-code-brain-bootstrap/codebase-memory.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.00043 | $0.00631 |
| Opus 5.5 | $0.00017 | $0.00252 |
| Sonnet 5.5 | $0.00009 | $0.00126 |
| Haiku 4.5 | $0.00004 | $0.00063 |
Grade A, and why
codebase-memory 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 3mo 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 — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codebase Memory — Structural Graph
Zero-file-read structural analysis. Always try these tools BEFORE reading files for structural questions.
Quick Decision Matrix
| Question | Tool |
|---|---|
What calls foo()? |
trace_path(function_name="foo", direction="inbound") |
What does foo() call? |
trace_path(function_name="foo", direction="outbound") |
| Full call chain | trace_path(direction="both", depth=3) |
| Impact of my change | detect_changes(base_branch="main") |
| Architecture overview | get_architecture |
| Find by name/pattern | search_graph(name_pattern="Auth.*") |
| Find by label | search_graph(label="Class") |
| Dead code | search_graph(max_degree=0, label="Function") |
| Custom query | query_graph(query="MATCH (n:Function)-[:CALLS]->(m) RETURN n.name, m.name LIMIT 20") |
| Execution flows | list_flows → get_affected_flows |
| ADR management | manage_adr(mode="get") |
Workflow — First Use
index_repository(repo_path=".")— first run only (~6s for 500 files)list_projects— verify indexedget_architecture— architecture map
Workflow — Before Reviewing Changes
detect_changes(base_branch="main")→ risk score + blast radiusget_affected_flows→ which execution paths breaktrace_pathon highest-risk functions
Workflow — Exploration
get_architecture→ community map, entry pointssearch_graph(name_pattern="<keyword>")→ find relevant nodestrace_path→ traverse from found nodesget_code_snippet(qualified_name="<name>")→ source with context
Known Gotchas
search_graph(relationship="HTTP_CALLS")filters by degree — usequery_graphfor actual edge inspectionquery_graphhas a 200-row cap — usesearch_graphwith degree filters for countstrace_pathrequires exact qualified names — usesearch_graph(name_pattern=...)firstdirection="outbound"misses cross-service callers — usedirection="both"- Results default to 10 per page — check
has_moreand paginate withoffset
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.
- 3mo ago First seen · 61 lines · 43 tokens per session scan A 304743b786c8
codebase-memory is a skill published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 7mo ago), licensed MIT. It adds 43 tokens to every session and 631 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.
codebase-memory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codebase-memorybrain-bootstrap/claude-code-brain-bootstrap | Skill | 11 | 7mo ago | MIT | A | 43 | Claude Code |
| inspector-workbenchCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 112 | Claude Code |
| md-auditchaitanyagiri/munder-difflin | Skill | 10k | 2d ago | MIT | A | 85 | Claude Code |
| potpie-debug-memorypotpie-ai/potpie | Skill | 5.8k | 6d ago | Apache-2.0 | A | 41 | Claude Code, Codex |
| browserwing-adminMemTensor/MemOS | Skill | 13k | yesterday | Apache-2.0 | B | 47 | Claude Code, Codex |
| memory-recallzilliztech/memsearch | Skill | 3.0k | yesterday | MIT | A | 38 | Claude Code, Codex |
| exploiting-linux-kernel-vulnerabilitiesxalgorix/xalgorix | Skill | 1.5k | 2d ago | Apache-2.0 | A | 96 | Claude Code, Codex |