Skip to content

feat: autonomous agent loop (OpenCode worker + reviewer + Orca supervision) - #2

Merged
Santisoutoo merged 3 commits into
mainfrom
feat/agent-loop
Aug 24, 2026
Merged

feat: autonomous agent loop (OpenCode worker + reviewer + Orca supervision)#2
Santisoutoo merged 3 commits into
mainfrom
feat/agent-loop

Conversation

@Santisoutoo

Copy link
Copy Markdown
Owner

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_PAT y OPENCODE_AUTH_JSON; sin ellos cada run sale limpio en el primer step.

Checklist

  • bash -n del picker y parse YAML del workflow
  • Spike Fase 0 validado (worker headless + protocolo ALREADY_DONE)
  • No toca src/, frontend/ ni tests

🤖 Generated with Claude Code

https://claude.ai/code/session_019FXiAM89b81PkWzRx8gPgS

Santisoutoo and others added 2 commits August 24, 2026 11:59
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
@Santisoutoo
Santisoutoo merged commit 685f520 into main Aug 24, 2026
15 checks passed
@Santisoutoo
Santisoutoo deleted the feat/agent-loop branch August 24, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci-cd GitHub Actions / workflows / dependabot area: codebase Touches src/, scripts/ or main.py area: docs Documentation only do-not-rebase Tell auto-update-prs to leave this PR alone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant