Add Claude Code channel for push-based task events#28
Open
bborn wants to merge 3 commits into
Open
Conversation
Replace the pull-based monitoring approach (background agents running ssh tail -f, 20-minute timeouts, manual /gm-babysit polling) with a Claude Code channel that pushes task events directly into the GM session. The channel is an MCP server (taskyou-channel.ts) that polls the server's notifications.jsonl over SSH and emits events as <channel source="taskyou"> tags. Each GM gets its own channel, baked with that GM's server config at setup time. Also exposes ty_command and ssh_command tools so the GM can run server commands through the channel instead of shelling out. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Doctor Check 7 detects missing channel files, deploys them from plugin templates using config.env, installs bun deps, checks the shell alias for the channels flag, and verifies CLAUDE.md has the new monitoring section. Follows the same drift-detection pattern as the nono check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Spawns the channel server, performs the MCP handshake, and verifies the claude/channel capability, tools capability, instructions, and both ty_command and ssh_command tools are registered. Run: cd channel && bun run smoke-test.ts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
taskyou-channel.ts) that pushes task completion/blocked events directly into the GM session — replacing the fragile background-agent-running-tail -fapproach{{SERVER_HOST}}/{{SERVER_HOME}}at setup time (same pattern asty-remote)ty_commandandssh_commandtools so the GM can run server commands through the channel instead of shelling out to./bin/ty-remote--dangerously-load-development-channels server:taskyou(will simplify when channels leave research preview)What changed
templates/channel/taskyou-channel.ts.tmpltemplates/channel/package.json.tmpltemplates/mcp.json.tmplsetup.shtemplates/CLAUDE.md.tmpltemplates/settings.json.tmpl.claude/commands/gm-babysit.mdPrerequisites
buninstalled locally (for the channel MCP server)claude.ailogin (channels don't support API key auth yet)Test plan
./setup.sh local /tmp/test-projectwith a test config.env — verify channel files are rendered/mcpstatus)<channel source="taskyou">event arrives when the task completesty_commandandssh_commandtools from the GM session/gm-babysitstill works as a manual fallback🤖 Generated with Claude Code