feat: autonomous agent loop (OpenCode worker + reviewer + Orca supervision) - #2
Merged
Conversation
Adds .github/workflows/agent-loop.yml: a scheduled workflow (3x/day) that picks one eligible open issue, implements it headless with an OpenCode Go model, has a second agent review the diff pre-PR, mirrors the required CI checks locally, opens a PR and arms auto-merge. Safety: author allowlist, issue-body-as-data framing, PAT without workflow scope, persist-credentials off, one agent PR in flight, 2-attempt cap with agent:blocked, if:always() cleanup. Includes agent prompts, issue picker, CI opencode config, Orca supervision prompts and the operations runbook; registers the agent:* labels in scripts/setup-github.sh and adds a no-MCP fallback note to AGENTS.md. The loop stays disarmed until the repo admin adds the AGENT_GH_PAT and OPENCODE_AUTH_JSON secrets (see .github/agent/README.md). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019FXiAM89b81PkWzRx8gPgS
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019FXiAM89b81PkWzRx8gPgS
Santisoutoo
enabled auto-merge
August 24, 2026 12:36
This was referenced Aug 24, 2026
auto-merge was automatically disabled
August 24, 2026 12:49
Pull request was closed
Santisoutoo
enabled auto-merge
August 24, 2026 12:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descripción
Infraestructura del loop autónomo de issues (portada desde upstream PR VforVitorio#928, más el parche de tolerancia del secret): workflow programado 3×/día que coge un issue elegible, lo implementa headless con OpenCode Go, lo revisa un segundo agente pre-PR, replica los checks requeridos, abre PR y arma auto-merge. Diseño de seguridad completo en
.github/agent/README.md.Requiere los secrets
AGENT_GH_PATyOPENCODE_AUTH_JSON; sin ellos cada run sale limpio en el primer step.Checklist
bash -ndel picker y parse YAML del workflowsrc/,frontend/ni tests🤖 Generated with Claude Code
https://claude.ai/code/session_019FXiAM89b81PkWzRx8gPgS