Repository navigation
control plane: inspect / tail / open - #4
Merged
Merged
Conversation
A running `gamechat --realtime` process now binds a tiny Unix domain
socket and exposes JSON-over-newline RPCs so a second `gamechat`
invocation can query active sub-agents and stream their progress.
Subcommands:
gamechat inspect # table of slug, provider, status, last msg
gamechat tail <slug> # cursor-based 750ms polling stream
gamechat open <slug> # print `claude --resume <session_id>`
gamechat open <slug> --launch # macOS: open Terminal via osascript
`open` is claude-only — codex has no documented resume flag, so we error
with a clear pointer to `tail` for codex slugs. Multiple gamechat
processes? Pass `--pid <PID>` or `--socket <PATH>`.
The new `src/control/` module is fully isolated: it depends only on a
read-only handle to `ProgressStore` and never touches the voice loop or
the orchestrator. Plumbing changes to make this possible:
- `ProgressStore` gained `session_id` per slug, a sequence counter on
buffered entries, `snapshot_all()` (non-rate-limited), and
`entries_after(slug, cursor)` for cursor-based tail
- `ProgressReporter::set_session_id()`; `ClaudeClient` calls it once
it parses the session id from `claude -p` stream-json
- `OrchestratorJobManager::progress_store()` accessor + register slugs
with the real provider name instead of the hardcoded "orchestrator"
- `voice_loop` spawns the control server best-effort at startup
41 tests pass, including 5 new in `control::server` (one end-to-end
socket roundtrip) and 4 in `control::client::resume_command`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
zdql
force-pushed
the
feature/control-plane
branch
from
May 26, 2026 18:07
db7d09e to
7a4d74a
Compare
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A running
gamechat --realtimeprocess now binds a tiny Unix domain socket and exposes JSON-over-newline RPCs so a secondgamechatinvocation can query active sub-agents and stream their progress without disturbing the live voice loop.Subcommands
openis claude-only — codex has no documented resume flag, so we error with a clear pointer totailfor codex slugs. Multiple gamechat processes? Pass--pid <PID>or--socket <PATH>.What changed
The new
src/control/module is fully isolated: it depends only on a read-only handle toProgressStoreand never touches the voice loop or the orchestrator. Plumbing changes:ProgressStoregainedsession_idper slug, a sequence counter on buffered entries,snapshot_all()(non-rate-limited), andentries_after(slug, cursor)for cursor-based tail.ProgressReporter::set_session_id();ClaudeClientcalls it once it parses the session id fromclaude -pstream-json.OrchestratorJobManager::progress_store()accessor + register slugs with the real provider name instead of the hardcoded"orchestrator".voice_loopspawns the control server best-effort at startup (read-only headless envs just log and continue).Test plan
cargo test— 36 passing total, 5 new incontrol::server(one end-to-end socket roundtrip) and 4 incontrol::client::resume_command.gamechat --realtime. In another:gamechat inspectafter a delegation,gamechat tail <slug>to follow it,gamechat open <slug> --launchto pop a new Terminal into Claude Code.gamechat open <codex-slug>errors cleanly.inspectafter a crashed gamechat.🤖 Generated with Claude Code