Review every pull request with Claude Code in GitHub Actions
A GitHub Actions workflow runs Claude Code whenever a pull request is opened or updated. Claude leaves inline comments on the problems it finds, and anyone can also call it from a comment with @claude.
The problem
Pull requests wait in the queue for a human reviewer, and small issues slip through. A review that runs on every PR catches problems early and leaves people to judge design and intent.
Steps
- Install the GitHub CLI and run gh auth login. You need admin access to the repository.
- Open claude in the repository and run /install-github-app. It installs the Claude GitHub App and saves ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN as a repository secret.
- Choose the review workflow when asked, then merge the pull request that setup opens.
- If you set it up by hand, add a workflow that triggers on pull_request events and runs anthropics/claude-code-action@v1 with the code-review plugin.
- Put your review criteria and code style rules in CLAUDE.md at the repository root.
- Set --max-turns in claude_args and a workflow timeout to keep costs down.
From the official docs
plugin_marketplaces: "https://github.com/anthropics/claude-code.git"
plugins: "code-review@claude-code-plugins"
prompt: "/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
claude_args: '--allowedTools "mcp__github_inline_comment__create_inline_comment"'
Results
- Claude leaves an inline comment on each issue it finds, or a single summary comment when it finds nothing.
- It skips draft and closed PRs, trivial or automated ones, and PRs it has already commented on.
- People can mention @claude in issues or PR comments to ask it to implement or fix something.
As reported by the source (Claude Code docs); AgentGid did not measure these figures.
This suits a small team on GitHub where someone has repo admin rights and an Anthropic API key or Claude plan. Setup is quick, but per-PR cost depends on usage, and the Free plan doesn't include Claude Code, so set --max-turns and a timeout from day one. For a free-to-start option, OpenCode (Free + $10/mo) is open source.
The agent used here
Similar use cases
Turn a Figma frame into code by connecting the Figma MCP server
Figma's hosted MCP server gives a coding agent the variables, components and layout data of a frame you link to, so the code it writes matches the design.
The agent gets design context such as variables, components and layout for the selected frame.
16 parallel Claude agents wrote a C compiler that builds the Linux kernel
An Anthropic researcher ran a team of Claude agents in a loop on a shared repository to write a Rust-based C compiler from scratch. The write-up and the code are both public.
Over nearly 2,000 Claude Code sessions and $20,000 in API costs, the agents produced a 100,000-line compiler.
How Spotify migrated about 1,800 data pipelines with its Honk background coding agent
Spotify used Honk, its internal background coding agent built on Claude Code capabilities, to move downstream consumers off two deprecated datasets. The agent opened 240 migration…
As reported by Spotify, the team 'successfully rolled out 240 automated migration PRs using Fleetshift'.
Guides
Best AI Agents in 2026: Live Rankings by Category
The leading AI agents for coding, design, research, data, marketing, sales, support, HR, finance, legal, DevOps and security, ranked by public usage data that refreshes daily, with prices and free options.
What Is an AI Agent? A Practical Explanation With Real Examples
What makes software an AI agent, how agents differ from chatbots and plain language models, the main types in use today and how to judge one.
AI Agent Statistics 2026: Live Usage, Growth and Activity Data
Current statistics on AI agents from public data: package downloads, editor installs, GitHub stars, pull requests opened by coding agents, release pace and benchmark results. Updated daily.
Best AI Coding Agents in 2026: Ranked by Usage, Benchmarks and Price
The AI coding agents developers use most, with live download and install numbers, benchmark results, entry prices and a way to choose between terminal, IDE and cloud agents.