ci: label-triggered agent that fixes issues and opens PRs - #391
Open
krantheman wants to merge 1 commit into
Open
ci: label-triggered agent that fixes issues and opens PRs#391krantheman wants to merge 1 commit into
krantheman wants to merge 1 commit into
Conversation
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
force-pushed
the
ci/agent-fix-workflow
branch
from
July 29, 2026 10:40
08f9302 to
7084575
Compare
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.
Applying the
agent-fixlabel to an issue runs Claude against it. It triages first and either opens a draft PR againstdevelopor 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: openedis 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 installruns 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 toanthropic_api_key.🤖 Generated with Claude Code