Stop fixing the same AI mistake twice. A Lean quality system for AI-assisted work — operators turn recurring defects into countermeasures.
From the author’s README · Quickstart · not verified by Flowy
$ git clone https://github.com/PrimeFoldTools/andon.git
Stop fixing the same AI mistake twice.
A Lean quality system for AI-assisted work — operators turn recurring defects into countermeasures. Built by a manufacturing operator, for people who actually ship.
Andon is the cord on a Toyota line you pull to stop production when something's wrong. This is that cord for AI work: catch the defect, investigate it, and add a countermeasure.
Not affiliated with Andon Labs (the AI-agent evaluation company). Same Lean word, different project — this is a solo, open-source operating kit.
If you work inside an AI agent every day, you know the failure modes:
Most "AI tips" make the output a little better. Recurring defects also need explicit checks and follow-through.
The fix isn't a better prompt. It's an operating discipline — borrowed from a factory floor. Use the same discipline in AI work: record a defect, investigate its cause, and add a countermeasure. Where practical, add a mechanical check and test both the failure and a legitimate passing case. Checks have limits; keep those visible.
The aim: retain what you learned and check whether the countermeasure works.
The smallest useful piece is a structured memory file — so you can come back to a project after three months and your agent knows exactly where you left off, instead of rebuilding context from scratch.
Clone this repo first (you'll copy a couple of files out of it):
git clone https://github.com/PrimeFoldTools/andon.git
In your project, make a memory folder and an index:
mkdir -p memory
cp /path/to/andon/templates/MEMORY.md.template memory/MEMORY.md # path to where you cloned andon
Add 2–3 lines to memory/MEMORY.md — the durable facts your agent keeps forgetting (the stack, the rule, the decision).
Point your agent at it (e.g. in your CLAUDE.md: "Read memory/MEMORY.md at the start of every session.").
That's Layer 1. The payoff shows up the next time your agent starts — it reads the file instead of re-asking, so there's nothing flashy to watch right now. Want an instant, visible win instead? Run the 30-second hook demo below. Full path in QUICKSTART.md.
The claim-check hook detects some completion phrases and checks their verification entries. In block mode, a failed check returns a block decision.
The example below runs the hook in warn mode with no verification entry. Its response asks for evidence; it does not establish whether the agent performed the work. Promote to block only after checking its behavior on your work. See HOOK_INSTALL.md.
The agent writes its own verification entry. Token overlap can accept unrelated work or a fabricated entry; the known limits below describe these cases.
From inside the cloned repo — no install, no config:
rm -f /tmp/andon_claim_checks_none.jsonl
printf '{"type":"assistant","timestamp":"%s","message":{"content":"the migration is complete and the tests are fixed"}}\n' \
"$(python3 -c 'import datetime; print(datetime.datetime.now(datetime.timezone.utc).isoformat())')" > /tmp/t.jsonl
echo '{"transcript_path":"/tmp/t.jsonl"}' \
| CLAIM_CHECK_ENFORCE_MODE=warn CLAIM_CHECKS_LOG_PATH=/tmp/andon_claim_checks_none.jsonl python3 hooks/claim_check_hook.py
The response contains continue: true and a systemMessage asking for claim-specific verification. Run python3 -m pytest hooks/tests/ to check the hook suite.
Not ready to install a hook? Layer 1 above — a plain memory file, no code — is the on-ramp. Start there and climb when you feel the friction.
The runnable proof is the 30-second demo above. The companion evidence is the record: DEFECT_LEDGER.md logs real defects one at a time — defect → root cause → countermeasure → result — where the countermeasure is a hook or test that makes the whole class hard to repeat, not a note that asks you to remember. Accumulated, not invented. Read a few entries; you'll recognize your own week.
Be honest: "give your agent memory + a mistakes log" is a crowded idea in 2026. Some tools even auto-capture your corrections into a rule file (e.g. claude-reflect). If you just want memory, use one of those — they're good.
andon is a different thing: a complete operating discipline, not a memory tool — informed by the Toyota Production System's practices for investigating defects and testing countermeasures.
If that frame resonates, the rest is the proof. If it doesn't, one of the lighter memory repos will serve you better — no hard feelings. (Full credit + a reading list of the tools and ideas andon stands on: stand-on-these-shoulders.md.)
andon/
├── README.md ← you are here
├── QUICKSTART.md ← the 5-minute first win, step by step
├── DEFECT_LEDGER.md ← real defects → countermeasures → results (the proof)
├── HOOK_INSTALL.md ← install the two hooks (warn-first, with a "turn it off")
├── TROUBLESHOOTING.md ← when something doesn't fire / fires too much
├── AGENTS.md ← point your AI agent at this and it self-installs andon
├── CONTRIBUTING.md ← how to report issues, PRs, and hook examples
├── SECURITY.md ← local-first security model + responsible reporting
├── .github/workflows/ ← CI for the Python hooks
├── templates/ ← drop-in: CLAUDE.md · MEMORY.md · LANES.md · CONTEXT.md · lane · skill · wrap
├── hooks/ ← claim_check_hook.py (catches false "done") · auto_orient.py (loads memory at start) · log_claim.py · tests
├── commands/ ← ready-made slash commands: /wrap · /orient · /log-mistake
├── agents/ ← a starter team: researcher · auditor · memory-steward · builder · chief-of-staff
├── scripts/ ← memory_rotate.py (keeps the index from bloating)
├── examples/ ← a FILLED-IN sample project (not empty placeholders)
└── docs/
├── THE_OPERATORS_CODE.md ← the full doctrine: 11 laws + 5 patterns
├── INCOMING_INSPECTION.md ← the check sheet incoming PRs go through
├── integrations.md ← wiring to Obsidian / vector search / Notion
└── stand-on-these-shoulders.md ← the tools + repos this builds on
Everything is plain Markdown + a few stdlib-only Python scripts (two hooks + a helper). No dependencies, no account, no lock-in.
Nothing past Layer 1 is mandatory. Climb when you feel the friction the next layer fixes.
| Layer | You add | Time | Fixes |
|---|---|---|---|
| 1 — Memory | MEMORY.md + a typed memory folder | 5 min | The agent forgetting your project |
| 2 — Instructions | CLAUDE.md + a Mistakes Log | 20 min | Repeating corrected mistakes |
| 3 — The hooks | claim-check (catches false "done") + auto-orient (loads memory at start) | 30 min | False "done" + starting amnesiac |
| 4 — Operator system | the agent team · lanes · commands · integrations | when you run parallel sessions | Drift + collisions at scale |
andon is deliberately small and honest about what it does not do:
andon is a GitHub repository, indexed on Flowy in the Agent Memory category. Flowy has no install command for it. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it