AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Clankbrain — compound learning for Claude Code. Skills self-improve, rejected approaches stay rejected, decisions stop getting re-debated. Two commands. No external dependencies.
Translation pending
Developer toolsPython · HTMLGitHub @YehudaFrankelOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Memory + workflows for Claude Code that compound across sessions
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
Every session, your coding agent wakes up a stranger.
You re-explain the stack. Re-describe what you were building. Re-establish why certain approaches won't work here. Then it fumbles through the same debug flow, the same code review, the same refactor — because it has no structured way to do any of it.
Clankbrain fixes both. It gives Claude Code a living memory — decisions, mistakes, patterns, lessons that compound across sessions — and 37 built-in workflows for every development task: debugging, code review, refactoring, frontend design, security audits, and more.Read the full README ↗Clankbrain is a ready-made setup for Claude Code. It adds automatic hooks, organized memory files, a start-and-end-of-session routine and reusable workflows on top of what Claude Code already provides.
Claude Code has more built in than many people realize:
CLAUDE.md files and .claude/rules/ (rules can apply only to certain file types).If that is enough for you, you do not need Clankbrain.
Claude Code gives you the parts. Its hooks page describes the mechanism only and ships no ready-made hooks. Clankbrain supplies the finished version:
| Claude Code gives you | Clankbrain adds |
|---|---|
| A hook system you configure yourself | Hooks already wired: they catch your corrections and turn them into lessons, check whether your notes still match the code, write a session journal and keep memory safe when a long chat is compacted |
| One auto-memory notes area, written by Claude | Separate files you can read, edit and track in git: lessons, decisions, rejected approaches and error fixes |
| Skills as a feature | 19 core workflows installed by default (36 in the repo), plus a score for each skill and an /evolve step that rewrites the ones that keep failing |
CLAUDE.md and rules shared through git | Optional sharing of lessons, decisions and fixes between teammates through a private git repo you own, merged so nobody's entries are overwritten |
| Plan mode | A "show the plan, wait for my yes" rule and a Start Session / End Session routine |
Clankbrain was built from the author's own 335 sessions on one production project. Whether the extra structure is worth it for you depends on how you work. Try the Lite install first.
You need Claude Code (or Codex), Python 3.7 or newer, and Node.js (only for the npx command).
npx clankbrain
The installer asks a few questions (about five) and sets everything up in about 30 seconds. No API keys, no database, no extra Python packages.
Prefer to read the code first? Clone this repo instead and run:
python tools/memory.py --init
npx clankbraindownloadssetup.pyfrom this repository'smainbranch and runs it. Cloning lets you read it before it runs. See SECURITY.md.
Open Claude Code in your project and type these, one at a time:
| Type this | What happens |
|---|---|
kit-health | Checks the install and shows green checks or warnings |
tour | A 5-minute guided walkthrough |
Start Session | Begins real work |
Stuck? The one-page CHEATSHEET lists everything, and QUICKSTART walks through your first three sessions.
There are two commands. That is the whole routine.
1. Start Session. Claude reads its memory and tells you where you left off:
Ready. Last change: Session 42 - Dashboard pagination fix.
What are we working on?
2. Do your work. Before changing code, Claude shows a plan: the problem, the exact lines it will change, why it will work, and how to undo it. Nothing changes until you say yes. After the edit, it reads the lines back to confirm.
3. End Session. Claude looks back over the session, pulls out the lessons and saves them:
Extracted 3 lessons:
1. Debounce must wrap the filter handler, not the fetch call.
2. Page state must be reset when a filter changes.
3. ...
Saved to tasks/lessons.md. Session complete.
Next session, Claude loads those lessons before you type a word. See a full example in demo/example-session.md.
| I want to... | Type |
|---|---|
| Start or end a session | Start Session / End Session |
| Pick up exactly where I left off | /smart-resume |
| Plan a change before touching code | /plan |
| Find existing code before writing new code | /search-first |
| Fix a bug step by step | /fix-bug |
| Search past lessons and decisions | /recall your topic |
| Save lessons from this session | /learn |
| See which skills are not working well | /evolve-check |
| Fix a skill using its failure history | /evolve |
| Create your own skill | /skill-creator |
Other skills (code review, UI design, security checks and more) live in .claude/skills/ in this repo. Copy any folder into your own project's .claude/skills/ to use it. The full list is in docs/skills.md.
Memory files are plain Markdown, so you can read and edit them yourself.
| File | What it holds |
|---|---|
tasks/lessons.md | Things learned from mistakes and corrections |
tasks/decisions.md | Choices you settled on, and why |
tasks/errors.md, tasks/error-lookup.md | Problems you hit and how you fixed them |
tasks/regret.md | Approaches you rejected, so Claude does not suggest them again |
STATUS.md | Where the project stands right now |
.claude/memory/ | Longer notes: code maps, project status, preferences |
Hooks are small scripts that Claude Code runs automatically at certain moments. You never run them yourself.
| When | What it does |
|---|---|
| A session starts | Loads memory and greets you with the last change |
| You send a message | Notices when you correct Claude and queues it as a lesson |
| After Claude edits a file | Logs the edit and checks whether your notes about the code are now out of date |
| Before and after Claude compacts a long conversation | Keeps your memory from being lost |
| Claude finishes replying | Saves a session journal, updates today's date and reminds you to run End Session |
Details: docs/hooks.md.
Skills make the workflows repeatable. Each one has steps and, over time, a score. /evolve-check shows which skills keep failing, and /evolve rewrites their steps using that history.
The installer asks which size you want.
| Lite | Full | |
|---|---|---|
| Memory files | Fewer | The complete set |
| Automatic checks (hooks) | None | Yes |
| Session journal | When you run End Session | Saved automatically |
| Best for | Trying it out, small projects | Long-running projects |
Not sure? Start with Lite. Type Upgrade to Full any time. More: docs/architecture.md.
AGENTS.md, so Codex reads the same memory.--ide cursor or --ide windsurf to create their rule files. Hooks and skills work only in Claude Code. Details: docs/other-ides.md.node _tools/dashboard/server.js, then open http://localhost:3030./recall finds notes by meaning, not just exact words. This needs the optional sentence-transformers package (about 90 MB, runs offline). Without it, /recall falls back to a keyword search.~/.claude/global-lessons.md holds rules that apply to every project.Start Session. Open a new conversation and type Update Kit. It repairs the hook files. Then type Start Session again.Your memory files and code stay on your computer. Team sync is optional and goes only to a repository you own. The kit does send one anonymous usage ping when setup finishes and when a session starts (a random ID, the install mode, platform and Python version, with no project data). To turn it off, set the environment variable CLANKBRAIN_NO_TELEMETRY=1.
These files in the repo root serve the project website through GitHub Pages. Moving them breaks the site:
index.html (the home page)googleb8fe14024404ae1c.html (Google Search Console verification)sitemap.xml, robots.txtlogo.jpeg, memory-starter-kit.png, demo.gif (images used by the site and this README)To separate the site from the kit, first move Pages to a gh-pages branch or a separate repo.
Built by Yehuda Frankel over 335 sessions of daily use on a production project. Using it on a real project? Tell us what you are building.