anthropics/claude-code-action
A GitHub Actions integration for Claude-powered PR reviews and issue automation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Claude Code Action is a TypeScript GitHub Actions integration, not a standalone MCP server or model host. Its entry point is action.yml; the source tree includes src/, base-action/, and agent-approval-check/. GitHub workflow events determine when the job starts. Once invoked, the action uses context such as an @claude mention, an issue assignment, or an explicit prompt to select its execution mode.
The package depends on @anthropic-ai/claude-agent-sdk for the agent integration and includes @actions/core, @actions/github, and Octokit REST and GraphQL clients for the GitHub side. The action and its tools run on the GitHub runner, while inference goes to the configured provider. MCP is an extension point for adding tools; @modelcontextprotocol/sdk is a declared dependency, and MCP servers and tool permissions can be configured.
Key Capabilities & Differentiators
The action can answer questions about repository code in PRs and issues, review changes, and make edits such as fixes or refactors when its permissions allow. Interactive sessions can show progress through checkbox updates. For non-interactive automation, prompt and claude_args provide task and agent configuration. Validated JSON results can be exposed as GitHub Actions outputs, letting downstream steps consume a structured result instead of parsing comments.
Provider options include the direct Anthropic API, Amazon Bedrock, Google Vertex AI, and Microsoft Foundry. Direct Anthropic access supports an API key or workload identity federation. These are provider integration options, not a guarantee that every model or authentication method is interchangeable across providers. Representative workflows include path-specific PR reviews, issue triage, and documentation synchronization.
Trade-offs & Limitations
Compared with a fixed linter or a scripted CI check, the action can interpret repository context and handle open-ended requests, but its findings and edits are not deterministic. Compared with calling a model API from a custom script, it saves work on GitHub interactions, mode selection, and structured outputs. The trade-off is handing more of the execution flow to the action and agent. Keep deterministic CI checks as merge gates and require human review for agent-generated changes.
Permissions matter more as automation moves from commenting to editing. Treat PR text, issue comments, and repository content as untrusted input; scope GitHub tokens and enabled tools to each job, and keep privileged write workflows separate from untrusted contributions. Hosting the runner gives you control over the execution environment, not over remote inference. Budget for runner usage, provider charges and limits, and the data-handling requirements of both.
Hardware & Deployment Guide
Deploy it inside a GitHub Actions workflow on a runner with access to GitHub and the selected model provider, then configure events, credentials, and job permissions. For direct Anthropic API users, Claude Code's /install-github-app offers a guided setup and requires repository-admin access to install the app and add secrets. The other providers have separate setup paths. Sizing is driven by the repository, enabled tools, and concurrent jobs rather than local model inference; a self-hosted runner is not an offline deployment.
The v1 milestone introduced the simplified configuration centered on prompt and claude_args; use the migration guide when moving an existing v0.x workflow. Among the listed patch releases, v1.0.289 changed text logging to plain text and moved buffered comment posting into the run step. v1.0.290 restored GITHUB_OUTPUT at session end, a detail relevant to jobs that consume action outputs.
action.yml entry point and an @anthropic-ai/claude-agent-sdk dependency.GitHub teams that want conversational PR review, issue triage, or bounded code edits within existing workflows, and can scope agent permissions and review its changes.
You need offline inference, cannot send repository context to a model provider, or only need deterministic checks to enforce merge rules.
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-code-action ★ | 10.2k | +97 | TypeScript | MIT | A GitHub Actions integration for Claude-powered PR reviews and issue automation |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
| spec-kit | 153.7k | +1.3k | Python | MIT | A Python CLI for spec-driven coding-agent workflows and reviewable handoffs |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/anthropics/claude-code-action.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-code-action
How does the action fit into an existing GitHub workflow?
prompt. For downstream jobs that need machine-readable results, use validated JSON action outputs rather than parsing comments.Do we need a GPU, and how should we size the runner?
What does the MIT license cover, and is a self-hosted runner enough for compliance?
When should we choose this over a linter or a custom model API script?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy