Skip to content

ci: label-triggered agent that fixes issues and opens PRs - #391

Open
krantheman wants to merge 1 commit into
frappe:developfrom
krantheman:ci/agent-fix-workflow
Open

ci: label-triggered agent that fixes issues and opens PRs#391
krantheman wants to merge 1 commit into
frappe:developfrom
krantheman:ci/agent-fix-workflow

Conversation

@krantheman

Copy link
Copy Markdown
Member

Applying the agent-fix label to an issue runs Claude against it. It triages first and either opens a draft PR against develop or comments explaining why it declined — then removes the label, so re-applying re-runs it.

Declines anything that's a feature request, a question, ambiguous, needs a product decision, touches auth/permissions/payments/migrations/.github/, or that it estimates above ~300 changed lines. The line estimate is the agent's own judgement at triage time, not an enforced ceiling.

Gating on a maintainer-applied label rather than issues: opened is deliberate: it keeps untrusted issue text from any stranger away from an agent that holds write access. The prompt also marks issue content as data, not instructions.

yarn install runs up front so the agent can run vitest and the frontend build before pushing. PRs open as drafts and are authored by the Claude GitHub App, so Suite CI and Greptile both run on them.

Needs before this does anything: repo secret CLAUDE_CODE_OAUTH_TOKEN (claude setup-token). Swapping to API billing later is a one-line change to anthropic_api_key.

🤖 Generated with Claude Code

Applying the `agent-fix` label to an issue runs Claude against it. It either
opens a draft PR against develop or comments why it declined, then removes the
label so re-applying re-runs it. Gating on a maintainer label keeps untrusted
issue text away from an agent with write access.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@krantheman
krantheman force-pushed the ci/agent-fix-workflow branch from 08f9302 to 7084575 Compare July 29, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant