pr-bridge-watch
Reviewed
at commit 5bc7f24
New version, not yet reviewed
Caution: Starts Monitor tasks on its own, and when archiving another session is refused, messages that session to stop its monitors and retries the archive.
Connects a new PR's CI to a live watch over a WebSocket bridge.
0 upvotes
Log in to upvote or save- Made by
- ippoan
- Pinned commit
-
5bc7f24cb02222f6ad4c8c6581f372128eb2bfc3 - What we checked
-
After a Bash command that creates a pull request (gh pr create or pr-push.sh) succeeds, it connects that branch's CI to a gh-actions-bridge server over a WebSocket Monitor, then stops the Monitor when the branch is gone or the session is archived. It runs gh and git for this and sends only the repository name and branch to the bridge you configure (default 127.0.0.1:8799). It now also does this in Claude desktop.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 8ccb191; the rest carries over from the review at that commit. Change: Claude desktop is no longer skipped. On desktop the Monitor is started with timeout_ms 1800000 and without persistent (CLI keeps persistent true, 3600000), and when auto mode gives the hook-started Monitor no verdict, the note added to the tool result now tells the model on desktop to start the ws Monitor itself with the exact arguments (before it only reported a fact). Registers prompt.submit (swallows messages containing its stop marker, otherwise reconciles watches on task notifications), session.receive (consumes stop requests from other sessions), a general tool.call hook (stops all watches before the session archives itself; for archive_session on another session, if the result says live work blocked it, sends that session a send_message stop request, waits 3 seconds and retries the archive) and tool.call on Bash (for gh pr create / pr-push commands: reads the PR URL from the output, runs gh pr view for the head branch, runs git rev-parse and git show-ref, checks the bridge with an http GET on its status URL, then calls the Monitor tool with a ws URL repo=...&ref=... and later TaskStop). The bridge URL comes from the bridgeUrl user option; the default is local. The bridge itself is a separate Rust service in the same repository and the mod only works usefully with it running; it never starts or kills it.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: no
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: yes
- Stores data: no
- Shows something on screen: no
gh pr create / pr-push.sh で PR ができたら、その branch の CI を gh-actions-bridge の ws /watch に Monitor で繋ぐ Claude Mod (function hooks)
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/pr-bridge-watch/)