Issue-to-Merge GitHub-Native Loop (Engineer the Reload)
A full-lifecycle loop where every piece of workflow state lives in GitHub — issues, labels, PR comments — and repo files, so each cold-start session rehydrates from GitHub rather than a conversation. Built on the official claude-code-action.
Implementation note
When to use: you want an agent operating across the full delivery lifecycle — issue intake, branch, implement, PR, review fixes, merge — reliably enough that losing a session costs nothing. How it works: Claude Code runs the whole flow with all workflow state externalized to GitHub — issues, labels, PR comments — and repo files, built on the official claude-code-action. Each session starts cold and rehydrates entirely from GitHub state, which is the engineer-the-reload idea: the chat being gone doesn't cost you anything, because nothing important ever lived only in the conversation. Safety: externalized state is itself a rail — every decision and status change is visible in GitHub's audit surfaces (issue timelines, PR history) rather than an opaque transcript. The lifecycle includes merge, so govern that step with branch protection, required checks, and human approval; let the agent drive the process while the merge gate stays policy-controlled.
Source: Saulius (saulius.io) ↗graded C · 60/100 — how grades work →
More ci loops
Get the build green
Run the build, fix the first error, and repeat until npm run build exits 0, with a 10-turn cap.
Get the build green, every time
Work through each task in .toh/plan.md, fix blockers, until the build command succeeds or you hit 40 turns.
Get lint and E2E tests passing
Execute work from PLAN.md until npm run lint and npm run test:e2e pass, scoping changes per AGENTS.md.