SelfHeal is an agentic CI fix app that pulls a failing GitHub Actions run, drafts a patch, verifies it, and opens a PR. It also surfaces the patch, verification output, and a debug bundle for traceability.
npm install
npm run devNotes:
- Create
.env.localin the repo root (do not commit it). - At minimum set
OPENAI_API_KEY. Optional:GITHUB_TOKEN,GITHUB_OWNER,GITHUB_REPO,GITHUB_BASE,VERIFY_CMD. - Restart the dev server after changing
.env.local.
- On the home page, enter
owner,repo,base(and token if needed). - Click View Runs and pick a failed run.
- On the run page, click Heal.
- Watch the Job timeline update; the Latest line updates as each stage completes.
- Review PR Summary, Verification, and Patch Preview panels.
- Open the PR link once it appears (toast confirms creation).
- Optional: Click Download debug bundle for the exact context used.
- Optional: Use Clear history to collapse the timeline for a clean screenshot.