feat(plugin): add SSE monitor for real-time AIDLC events#215
Open
ChenNima wants to merge 1 commit into
Open
Conversation
Wires a background SSE listener into the Chorus plugin so the agent can receive task assignments, proposal approvals, @mentions, comments, and elaboration events without polling. Ships as a Claude Code plugin monitor (monitors.json), with a companion /chorus:monitor skill and an enableMonitor userConfig flag. Known limitation: Claude Code's Monitor runtime is disabled on Bedrock / Vertex / Foundry providers, so auto-start only works on the native Anthropic API path. The skill invocation route remains available as a manual fallback. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Coverage Report
File CoverageNo changed files found. |
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
bin/chorus-sse-monitor.sh) that subscribes to/api/events/notificationsand emits formatted stdout lines for 10 AIDLC event types (task assigned, proposal approved/rejected, idea claimed, comments, @mentions, elaboration requested/answered, task verified/reopened).monitors/monitors.jsonso it auto-starts when the plugin loads on a supported runtime./chorus:monitorskill (skills/monitor/) as a manual invocation fallback.enableMonitoruserConfig flag + SessionStart tip pointing at the skill.test-syntax.shwith a syntax-only check for the new script (Bash 3.2 compat).Known limitation
Claude Code's Monitor runtime is gated by the build-time
feature('MONITOR_TOOL')flag, which is compiled off on Bedrock / Vertex / Foundry builds. On those providers themonitors.jsonentry won't auto-start. The/chorus:monitorskill route is the manual fallback there.Changed files
public/chorus-plugin/bin/chorus-sse-monitor.shpublic/chorus-plugin/monitors/monitors.jsonpublic/chorus-plugin/skills/monitor/SKILL.md/chorus:monitorskill docpublic/chorus-plugin/skills/monitor/package.jsonpublic/chorus-plugin/.claude-plugin/plugin.jsonenableMonitoruserConfig (default: true)public/chorus-plugin/bin/on-session-start.sh/chorus:monitortip whenenableMonitor=truepublic/chorus-plugin/bin/test-syntax.shTest plan
/bin/bash public/chorus-plugin/bin/test-syntax.sh— 15/15 passed on Bash 3.2/chorus:monitorfallback on BedrockGenerated with Claude Code