Add Claude to your GitHub pull... Note

Add Claude to your GitHub pull requests with one command in Claude Code

Claude-code-action is an Anthropic GitHub Action designed to integrate Claude's capabilities into pull requests and issue comments. This tool aims to streamline code review by catching bugs and facilitating code improvements. Users can interact with Claude by mentioning it with "@claude" in comments. The action can answer code and architecture questions, review PR changes, and suggest enhancements. It is also capable of implementing simple fixes, refactors, and even new features. The action displays its progress using checkboxes and runs on the user's GitHub runner.It automatically detects its operating mode from the workflow context, responding to mentions, issue assignments, or explicit automation prompts. To begin, repository administrators must install a GitHub App and configure secrets. A simplified setup process is available directly within Claude Code by running the "claude" command in the repository. The "install-github-app" command within Claude Code guides users through the installation and secret configuration.After setup, administrators should verify that the GitHub App is installed and the API key secret exists. A new workflow file, which defines when Claude can run, will also be added and should be reviewed before merging. A test comment like "@claude explain what the main function in this file does" can confirm successful setup. Users are advised to treat Claude-code-action like a new contributor, reviewing all its suggested changes before merging. Permissions within the workflow should be kept minimal, and additional tools should be enabled cautiously.