Skip to content

ci: phone-triggerable Claude issue-resolver workflow#626

Open
lakhansamani wants to merge 1 commit into
mainfrom
feat/issue-resolver-agent
Open

ci: phone-triggerable Claude issue-resolver workflow#626
lakhansamani wants to merge 1 commit into
mainfrom
feat/issue-resolver-agent

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

What

Adds .github/workflows/claude-issue-resolver.yml: comment @claude <instructions> on any issue/PR (or add the claude-fix label) and Claude resolves it end-to-end — spec, plan, implementation on a feature branch, tests, and a PR back to main. Built for fixing issues remotely from a phone.

Also registers the issue-resolver agent in the CLAUDE.md agent table for local use.

Safety

  • Trigger restricted to OWNER/MEMBER/COLLABORATOR author association — drive-by commenters on the public repo cannot start runs.
  • The embedded system prompt enforces: never commit to main, reproduce bugs with a failing test first, full test gates (go build/go vet/make test-sqlite, all-DB for storage changes, frontend builds), fail-closed security rules, no AI attribution in commits/PRs.
  • 120-minute job timeout.

Setup (one-time)

  1. Add ANTHROPIC_API_KEY to repo Actions secrets (or install the Claude GitHub App and use its OIDC flow).
  2. Optionally create a claude-fix label.

Test plan

  • Comment @claude summarize this issue on a test issue and confirm the workflow triggers and replies.
  • Confirm a non-collaborator comment does NOT trigger the workflow.
  • Run a real fix: @claude fix this on a small bug; verify branch + PR + green CI.

Maintainers can fix issues remotely by commenting @claude on an issue/PR or
adding the claude-fix label. The workflow runs Claude with the project's
spec-first/plan-first delivery rules embedded: reproduce with a failing
test, never commit to main, full test gates (build/vet/test-sqlite, all-DB
for storage changes, frontend builds), security fail-closed rules, and
conventional-commit/PR hygiene. Trigger is gated to OWNER/MEMBER/
COLLABORATOR author_association so drive-by commenters on the public repo
cannot spend CI minutes or API credits.

Requires the ANTHROPIC_API_KEY Actions secret (or the Claude GitHub App).
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