brain

A read-only search tool for a stored graph of project facts and descriptions, including operations data, portfolios, and SSH hosts. It searches with deduction and marks whether an answer is confirmed by multiple sources.

In plain words
What is it for?
Finding where code or services are documented, what runs on a host, who is associated with something, and how a task is done. It can also add sourced facts and check the search index.
Why use it?
It reduces the need to open files or search repositories manually when tracing where information comes from. It also separates confirmed facts from unverified descriptions.

Skill for Claude CodeCodex

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 skills/eslider/2dph/brain
Any agent
npx skills add eSlider/2dph --skill brain
Clone the repo
git clone --depth 1 https://github.com/eSlider/2dph

Made for: Claude Code, Codex.

Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 750 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.00075 $0.00750
Opus 5 $0.00037 $0.00375
Sonnet 5 $0.00015 $0.00150
Haiku 4.5 $0.00007 $0.00075

Measured yesterday against content hash 5d1e5001ddc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

brain 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 yesterday.

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.

skills/brain/SKILL.md · 56 lines

What it actually says

brain — deduction over facts and info

One embedded Ladybug graph (var/kb.lbug, read-only when queried) holding two roots:

  • facts — assertions backed by ≥2 independent sources (docker ps × compose × ssh-config × docs), confidence: confirmed.
  • info — descriptive/narrative leafs, searchable, never asserted.

Search = deduction: facts root first, info root second, web-search as the second independent source when local roots cannot confirm. An answer is confirmed only if it comes off the facts root; anything else is (not confirmed).

bin/brain/search.go "Matrix federation"                # pointers + snippets, YAML
bin/brain/search.go "onlyoffice postgres" --root facts # restrict to confirmed
bin/brain/search.go "where is cs-lexicon" --json | yq '.[].ref'
bin/brain/search.go "who works where" --as-of 2025-01-01  # D24 intervals
bin/brain/add.go --text T --root facts --source "a.md x b.md"
bin/brain/get.go <id> --body                           # full chunk only when needed
bin/brain/stats.go                                     # index health
bin/brain/eval.go                                      # recall@5 >= 0.95 gate (Go, via Zig CGO)

bin/kb/search is a deprecated wrapper. --hop N walks FROM_FILE / HAS_VERSION / AUTHORED from each hit (1=File, 3=Person). --as-of YYYY-MM-DD keeps leafs whose valid_from/valid_to cover that day (empty interval = always; not D16 source staleness).

Rules

  • Search before you read. Never grep a repo for a concept the graph covers.
  • --root facts returns only confirmed evidence-linked answers. Default shows facts first, then info leafs clearly marked (not confirmed).
  • If there is no facts hit, bin/brain/search.go consults SearXNG and adds a web block (kept apart from graph hits). throttled / skipped / refused are not evidence of absence. --root facts|info and --no-web skip the web.
  • If recall looks wrong, run bin/brain/eval.go; it gates control questions and should stay at or above 95% recall@5.
  • Contradictions (≥2 yes vs ≥2 no) stay (not confirmed) until bin/facts/audit contradict fires temporal_freshness or authority_pairing.
  • Agents: GET /openapi.json and POST /mcp on bin/brain/serve.go (same handlers; tool names match paths search/get/stats/audit). Generated list: tools.md.
  • Never report an unconfirmed single-source local answer as fact.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 56 lines · 75 tokens per session scan A 5d1e5001ddc1

Subscribe to this mod's changes

brain is a skill published in the GitHub repository eSlider/2dph (2 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 750 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

engrama-onboard

Build a personalized Engrama memory graph for any user through a conversational interview. Use this skill whenever someone says "set up Engrama", "create my graph", "onboard", "build my profile", "configure Engrama for me", or asks how to start using Engrama. Also use when the user mentions they have a different role…

scops/engrama · 104 tokens

life-memory-mcp-connect

Set up an external AI agent to connect to the Life Memory System through MCP, including verified installation, retrieval, RawEvent writes, sync, diagnostics, and Working-Agent governance. Use when an agent needs to install or verify the Life Memory MCP bridge, onboard Codex/Claude/Cursor/Windsurf style clients, or…

234194027-cpu/aion-memory-nexus · 75 tokens

life-memory-media-ingestion

Teach an external agent how to send links, files, images, tables, audio, and video into the Life Memory System as reviewable media note artifacts through MCP.

234194027-cpu/aion-memory-nexus · 39 tokens

fortemi-roadmap-skill

Advance the Fortemi delivery roadmap by one concrete increment and document the progress. Reads .aiwg/planning/roadmap.md, picks the next actionable item respecting phase gating, does or dispatches the work, then records progress back into the roadmap. Built for fresh sessions and simple loops.

Fortemi/fortemi · 65 tokens

fortemi-monthly-report

Author a Fortémi monthly report as a docsite blog post — gather what shipped that month from git history, CHANGELOG, and release announcements, then write it up FOR USERS in plain language and publish it to the Pagenary blog collection.

Fortemi/fortemi · 56 tokens

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens