@arvoretech/pi-ci-watch
v1.0.1
Published
PI extension that monitors CI status on a PR and auto-fixes failures
Readme
@arvoretech/pi-ci-watch
Monitors CI status for GitHub PRs and auto-fixes failures. Closes the feedback loop between CI and the coding agent.
Install
pi install npm:@arvoretech/pi-ci-watchOr in .pi/settings.json:
{
"packages": ["npm:@arvoretech/pi-ci-watch"]
}Commands
| Command | Description |
|---------|-------------|
| /ci-watch <pr> | Monitor CI and auto-fix failures (up to 3 attempts) |
| /ci-notify <pr> | Monitor CI and notify when done (no auto-fix) |
| /ci-auto on\|off | Auto-watch after every push (default: off) |
| /ci-config <min> <max> <step> | Configure poll intervals in seconds |
| /ci-config | Show current config |
How it works
- Polls
gh pr checkswith a smart interval (30s → 45s → 60s → 30s...) - If CI passed: notifies ✅
- If CI failed: fetches logs via
gh run view --log-failed, returns them to the LLM to fix - LLM reads the error, fixes the code, commits, pushes
- Repeats until CI passes (max 3 attempts)
Auto mode
When enabled with /ci-auto on, the extension detects git push output and automatically starts monitoring the associated PR.
Poll configuration
Default: 30s min, 60s max, 15s step. The interval grows from min to max, then resets — never grows infinitely.
/ci-config 20 90 10Sets: 20s → 30s → 40s → ... → 90s → 20s → ...
Requirements
ghCLI installed and authenticated- Repository with GitHub Actions CI
