Claude Code Action
A general-purpose Claude Code GitHub Action for pull requests and issues that answers questions, reviews code, and implements changes, with support for multiple authentication providers.
Visit anthropics/claude-code-actionOverview
Claude Code Action is a general-purpose GitHub action for pull requests and issues. It can answer questions and implement code changes, activating based on workflow context such as @claude mentions, issue assignments, or explicit automation prompts. It supports Anthropic direct API, Amazon Bedrock, Google Vertex AI, and Microsoft Foundry authentication.
Key Features
- Intelligent mode detection selects the appropriate execution mode from workflow context without configuration.
- Interactive code assistant answers questions about code, architecture, and programming.
- Code review analyzes pull request changes and suggests improvements.
- Code implementation supports simple fixes, refactoring, and new features.
- PR and issue integration works with GitHub comments and pull request reviews.
- Flexible tool access includes GitHub APIs and file operations, with additional tools configurable.
Use Cases
- Automatic pull request code review
- Path-specific reviews triggered by critical file changes
- Issue triage and labeling
- Security-focused reviews
Getting Started
- Open Claude Code in the terminal, run /install-github-app, and follow the guided setup for the GitHub app and required secrets.
Deployment & Requirements
- The action executes entirely on your own GitHub runner; Anthropic API calls go to your chosen provider.
- Installing the GitHub app and adding secrets requires repository admin access.
- The quickstart method is only available for direct Anthropic API users; AWS Bedrock, Google Vertex AI, and Microsoft Foundry setups are covered separately.
Before You Adopt
- License: MIT. Review its terms before using, modifying, or distributing the project.
- Installing the GitHub app and adding secrets requires repository administrator access.
- The terminal quickstart path is limited to direct Anthropic API users.
- Users upgrading from v0.x should follow the migration guide for workflow updates to v1.0.