# Repository Briefing: anthropics/claude-code-action
> Source: https://repoforai.com/repo/anthropics/claude-code-action (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/anthropics/claude-code-action
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 24/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v1 (2025-08-26) — https://github.com/anthropics/claude-code-action/releases
- **Review Snapshot**: 2026-11-29
- **Deployment / Stack Signals**: Self-Hosted, API
- **Momentum**: 10,190 ★ total (+16 24h / +97 7d) · 2,323 forks
- **When to Use**: Best for: 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. Skip if: You need offline inference, cannot send repository context to a model provider, or only need deterministic checks to enforce merge rules.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Workflow routing: Selects interactive or automation behavior from mentions, issue assignments, and explicit prompts.
- Execution stack: TypeScript action with an `action.yml` entry point and an `@anthropic-ai/claude-agent-sdk` dependency.
- GitHub integration: Supports PR and issue interactions and incremental progress reporting with checkboxes.
- Tool configuration: Provides GitHub API and file access, with configurable additional tools and MCP servers.
- Automation contract: Validated JSON results become GitHub Actions outputs for downstream steps.
- Provider options: Direct Anthropic API with an API key or workload identity federation, plus Bedrock, Vertex AI, and Microsoft Foundry.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/anthropics/claude-code-action.git
cd claude-code-action
```
