ci: add Claude Code PR review and @claude responder workflows#176
Open
tejasamx-aws wants to merge 1 commit into
Open
ci: add Claude Code PR review and @claude responder workflows#176tejasamx-aws wants to merge 1 commit into
tejasamx-aws wants to merge 1 commit into
Conversation
Add two GitHub Actions workflows powered by anthropics/claude-code-action: - claude-code-review.yml: auto-reviews every PR (opened/synchronize), posting inline and summary comments with a Neuron/Trainium-aware prompt. - claude-code.yml: responds to @claude mentions in issues, PR comments, and reviews (gated on the mention to control cost). Both authenticate to Amazon Bedrock via GitHub OIDC (no long-lived API key). Model, region, and role ARN are configurable via repo secrets/variables with sensible defaults. Setup for repo admins is documented in docs/claude-code-review.md. Fork PRs receive no credentials, so auto-review is a safe no-op for them and runs for in-repo branches.
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.
What
Adds automated code review by Claude Code to this repository via two GitHub Actions workflows:
.github/workflows/claude-code-review.ymlopened,synchronize) — posts inline + summary review comments.github/workflows/claude-code.yml@claudemention in an issue, PR comment, or reviewThe review prompt is tuned for this repo: alongside general correctness/security/performance, it asks Claude to watch for numerical/accuracy regressions and Neuron/Trainium-specific concerns (tensor/expert parallelism, dtype handling, compilation constraints, sharding).
Authentication
Uses Amazon Bedrock via GitHub OIDC — no long-lived Anthropic API key is stored in the repo. Model, region, and role ARN are configurable through repo secrets/variables with sensible defaults (
us.anthropic.claude-sonnet-4-5-20250929-v1:0,us-west-2).Required admin setup (before it works)
The workflows no-op until a repo admin completes the one-time setup in
docs/claude-code-review.md:repo:aws-neuron/neuronx-distributed-inference:*withbedrock:InvokeModelpermission.CLAUDE_CODE_BEDROCK_ROLE_ARN(+ optionalCLAUDE_CODE_AWS_REGION/CLAUDE_CODE_BEDROCK_MODELvariables).Notes / safety
pull_request_targetflow, intentionally left out.@claudemention; the review workflow runs once per PR push.id-token: writeonly where OIDC is needed.Follows the existing
github-script-based workflow conventions already in.github/workflows/.