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.

Good fit It helps capture temporary thoughts, write permanent notes, link them into indexes, manage privacy levels, and check for unlinked notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miru-zero/zero-brain/zero-brain-memory
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.

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/github.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/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.

agentmods 80×15 button for zero-brain-memory

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00043 $0.00413
Sonnet 5.5 $0.00021 $0.00206
Haiku 4.5 $0.00011 $0.00103

Measured 3mo ago against content hash 9a737ad01e46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 3mo ago), licensed MIT. It adds 107 tokens to every session and 1,032 once invoked, about $0.0004 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-09-03.

Related

zero-brain-memory compared with skills from other repositories

zero-brain-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zero-brain-memorymiru-zero/zero-brainSkill03mo agoMITA107Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k6d agoApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k15d agoMITA184Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
memoryopensquilla/opensquillaSkill7.2k7d agoApache-2.0A44Claude Code, Codex