brain-compiler

brain-compiler is a skill for Claude Code, Codex from sandeep84397/agent-brain. It costs 17 tokens per session (206 once invoked), scanned A, original, MIT.

A skill for generating or updating SAN files using a defined contract and Agent Brain tools. SAN is not explained in the supplied information.

In plain words
What is it for?
Use it to check a roadmap, find missing or outdated source files, refresh SAN data, validate it, publish it, and report the results.
Why use it?
It applies required checks and records decisions and outcomes before publishing generated files.

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

Made for: Claude Code, Codex.

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 brain-compiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandeep84397/agent-brain/brain-compiler.svg)](https://agentmods.dev/skills/sandeep84397/agent-brain/brain-compiler)
Your own site
<a href="https://agentmods.dev/skills/sandeep84397/agent-brain/brain-compiler"><img src="https://agentmods.dev/badge/skills/sandeep84397/agent-brain/brain-compiler.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 206 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.00017 $0.00206
Opus 5 $0.00009 $0.00103
Sonnet 5 $0.00003 $0.00041
Haiku 4.5 $0.00002 $0.00021

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

Security

Grade A, and why

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

san/adapters/codex/brain-compiler/SKILL.md · 23 lines

What it actually says

Brain compiler

Read {{CONTRACT_PATH}} completely before any action. Treat it as normative; do not redefine SAN semantics in this skill.

Use only Agent Brain MCP tools inherited from the current host:

  1. Call get_roadmap, pre_check, and log_decision for one bounded batch.
  2. Call plan_san_refresh; read only source files returned as missing or stale.
  3. Apply all contract parity checks before publication.
  4. Call publish_san once per validated source and never write .san directly.
  5. Call log_outcome; report paths, counts, and validation metadata only.

If the configured model is unavailable, stop before generation and report no fallback. Do not invoke Claude, Anthropic APIs, another host, or any external provider subprocess. Never send source or SAN content outside inherited Agent Brain publication tools.

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 · 23 lines · 17 tokens per session scan A c85fae34371c

Subscribe to this mod's changes

brain-compiler is a skill published in the GitHub repository sandeep84397/agent-brain (10 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 206 once invoked, about $0.0001 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

claude-api

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports anthropic/@anthropic-ai/sdk; user asks for…

Prismer-AI/PrismerCloud · 193 tokens

agent-coordination

Find other agents, list participants in a conversation, send routed messages, attach files, and recover earlier conversation context (history / resolve a fuzzy reference / read a quoted message / read compressed summaries). Use whenever you need to delegate to another agent, address a peer in a multi-agent…

Prismer-AI/PrismerCloud · 122 tokens

image-generate

Generate an image from a text prompt via the cloud LLM image proxy, persist it as a content-addressed workspace asset, and return a ContentBlock that downstream renderers can attach. Use whenever the user asks "draw / generate / make an image of …", an agent needs a diagram / illustration as a follow-up artifact, or a…

Prismer-AI/PrismerCloud · 103 tokens

prismer-im-collab

Coordinate reliably in Prismer conversations, use workspace assets through bounded MCP tools, and keep task work on the board.

Prismer-AI/PrismerCloud · 30 tokens

claim-agent-ownership

Orchestrator skill for resolving multi-daemon binding contention. Use when you (the orchestrator) detect an agent.binding.contested sync event indicating two daemons are racing for the same agent — explicitly rebind ownership to a chosen target daemon so subsequent dispatches route deterministically. Implements Gap…

Prismer-AI/PrismerCloud · 101 tokens

assets

Locate, inspect, and read content-addressed workspace assets — search by filename/metadata, describe before reading bytes, then read bounded ranges. Use whenever the user references an uploaded file, when you need to cite file evidence, or when a task input/output is an asset URI. Executes via the cloud asset CLI and…

Prismer-AI/PrismerCloud · 69 tokens