LeanBrain — Development skill for Claude Code
The lean second brain for coding agents: persistent memory, a token guard and insights (pause tax, immunity, déjà vu, collision radar) for Claude Code, Codex & Gemini CLI.
How to install LeanBrain
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Mic-Fundraiser/LeanBrain and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What LeanBrain does
The lean second brain for coding agents: persistent memory, a token guard and insights (pause tax, immunity, déjà vu, collision radar) for Claude Code, Codex & Gemini CLI. Works with Claude Opus 5.5, Fable 5.2 and GPT-6.2 Astra/Sol. 100% local.
Alternatives in Development
- Claude Opus 5 5 Long Context Guard — Anthropic 旗舰 Claude Opus 5.5 / Sonnet 5.5 长程代码重构扣费避坑:彻底解决 Stripe 拒付与 Ghost Cancel 砍单 64 ★
- Buzz — Profile Lean declarations, find the slow ones, trace-diagnose the root cause, and fix them until each elaborat 33 ★
- Hatch3r Board Pickup — Pick up epics/issues from the project board: dependency-aware selection, collision detection, branching, batch 26 ★
README
LeanBrain
**The lean second brain for coding agents.** Persistent project memory, an automatic token guard and insights no other tool computes — for **Claude Code**, **Codex** and **Gemini CLI**.
[](https://github.com/Mic-Fundraiser/LeanBrain/actions/workflows/test.yml) [](LICENSE)  
Your agents forget every project between chats, re-read the same files, print whole files through the shell, retry commands that never worked on your machine, and pay to rebuild the prompt cache after every coffee break. LeanBrain fixes that **locally**, with one Node.js script and no account:
- 🧠 Memory that writes itself — every Claude Code, Codex and Gemini session is summarised automatically (request, outcome, edited files, tokens). Agents get it back as a 500-token project card.
- 🛡️ Token guard — Claude Code hooks answer big file reads with an outline, re-reads with a one-line stub, re-reads after edits with a diff. Works on
Readand oncat/sed -n/head/tailin Bash. - ✦ Insights nobody else computes — pause tax, immunity, déjà vu and collision radar (below).
- 📈 Usage you can act on — tokens and API-equivalent cost by day, project, model and tool, plus the fixed context every call re-reads.
Works with the current models — **Claude Opus 5.5, Claude Fable 5.2, Claude Sonnet 5.5, Claude Haiku 5.5, Claude Mythos** — and with **OpenAI GPT‑6.2 Astra and GPT
Related Skills
Sm64 Gba
Super Mario 64's movement and collision code on the Game Boy Advance, bit-exact with the original, plus a play
Claude Capacity Guard
Native Claude Code quota guard: pause long-running tasks before quota runs low and continue after reset.
Claude Usage Guard
Pause Claude before its next tool call when your 5-hour or weekly plan usage runs hot with lots of window left
Zazencodes Obsidian Agent Course
Companion resources for the Obsidian Agent Setup course by ZazenCodes — build a second brain in Obsidian that
Openwolf Enhanced
Enhanced fork of OpenWolf — a token-conscious second brain for Claude Code, with bounded storage, self-mainten
Respected Brain
Multi-agent Obsidian second brain for Claude Code, Codex, Cursor and Antigravity
Related Agents
Test Fable Low
Test agent for the statusline agent panel; runs a 60-second pause and reports.
Memory Manager
Invoke when the user wants to save brand knowledge to persistent memory, search past campaign learnings, sync
Accounting Guard
Reviews tax/money diffs for domain invariants generic review misses — integer cents, GST 1/11, GST-exclusive d