Repolode
anthropics

anthropics/claude-code-action

A GitHub Action that runs Claude Code on PRs and issues to answer questions, review changes, and implement code.

Open-source alternative to:GitHub Copilot

Stars
9,576
Forks
2,214
Open issues
833
Last commit
21 hours ago

What is it?

Claude Code Action is a general-purpose GitHub Action that brings Claude Code into pull requests and issues. It responds to @claude mentions, issue assignments, and explicitly prompted automation tasks, detecting which mode to run based on workflow context. Typical work includes answering questions about code, reviewing PR changes, and implementing simple fixes, refactors, or new features.

The action runs on your own GitHub runner, and model calls go to the provider you configure. It supports the Anthropic direct API (API key or workload identity federation), Amazon Bedrock, Google Vertex AI, and Microsoft Foundry. Inputs are a unified prompt and claude_args, which pass options through to the Claude Code SDK. Structured JSON outputs can be exposed as GitHub Action outputs for downstream steps.

Key features

  • 01Automatically selects execution mode from workflow context, including @claude mentions and issue assignments
  • 02Answers questions about code, architecture, and programming in PR and issue threads
  • 03Reviews pull request changes and suggests improvements
  • 04Implements fixes, refactoring, and new features
  • 05Shows checkbox progress indicators that update as tasks complete
  • 06Returns validated JSON outputs usable in later workflow steps

Use cases

  • Automatic code review on every pull request
  • Triaging and labeling new issues
  • Responding to @claude requests for code changes in a PR
  • Scheduled repository maintenance or documentation sync tasks

Quick start

  1. 1

    Open Claude Code in your terminal

    claude
  2. 2

    Run the install command to set up the GitHub app and secrets

    /install-github-app

Things to know

  • The quickstart install method only works with direct Anthropic API users; other cloud providers need a separate manual setup.
  • You must be a repository admin to install the GitHub app and add secrets.

Topics

FAQ

What is claude-code-action?
A GitHub Action that runs Claude Code on PRs and issues to answer questions, review changes, and implement code. Claude Code Action is a general-purpose GitHub Action that brings Claude Code into pull requests and issues. It responds to @claude mentions, issue assignments, and explicitly prompted automation tasks, detecting which mode to run based on workflow context. Typical work includes answering questions about code, reviewing PR changes, and implementing simple fixes, refactors, or new features.
Is claude-code-action free to use? What license does it have?
claude-code-action is open source under the MIT license. Check the license terms before using it in commercial products.
Is claude-code-action still maintained?
Actively maintained. The last commit to claude-code-action was on Oct 18, 2026.
What can I use claude-code-action for?
Automatic code review on every pull request Triaging and labeling new issues Responding to @claude requests for code changes in a PR Scheduled repository maintenance or documentation sync tasks
How do I install claude-code-action?
Open Claude Code in your terminal: claude Run the install command to set up the GitHub app and secrets: /install-github-app
Where can I get claude-code-action?
The source code and installation instructions are on GitHub: https://github.com/anthropics/claude-code-action

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects