On this page ยท 11 sections
Anthropic ships a GitHub Action that runs Claude Code inside your repository's workflows. Mention @claude in an issue or a pull request comment and Claude reads the code, implements the change and pushes commits, commenting as it works. This page covers what that action does and where it stops, then what it takes to get the same issue past that point: an independent review, a merge that waits for CI, and a tagged GitHub Release. The second half is Orbi's line, and Orbi's coding agent is Pi, not Claude Code.
Every fact about the action below carries a link to Anthropic's documentation or the action's own repository, with the date we checked it: 2 December 2026. Re-read those pages before you rely on a permission or a trigger; they change.
What Claude Code GitHub Actions is
Claude Code GitHub Actions is a GitHub Action that runs Claude Code inside your repository. In an issue or pull request comment, @claude asks Claude to analyze code, implement changes and push commits; give the action a prompt instead and it runs on any GitHub event you wire it to. It is built on the Claude Agent SDK, and its code lives in anthropics/claude-code-action under the MIT license. (Claude Code โ GitHub Actions, verified 2026-12-02; the action's README, verified 2026-12-02.)
Install the action
Both paths need admin access to the repository.
Quick setup. In the repository you want to connect, run claude, then /install-github-app. Setup walks you through installing the Claude GitHub App, choosing which workflows to add, and storing a credential: an API key from the Claude Console, or an OAuth token from claude setup-token that spends a Claude subscription. It pushes a branch with the workflow files and opens GitHub on a pull request that is ready to create; you create and merge it to switch the workflows on. Quick setup works only with repositories whose remote is on github.com. (Quick setup, verified 2026-12-02.)
Manual setup. Install the Claude GitHub App on the repository, add ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN as an Actions secret, then copy examples/claude.yml into .github/workflows/. The file is a working workflow, not a sketch: as committed it answers @claude in an issue or pull request comment, authenticating with anthropic_api_key. With a subscription token, the step's with: input becomes claude_code_oauth_token, read from the CLAUDE_CODE_OAUTH_TOKEN secret instead. (Manual setup, verified 2026-12-02.)
That file, with its comments and optional inputs left out:
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
The credential goes in the action step's with: block: anthropic_api_key for the API-key secret, claude_code_oauth_token for the subscription token. examples/claude.yml carries the anthropic_api_key line; for a subscription, replace that line with claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}. A workflow with neither stops before Claude starts, verified 2026-12-02.
What triggers a run
The action picks its mode from the workflow, not from a setting.
- Interactive mode: the workflow passes no
prompt, so Claude waits for the trigger phrase โ@claudeby default โ in an issue or pull request comment, in a pull request review, or in the body or title of a newly opened issue, then answers in a comment it keeps updating. - Automation mode: the workflow passes a
prompt, so Claude runs on the event without waiting for a mention. Results go to the workflow run log unless the prompt directs Claude to comment and gives it a tool that can.
Before either mode starts, the action checks the actor: on issue and pull request events the triggering user needs write access (allowed_non_write_users plus your own github_token covers named exceptions), and on every event a bot actor is rejected unless it is listed in allowed_bots, which keeps bots from starting runs in a loop. A rejected check fails the run. (Interactive and automation modes, verified 2026-12-02.)
Permissions it needs
The workflow itself grants what the step needs: contents, pull-requests and issues write for the change and the comments, id-token: write for the action's default GitHub App authentication, and actions: read so Claude can read CI results on the pull request.
The Claude GitHub App is shared by every Claude feature that touches GitHub, so installing it grants one permission set, not the three the action uses: Actions, Checks, Contents, Discussions, Issues, Pull requests, Workflows and repository creation/hooks at read and write, plus read-only administration, Dependabot alerts, members, merge queues, metadata and statuses. GitHub does not let you accept a subset. If your organization needs the narrow set, the action's setup guide describes a custom GitHub App with Contents, Issues and Pull requests only. (GitHub App permissions, verified 2026-12-02; setup guide, verified 2026-12-02.)
Where it stops
The action prepares work; it does not finish the change. Its own capabilities page lists what Claude cannot do: submit a formal pull request review, approve a pull request, push to branches other than the one it was set up on, post more than its one comment, or merge, rebase and otherwise operate on branches beyond pushing commits โ the page states that last one as an instruction Claude is given, not as a tool it lacks. What it can do is create the commits on a branch and link a prefilled pull request creation page, or push to the branch of an open pull request. (Capabilities and limitations, verified 2026-12-02.)
That is why the best-practices page ends the setup with you: "Grant the workflow only the permissions it needs, and review Claude's changes before merging." (GitHub Actions best practices, verified 2026-12-02.)
Code Review, the separate Anthropic product that reviews pull requests as they open or change, without a workflow file, posts inline comments, a summary and a check run โ and states that "by itself, a review doesn't approve or block the pull request." Its result only counts toward approvals in a repository whose Claude Approvals policy uses it. (Claude Code โ Code Review, verified 2026-12-02.)
Nothing in those pages tags a version or publishes a GitHub Release. The finish โ a review that gates, a merge that waits for CI on the latest base, and a release โ is still yours.
Hand the ticket to Orbi
Orbi is an open-source runner that starts where the action stops. An Issue labelled ai-ready is the queue entry: Orbi claims it, implements the change in a worktree, opens a pull request, reviews it in a separate session, merges it once CI passes on the latest base, and records the result. A release task โ an Issue with ai-ready and ai-release โ takes its milestone's version and publishes the tag and the GitHub Release. Its coding agent is Pi: it does not run your existing Claude Code session as its engine. (Orbi workflow, verified 2026-12-02; Orbi on the Pi coding agent.)
Swipe horizontally to see all columns.
| Step | Claude Code GitHub Actions | Orbi |
|---|---|---|
| Writes the change | Claude, on the workflow's runner | Pi, in an isolated worktree |
| Reviews it | Claude comments; the action cannot submit a formal review | A separate review session, with a verdict bound to the commit it checked |
| Merges it | You, after reading the changes | The runner, once CI passes on the latest base |
| Tags and publishes | Not part of the action | A release task publishes the tag and the GitHub Release |
From the Claude Code prompt
Orbi's own plugin for Claude Code keeps the issue authoring where you already are. Clone it once and load it for the session:
git clone --depth 1 https://github.com/orbi-build/orbi ~/orbi-plugin-src
claude --plugin-dir ~/orbi-plugin-src/integrations/claude-plugin
Two commands then do the handover: /orbi:ship turns the task in the session into an Issue with Background, Acceptance criteria and Out of scope, and creates it with the ai-ready label after you confirm; /orbi:status lists the repository's delivery Issues and their pull requests. The plugin uses your authenticated gh CLI, and the two skills behind it (write-ai-ready-issue and suggest-ai-ready-issues) work in any repository, delivered by Orbi or not. (Plugins and integrations, verified 2026-12-02; the page's steps were run on Linux on 2026-11-27 with Claude Code 2.1.331.)
Which model runs the delivery
Orbi runs Pi sessions, and Pi takes its provider and model from the runner's orbi.toml plus a provider file in Pi's models.json shape. The repository ships one provider file per route in templates/pi-providers. The OpenRouter one โ openrouter.json โ points at https://openrouter.ai/api/v1 with api: openai-completions and reads its key from $OPENROUTER_API_KEY; the models in it are the ones you write into your copy.
The provider guide's evidence for that template is the free catalog, checked on 2026-09-08: it does not test a Claude model through OpenRouter. So the route is a configuration you verify, not a documented pairing. Copy the template to .orbi/pi-providers.json, add the exact model IDs you want from OpenRouter's catalog to its models list, select one in orbi.toml, and run orbi check --config orbi.toml before dispatching. On 2 December 2026 that catalog listed 31 anthropic/ IDs, among them anthropic/claude-sonnet-5.5 and anthropic/claude-opus-5.5; the catalog is dynamic, so re-check the ID. Whatever model you route, Pi is the agent that runs โ not Claude Code. (Providers, verified 2026-12-02.)
Start here
Self-host the runner with orbi-build/orbi, or let Orbi Cloud run the same runner for you. How Orbi compares with the action, tool by tool, is on Orbi vs Claude Code; the full path from a label to a tagged release is on Issue to release.
Sources and verification dates
- Claude Code โ GitHub Actions โ setup, modes, trigger checks, workflow and app permissions, best practices. Verified 2026-12-02.
- Claude Code โ Code Review โ what a review posts, and that it does not approve or block by itself. Verified 2026-12-02.
- anthropics/claude-code-action โ the action's repository, MIT license. Verified 2026-12-02.
- examples/claude.yml โ the working workflow copied above, with its comments and optional inputs left out. Verified 2026-12-02.
- base-action/src/validate-env.ts โ the credential check a workflow without
anthropic_api_keyorclaude_code_oauth_tokenfails. Verified 2026-12-02. - Capabilities and limitations โ what Claude cannot do, and how it prepares a pull request. Verified 2026-12-02.
- Setup guide โ the custom GitHub App with the three permissions the action uses. Verified 2026-12-02.
- Orbi workflow โ claim, pull request, independent review, merge and release task. Verified 2026-12-02.
- Plugins and integrations โ the Orbi plugin for Claude Code. Verified 2026-12-02.
- Providers and openrouter.json โ the OpenRouter provider file. Verified 2026-12-02.
- OpenRouter models API โ the Anthropic model IDs listed on 2026-12-02. Verified 2026-12-02.
Update log
- 2026-12-02: First version. The action's setup, triggers, permissions and limits were read from the pages linked above on that day, and the Orbi handover from the engine documentation.