Babysit PR
Drive a PR to green CI, or to merged with --merge, by reacting to a provider watcher's events with fix-and-push. Babysit is done when it calls TaskStop after reporting one terminal: green (no flags), merged (--merge), or a block it cannot fix unattended.
Context
- Branch: !
git branch --show-current - Remote URL: !
git remote get-url origin - Start SHA: !
git rev-parse HEAD - Session:
${CLAUDE_SESSION_ID}
Workflow
Start the watcher with github:actions-monitor for a github.com remote, or gitlab:ci-monitor for a gitlab.com remote. It runs under Monitor and emits JSON events, already deduped by (sha, state). Read event fields from that JSON directly, without piping CLI output to an inline interpreter.
Arguments ($ARGUMENTS), both flags off by default: