Andon
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.
The problem
If you work inside an AI agent every day, you know the failure modes:
- It forgets what you decided last week.
- It repeats mistakes you already corrected.
- It says "done" when it isn't.
- Projects drift — two sessions stomp the same file, context evaporates, you re-explain the same thing.
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.
This is not a memory tool. Memory remembers the lesson. A countermeasure makes the mistake harder to repeat. (Why that matters →)
Quickstart — your first win in 5 minutes (no code)
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.
See it work — the andon cord catching a false "done"

Shortened output of the 30-second demo below. Run it to see the full message.
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.
Reproduce it in 30 seconds
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.
Install as a Claude Code plugin
In Claude Code, run: