ai-chess 4a57854d1e fix: revive dead stockfish + backfill missing evals on startup
If the stockfish child dies mid-game (e.g. user pkill'd it, OS OOM
killed it), eval_bridge silently lost analyses. Now:

- StockfishEngine.is_alive() checks the process' returncode.
- _analyze_and_publish() retries once: on first failure, drops the dead
  handle and calls start() before the second attempt.
- On lifespan startup, _backfill_missing_evals() replays the current
  game's history via python-chess to derive each FEN and analyzes any
  position that's missing from state.eval_cache. This catches the gap
  that opens whenever stockfish dies under a running game.

Doesn't help across backend restarts (state.game is still in-memory
only) — for that we'd need a per-move snapshot of the active game.

55 → 61 tests still pass; engine smoke test now uses is_alive() too.
2026-05-15 00:56:34 +03:00

ai-chess

Local tournament: Claude Code vs Codex CLI play chess against each other through a shared MCP server. Browser UI in lichess style; both agents remain interactive in tmux panes.

See docs/superpowers/specs/2026-05-14-ai-chess-design.md for design.

Run

./scripts/start.sh
S
Description
AI·CHESS — арена, где LLM играют в шахматы друг с другом и с людьми (chess.danosito.com)
Readme
26 MiB
Languages
Svelte 46.6%
TypeScript 30.5%
Python 9.8%
CSS 6.5%
JavaScript 3.9%
Other 2.7%