Proposal: label-gated OpenCode Go PR reviewer #4847
simlal
started this conversation in
Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've setup agentic PR review using OpenCode for work and I like it. I’d like to propose a similar approach for OpenCode-based PR review agent.
Goal
Leverage the existing
AGENTS.mdto make an initial review for PRsInitial Scope
External-fork PRs are excluded initially. This avoids exposing the provider key to untrusted code and does not require pull_request_target (hello supply chain attack).
Authentication
OpenCode Go uses an API key. The OpenCode GitHub App is very convinient, otherwise a minimally scoped GITHUB_TOKEN can post review comments instead.
Cost for OSS
I know the Go Sub is not free, but using something like DeepSeekV4-pro you could easily cover hundreds of PRs and stay within the 5hours/weekly/monthly usage windows for 10$/month. Maybe you could even use the free-tier Zen's API key + the Big Pickle model as a starting point?
a
opencode-review.ymlworkflow could look like:All reactions