| model | sonnet |
| name | ci-babysit |
| description | Monitor a PR's CircleCI pipeline, diagnose failures, apply scoped fixes, push when requested, and continue until green or blocked. |
CI Babysit
Watch CI and drive failures to resolution.
Load Rules
Read ~/.claude/rules/loop-detection.md, ~/.claude/rules/no-outward-actions.md, and ~/.claude/rules/question-policy.md when available. Use ~/.agents/rules/ under Codex. For CircleCI polling and fix-loop details, read references/protocol-index.md.
Flow
- Identify PR/branch and current pipeline.
- Poll CircleCI status until pass, fail, cancel, or timeout.
- For failures, fetch logs and structured test results.
- Classify as flaky, regression, environment, dependency, or unknown.
- Apply small local fixes when clearly in scope; otherwise report blocker.
- Re-run relevant local checks.
- Push or trigger remote actions only when explicitly allowed.
Output
Return final CI status, jobs inspected, failures diagnosed, fixes made, checks run, and any unresolved blocker.