WhoBuilt

Building a Chess Coach

May 13, 2026· 18 min· 11K views·Watch on YouTube

Speakers

Anant Dole and Asbjørn Steinskog of Play Magnus discuss building and operating an AI chess coach at AI Engineer.

How chess engines and language models differ

Steinskog traces chess AI from Claude Shannon’s 1949 proposal of brute force and selective search to Deep Blue, AlphaGo, and AlphaZero. Dole says language models can play some opening moves but often hallucinate because they are trained to predict language rather than calculate chess. He describes research that trained a transformer on chess positions and Stockfish evaluations, but notes that this did not give it the ability to explain its moves.

Grounding commentary in chess analysis

The system runs Stockfish across a game, then uses detectors to identify threats, tactics, plans, and positional features such as doubled pawns. It also uses Maia to estimate which moves players at a given rating are likely to find, helping distinguish a best move from a difficult one. The LLM turns this extracted information into English, limiting how much chess reasoning it must invent.

Using reports to improve commentary

When a user flags commentary in the app, the report goes to Slack and a running Claude Code session. A triage skill gives the agent scripts and instructions to inspect the position, adjust prompts or detectors, regenerate the commentary, and check its work. Dole can answer questions in Slack and approve a pull request from his phone; the demo report turned out to have no actual issue.

Balancing response time and quality

Because players want to review a game quickly, the team aims to generate feedback in under three seconds. Gemini 3 Flash averages about three seconds end to end, with time to first token around one second. Their 16 evaluation scenarios cover themes such as tactics, blunders, and hallucination; Gemini Flash passed about 75%, while Claude Opus with more thinking stayed below 60% and took longer.

Lessons from building the coach

Dole recommends separating the data pipeline from language generation and building a clear context extraction layer, even if refining its large initial output takes time. He says automated evaluations help compare models, while chess expertise is needed to judge whether explanations are sound. The team swaps models through OpenRouter as new versions become available.

Takeaways

  • Use a trusted domain tool to produce facts, then ask the LLM to explain them.
  • Extract the context needed for a useful answer before generating language.
  • Design response time around the user’s task; instant feedback may call for a smaller, faster model.
  • Build scenario based evaluations and involve subject matter experts to assess quality.
  • Turn user reports into a review loop where an agent can investigate, regenerate, and propose a fix.

Mentioned in this talk

Search inside this talk

What was claimed 13

Show all 13 facts

Related talks