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 agentmods add skills/miru-zero/zero-brain/zero-brain-memorynpx skills add miru-zero/zero-brain --skill zero-brain-memorygit clone --depth 1 https://github.com/miru-zero/zero-brainWrote 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/miru-zero/zero-brain/zero-brain-memory)<a href="https://agentmods.dev/skills/miru-zero/zero-brain/zero-brain-memory"><img src="https://agentmods.dev/badge/skills/miru-zero/zero-brain/zero-brain-memory.svg" alt="Measured on agentmods" 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.00107 | $0.01032 |
| Opus 5 | $0.00053 | $0.00516 |
| Sonnet 5 | $0.00021 | $0.00206 |
| Haiku 4.5 | $0.00011 | $0.00103 |
Grade A, and why
zero-brain-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 2d 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 — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
zero-brain-memory — กฎวางความจำ Zero Brain (โซนใหม่ ~/.zero)
แผนที่สมอง (จำให้ขึ้นใจ)
| Path | คืออะไร | กฎ |
|---|---|---|
~/.zero/brain/ |
vault ความจำ (Obsidian เปิดที่นี่เท่านั้น) | อ่าน AGENTS.md ใน root ก่อนเสมอ |
~/.zero/brain/.kb/ |
manifest / links / audit / episodes (JSONL append-only) | ห้ามแตะด้วยมือ — ผ่าน MCP เท่านั้น |
~/.zero/mcp/zero-brain/ |
repo + MCP server (tools zero_*) |
commit ต้อง smoke 121/121 ก่อน |
กฎเหล็ก
- ทุกการเขียน/ย้าย/ลบความจำผ่าน tools
zero_*เท่านั้น — ห้ามแก้ไฟล์ vault ตรงๆ; ถ้าบังคับจำเป็น รันnode tools/rehash-manifest.mjsทันทีหลังแก้ - orphans ต้อง = 0 — โน้ตใหม่ทุกใบ
zero_linkเข้า MOC/index อย่างน้อย 1 เส้น แล้วเช็คzero_health - ห้ามเก็บในสมอง: credentials, tokens, PII, raw wire logs, full session dumps
- privacy:
T0default ·T1ไม่โผล่ search default ·T2เข้ารหัส อ่านต้องอนุมัติรายใบ — ใส่ privacy ให้ถูกตั้งแต่สร้าง
เครื่องมือ → ปลายทาง
| ต้องการ | ใช้ tool | ลงที่ |
|---|---|---|
| จดด่วน / focus ระหว่าง session | zero_capture |
00_Fleeting/ |
| ความรู้ถาวร / log งาน | zero_write_note (atomic/entity ต้อง evidence ≥1) |
10_Notes/ |
| ดัชนี / MOC / กฎระบบ | zero_write_note ชี้ path 20_Atlas/ |
20_Atlas/ |
| จบงาน: ทำอะไร/วิธีไหน/ได้ผลไหม/จาก runtime ไหน | zero_episode |
.kb/episodes.jsonl |
| ค้นก่อนสร้างใหม่ (กันซ้ำ) | zero_search / zero_match |
— |
| ผูกเข้ากราฟ | zero_link (เช็ค from/to/rel ทั้งสองทิศ กันซ้ำในตัว) |
.kb/links.jsonl |
Placement decision tree
- ความคิดชั่วคราว / focus สั้นๆ →
zero_capture(00_Fleeting) — เก็บเกี่ยวใน 7 วัน - ความรู้ใช้ซ้ำ / บทเรียน / log โปรเจ็กต์ →
zero_write_noteลง10_Notes/(โปรเจ็กต์:10_Notes/Projects/<ชื่อ>/) - ดัชนี แผนที่ กฎที่ agent ต้องอ่าน →
20_Atlas/ - ไม่แน่ใจ → ถามป๊าก่อนวาง
- ก่อนสร้างใหม่ทุกครั้ง:
zero_searchหาของเดิมก่อน — มีแล้วให้zero_update_noteไม่สร้างซ้ำ
จบ session / compaction
zero_episodeสรุป: ทำอะไร เครื่องมือไหน ได้ผล/ไม่ได้ผล (ระบุ runtime ต้นทาง: kimi-work / kimi-code / codex)- โน้ต fleeting ที่มีค่าถาวร → เลื่อนเป็น
zero_write_note10_Notes แล้ว link zero_healthปิดท้าย: notes ครบ / orphans = 0 / dead links = 0
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.
- 2d ago First seen · 56 lines · 107 tokens per session scan A 9a737ad01e46
zero-brain-memory is a skill published in the GitHub repository miru-zero/zero-brain (0 stars, last pushed 18d ago), licensed MIT. It adds 107 tokens to every session and 1,032 once invoked, about $0.0005 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-09-03.
Other skills, from other repositories
media-ingest
Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…
Cortex
Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…
memory
Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.
ha-data-stores
Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…
establishing-project-context
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.