ai-chess 2038ec95c9 fix(tmux): non-blocking subprocess + stable pane indexing
Two issues kept the deployed container from finishing the tmux rebuild:

1. asyncio's subprocess.communicate() blocked forever on `tmux new-session`
   and `tmux split-window` because the spawned pane child (pane-agent.sh
   → claude/codex) inherited the wrapper's stdout/stderr pipe fds and kept
   them open. _run() now uses DEVNULL for stdin/stdout/stderr by default
   (capture_stdout=True for the lone capture-pane call), and stderr is no
   longer collected — exit code is enough for upstream.

2. tmux re-indexes panes in layout-traversal order after every split, so
   the original 'split black off white horizontally, then split log off
   white vertically' sequence ended with indices 0=white, 1=log, 2=black —
   but the coordinator's pane_for hardcoded black=1, so prompts to codex
   landed on the log pane instead. Reorder: split log off the bottom of
   white FIRST (gives 0=white,1=log), THEN split black off the right of
   white (now indices 0=white,1=black,2=log, matching the hardcoded map).

Plus a small docker-compose change: ~/.codex needs to be writable so
codex can persist its history/session state — without rw the CLI exits
immediately with 'Read-only file system'.
2026-05-15 02:33:26 +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%