Active project

Blunderbook

A personal chess coach that reads hundreds of your games, finds the mistakes you keep making, and tells you in plain English what to fix first.

What it is

Blunderbook is a personal chess coach built from your own games. It downloads your game history, has the Stockfish engine check every move, and looks for patterns across all of it: the openings you lose with, the tactics you miss, the shots you walk into, and the winning positions you let slip.

The result is one report that answers a simple question: what is actually costing me games? The name says the rest. It’s your personal book of blunders, so you stop repeating them.

The problem it solves

Most chess sites review one game at a time. You get an accuracy score, a few red marks, and the engine’s best move. That’s useful, but a single game can’t tell you about habits.

Habits only show up across hundreds of games. Do you lose more as White against one particular defense? Do you spot free pieces but leave your own hanging? Do you reach winning positions and then lose them on the clock? Blunderbook is built to answer those questions, and to say plainly when there isn’t enough data to answer them yet.

What it measures

The report opens with a short summary of your biggest problems, ranked by how many games each one affected. Below it, each section answers one question.

SectionThe question it answers
OpeningsWhich openings do I score worst in, by color, and how far behind am I after move 15?
Game phaseDo I blunder more in the opening, middlegame or endgame?
Time pressureDo I make more mistakes when low on time, and how many games do I lose on the clock while not losing on the board?
Recurring tactical missesWhich kinds of material do I keep leaving loose or failing to take?
Results by time controlHow do I score in bullet, blitz, rapid and correspondence?
Rating over timeHow has my rating moved, per site and per speed?
Tactics scorecardFor each tactic (forks, pins, skewers, mates and more), how often did I find it, miss it, or walk into it?
ConvertingWhen I reach a clearly winning position, how often do I actually win, and where does it slip?
SavingWhen I’m clearly losing, how often do I save the game, and was it my defense or their mistake?
Endgames by typeHow do I play rook, pawn, minor-piece and queen endgames?
MiddlegameDo I play worse when ahead, equal or behind, and how often do I punish my opponent’s mistakes?

Every section shows real examples from your own games, each with a link to open the position on an analysis board. No example is repeated across the report, and if you play on more than one site, every section also breaks the numbers down by site.

Case study: my own 310 games

The first person Blunderbook coached was me. On 12 months of my own games (310 games, almost all blitz), it found that I’m a decent attacker and a careless defender, and that the clock costs me games I’ve already won.

FindingThe numberWhat it means
Loose material182 times, in 129 gamesMy most widespread mistake: leaving pieces undefended or cheaply attackable.
Finding free pieces55 of 63 (87%)When my opponent hangs a piece, I almost always take it.
Walking into the same shot58 timesI leave my own pieces hanging more often than I take theirs.
Following through89%When I find a winning tactic, I nearly always cash it in.
Converting won positions127 of 181 (70%)Of the 54 I didn’t convert, 17 were lost on time while winning.
Losses on time31 (10% of games)In 19 of them I wasn’t losing on the board; in 13 I was clearly winning.
Saving lost positions31 of 97 (32%)26 of those saves came from taking an opponent’s mistake.
Punishing mistakes328 of 536 (61%)I take advantage of most, but not all, of my opponents’ errors.

It also told me what not to worry about. My blunder rate in the opening and middlegame is about the same (6.3 vs 6.1 per 100 moves), and my worst-scoring opening had too few games to mean anything, so the report says exactly that instead of turning it into a headline.

The takeaway was concrete: stop leaving pieces loose, and stop flagging in won games. A single-game review never put it that way.

How it works

One click runs the whole pipeline. Only new games are analyzed, so after the first run an update takes seconds.

  1. Import. Games come in from Lichess or a PGN file (the standard chess game format every site can export). Duplicates are skipped.
  2. Engine pass. Stockfish, the strongest open-source chess engine, checks every position. For each one it records the best move, the second-best move, and the engine’s best line eight moves deep. Results are cached, so no position is analyzed twice.
  3. Grade every move. Each move is scored by how much it changed your chance of winning: 10 points lost is an inaccuracy, 20 a mistake, 30 a blunder. The middlegame section uses the engine’s raw score in pawns instead, so mistakes still count when you’re already far behind.
  4. Find the tactics. Blunderbook’s own detectors read the engine’s line and name what happened: a fork, a pin, a skewer, a discovered attack, removing a defender, an x-ray, a hanging piece, or a mate.
  5. Count across games. Every finding is counted per game and per move, tested against minimum sample sizes, and ranked by how many games it affected.
  6. Write the report. A readable report with a ranked summary, a section per question, and linked examples from your own games.

