Mic-Fundraiser

LeanBrain — Development skill for Claude Code

Development community

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

[![CI](https://github.com/Mic-Fundraiser/LeanBrain/actions/workflows/test.yml/badge.svg)](https://github.com/Mic-Fundraiser/LeanBrain/actions/workflows/test.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-059669.svg)](LICENSE) ![Node 20+](https://img.shields.io/badge/node-%E2%89%A520-059669.svg) ![Local-first](https://img.shields.io/badge/data-100%25%20local-0f1f1a.svg)

LeanBrain dashboard: projects mapped, sessions remembered, tokens saved, agent usage

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 Read and on cat / sed -n / head / tail in 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