mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
1a4d39bc6d
Parallel review subagents each need a fresh showcase-langgraph-python build to screenshot. Running `dev-local.sh up langgraph-python` N times in parallel serializes on Docker and wastes time rebuilding identical source. `scripts/agent-notes/rebuild-coord.sh` aligns rebuild attempts to a 30-second clock tick with 0-5s jitter. First agent on a tick acquires a `mkdir`-based lock, rebuilds, and writes a per-tick done marker at `/tmp/showcase-rebuild.done-<tick>`. Peers on the same tick skip their own build and wait up to 30s for that marker. If no marker appears, they retry the next tick (up to 3 ticks). Agents call `bash scripts/agent-notes/rebuild-coord.sh` instead of `./scripts/dev-local.sh up langgraph-python` when they need the live container refreshed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>