c2d3a47d4bf6e31075498cf1a72361d9eaa18e4f
Container: - Dockerfile: python:3.12-slim with stockfish + tmux apt; src copied before pip install -e so the editable wheel actually finds ai_chess. fetch-vendor.sh runs at build time so the image is self-contained. - docker-compose.yml: two networks (default + caddy-network), alias 'chessai' on caddy-network, AI_CHESS_HOST=0.0.0.0 env so uvicorn listens on all interfaces (Caddy reverse-proxies over the network), volumes for games/, logs/, config/ to persist across rebuilds. - __main__.py reads AI_CHESS_HOST + AI_CHESS_PORT from env (falls back to 127.0.0.1:7833 for local dev). - .dockerignore excludes .git, .venv, runtime dirs, screenshots. - deploy/chess.danosito.com.caddy: site snippet, imports header_common, reverse_proxy chessai:7833. Live game UX fixes that landed alongside the deploy: - Snap viewPly to null on every move event so an accidental history-scrub no longer leaves the board locked; previously the only way out was a hard refresh. - movable.events.after wired in chessground constructor (instead of top-level events.move) so user moves are submitted only when they pass chessground's own legality check. - Hide stockfish entirely in human-vs-AI: no eval bar, no best-move arrow, no pv string. AI-vs-AI keeps the full spectator HUD. Coordinator / tmux: - New-game rebuilds the 'chess' tmux session from scratch so pane-agent.sh picks up the new bindings (different agent on a side / human side) instead of running with stale state. - /api/dispatch-first now queues the dispatch in a background task and sleeps 12 s first to let claude/codex finish booting inside the panes — paste-buffer was landing on a still-booting bash before.
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
Description
AI·CHESS — арена, где LLM играют в шахматы друг с другом и с людьми (chess.danosito.com)
26 MiB
Languages
Svelte
46.6%
TypeScript
30.5%
Python
9.8%
CSS
6.5%
JavaScript
3.9%
Other
2.7%