Why you can trust the numbers

A coach that’s confidently wrong is worse than no coach, so Blunderbook is built to prove its claims or label them.

  • Tactic detectors are tested against known answers. Each detector is checked against hand-built positions and against about 1,850 puzzles from the public Lichess puzzle database. A tactic is only shown normally if it agrees with the reference at least 80% of the time. Between 60% and 80% it’s marked “experimental.” Below that, it’s hidden.
  • Rules are frozen before testing. The detection rules are locked and recorded before they’re measured on a fresh batch of puzzles they’ve never seen, so the scores can’t be quietly tuned to look good.
  • Small samples are called out. An opening needs at least 15 games before it can be a headline, a phase is only called “worst” when the gap is statistically meaningful, and anything thin is marked “few games” instead of turned into a trend.
  • “Walked into” means you caused it. A shot only counts against you if it wasn’t already there before your move. The tool checks the position after the best move to make sure.
  • Everything is independently audited. Every change goes through a second AI acting as an auditor, which reruns the numbers itself and tries to break the code. The project carries more than 650 automated tests.

Privacy

Your games never leave your device. All the analysis, from the engine to the report, runs locally on your own computer today, and on your own phone in the planned app. There’s no account to create and no server collecting your games. The report is a file you own, and nobody else sees it unless you share it.

How it was built

Blunderbook was built with AITOOLS, my workflow where two different AI coding agents keep each other honest. One builds, the other audits, and I direct both.

  1. Build. Claude Code writes the code, runs it, tests it, and leaves a handoff note saying what changed and what is proven versus untested.
  2. Audit. OpenAI’s Codex reads the handoff, reruns everything itself, writes its own test cases, and tries to break the work. It files a verdict: ready, ready with minor fixes, needs corrections, or not ready.
  3. Fix. Claude Code fixes the findings in order of severity, with a new test for each one that fails on the old code and passes on the new.
  4. Repeat until the auditor says ready.

The two agents never talk to each other. They share files: a status file, handoff notes, and audit reports, all tracked in Git. Every claim carries a label (confirmed, unverified, or hypothesis), so nothing gets called “working” until it has been shown to work.

Blunderbook went through more than ten audit rounds on the way to v1, and the auditor caught real problems each time, from a tactic detector giving credit for the wrong capture to a statistic that couldn’t register mistakes in losing positions.

Where it’s going

Today Blunderbook is a working desktop prototype for Windows that I use on my own games. Every definition, threshold, and test in it becomes the spec for the real product: a phone app for Android and iOS.

Planned for the app:

  • Training drills from your own mistakes. Every position you missed or walked into becomes a puzzle, repeated until you solve it reliably. A generic puzzle feed trains everyone’s weaknesses; this trains yours.
  • Progress over time. See whether your weak spots actually shrink after you train, month by month.
  • Phone-friendly analysis. The engine runs in short, cool batches, only on new games, so it doesn’t drain your battery or heat up your phone.
  • A cleaner report. Your three biggest leaks and your strengths up front, with the full detail a tap away.

Before building the app, a small group of players will try the reports for free, to test whether Blunderbook tells them something their usual site doesn’t.

Credits and technology

Blunderbook stands on excellent open-source work and open data.

PieceWhat it does in BlunderbookLicense
StockfishThe engine that evaluates every positionGPL-3.0
python-chessChess rules, moves, and game files in the desktop prototypeGPL-3.0
Lichess puzzle databaseThe known-answer test set for the tactic detectorsCC0 (public domain)
Python and SQLiteThe prototype’s language and its local game databaseOpen source
Claude Code and CodexThe builder and auditor AI agents in the AITOOLS workflowCommercial tools

The tactic detectors, the scorecard, the statistics, and the report are my own work. Chess.com and Lichess are trademarks of their owners; Blunderbook is an independent project and isn’t affiliated with either.