Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/kimsanguine/llm-brainnpx agentmods add commands/kimsanguine/llm-brain/ontologyWrote 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/commands/kimsanguine/llm-brain/ontology)<a href="https://agentmods.dev/commands/kimsanguine/llm-brain/ontology"><img src="https://agentmods.dev/badge/commands/kimsanguine/llm-brain/ontology/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/commands/kimsanguine/llm-brain/ontology"><img src="https://agentmods.dev/badge/commands/kimsanguine/llm-brain/ontology.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.00012 | $0.00596 |
| Opus 5.5 | $0.00005 | $0.00238 |
| Sonnet 5.5 | $0.00002 | $0.00119 |
| Haiku 4.5 | $0.00001 | $0.00060 |
Grade A, and why
ontology 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 24d 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.
What it actually says
Personal Knowledge Ontology
Read CLAUDE.md first. Work from the cloned llm-brain repository and use
scripts/ontology.py. This command describes knowledge and existing commands;
it does not execute actions from the catalog.
| User intent | Script operation | Writes |
|---|---|---|
| ontology 점검해줘 | validate |
none |
| ontology bundle 만들어줘 | validate, then export |
ontology/ only |
| claim:alpha-1 근거를 설명해줘 | explain --id claim:alpha-1 |
none |
uv run python scripts/ontology.py validate
uv run python scripts/ontology.py export
uv run python scripts/ontology.py explain --id page:alpha
uv run python scripts/ontology.py explain --bundle examples/ontology-bundle-example.json --id claim:alpha-1 --json
Inspect the strict contracts and validation counts before export. A nonempty wiki
requires a valid persisted claim ledger. On invalid inventory, report the safe
read-only recovery command uv run python scripts/claims.py build --help. A build
requires explicit --slug selections; rebuilding claims is a
separate write and must stay within the user's request.
For a multi-source page, use the explicit B1 workflow after the user requests ledger creation. Keep the proposal private, review unresolved entries, and include every slug whose records should remain in the replaced ledger:
mkdir -p ontology
uv run python scripts/claims.py propose --slug alpha > ontology/claim-source-map.json
uv run python scripts/claims.py build --slug alpha --source-map ontology/claim-source-map.json
The read-only proposal first separates structural fragments as non_statement
without renumbering claim IDs, then chooses a unique exact raw-file match. It does not
prove semantic truth. Ambiguous/unmatched candidates remain unresolved. Build
rechecks page, statement and raw hashes and the exact line before writing;
zero mapped records preserve the previous ledger. Old multi-source records
without a binding are still invalid. See schema/claim_ledger.md.
Report the exact written path and source_fingerprint. Generated bundles contain
private claim statements. Export is private and does not authorize sharing.
Never run okf --share, publish a bundle, or change any external system as a
side effect. The existing OKF share approval gate remains separate.
Observations are optional, redacted projections of fail-soft episode history. Do not call them mandatory audit events or use them for permission/approval. No raw/wiki bodies, episode goals, input/output prose, or notes enter the bundle. Validate and explain never export or record episodes.
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.
- 24d ago First seen · 57 lines · 12 tokens per session scan A daf6ae51b44c
ontology is a command published in the GitHub repository kimsanguine/llm-brain (10 stars, last pushed 17d ago), licensed MIT. It adds 12 tokens to every session and 596 once invoked, about $0.0000 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-11-06.
ontology compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ontologykimsanguine/llm-brain | Command | 10 | 17d ago | MIT | A | 12 | Claude Code |
| onboardjohnfkoo951/cmds-llm-wiki | Command | 106 | 1mo ago | none | A | 139 | Claude Code |
| refresh-contextjohnfkoo951/cmds-llm-wiki | Command | 106 | 1mo ago | none | A | 43 | Claude Code |
| obsidian-ingesteugeniughelbur/obsidian-second-brain | Command | 5.5k | today | MIT | A | 24 | Claude Code |
| obsidian-healtheugeniughelbur/obsidian-second-brain | Command | 5.5k | today | MIT | A | 22 | Claude Code |
| obsidian-visualizeeugeniughelbur/obsidian-second-brain | Command | 5.5k | today | MIT | A | 20 | Claude Code |
| research-deepeugeniughelbur/obsidian-second-brain | Command | 5.5k | today | MIT | A | 46 | Claude Code |