zero-brain-memory

zero-brain-memory is a skill for Claude Code, Codex from miru-zero/zero-brain. It costs 107 tokens per session (1,032 once invoked), scanned A, original, MIT.

A set of rules for storing and organizing notes in Zero Brain, an Obsidian-based personal knowledge vault. It controls where memories go, how they are linked, and how privacy is assigned.

In plain words
What is it for?
It helps capture temporary thoughts, write permanent notes, link them into indexes, manage privacy levels, and check for unlinked notes.
Why use it?
It prevents notes from being misplaced, disconnected from the knowledge index, or saved with inappropriate private information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md; mentions Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/miru-zero/zero-brain/zero-brain-memory.svg)](https://agentmods.dev/skills/miru-zero/zero-brain/zero-brain-memory)
Your own site
<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>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 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.1 $0.00107 $0.01032
Opus 5 $0.00053 $0.00516
Sonnet 5 $0.00021 $0.00206
Haiku 4.5 $0.00011 $0.00103

Measured 2d ago against content hash 9a737ad01e46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

skills/zero-brain-memory/SKILL.md · 56 lines

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 ก่อน

กฎเหล็ก

  1. ทุกการเขียน/ย้าย/ลบความจำผ่าน tools zero_* เท่านั้น — ห้ามแก้ไฟล์ vault ตรงๆ; ถ้าบังคับจำเป็น รัน node tools/rehash-manifest.mjs ทันทีหลังแก้
  2. orphans ต้อง = 0 — โน้ตใหม่ทุกใบ zero_link เข้า MOC/index อย่างน้อย 1 เส้น แล้วเช็ค zero_health
  3. ห้ามเก็บในสมอง: credentials, tokens, PII, raw wire logs, full session dumps
  4. privacy: T0 default · 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

  1. ความคิดชั่วคราว / focus สั้นๆ → zero_capture (00_Fleeting) — เก็บเกี่ยวใน 7 วัน
  2. ความรู้ใช้ซ้ำ / บทเรียน / log โปรเจ็กต์ → zero_write_note ลง 10_Notes/ (โปรเจ็กต์: 10_Notes/Projects/<ชื่อ>/)
  3. ดัชนี แผนที่ กฎที่ agent ต้องอ่าน → 20_Atlas/
  4. ไม่แน่ใจ → ถามป๊าก่อนวาง
  5. ก่อนสร้างใหม่ทุกครั้ง: zero_search หาของเดิมก่อน — มีแล้วให้ zero_update_note ไม่สร้างซ้ำ

จบ session / compaction

  1. zero_episode สรุป: ทำอะไร เครื่องมือไหน ได้ผล/ไม่ได้ผล (ระบุ runtime ต้นทาง: kimi-work / kimi-code / codex)
  2. โน้ต fleeting ที่มีค่าถาวร → เลื่อนเป็น zero_write_note 10_Notes แล้ว link
  3. zero_health ปิดท้าย: notes ครบ / orphans = 0 / dead links = 0

Read the full file on GitHub · 56 lines

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. 2d ago First seen · 56 lines · 107 tokens per session scan A 9a737ad01e46

Subscribe to this mod's changes

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.

Related

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.

garrytan/gbrain · 52 tokens

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.…

mem0ai/mem0 · 273 tokens

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…

danielmiessler/LifeOS · 196 tokens

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.

opensquilla/opensquilla · 44 tokens

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…

shiwenwen/hope-agent · 115 tokens

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.

GanyuanRan/Aegis · 45 tokens