ai newsMo., 2. Nov.
EilmeldungMeituan's LongCat-2.5 Drops Into Claude Code at $0.30/$1.20. Its Setup Caps You at 200K

Claude mit einem Befehl in GitHub-Pull-Requests nutzen

Anthropic bietet mit claude-code-action eine GitHub Action, mit der Claude direkt aus Pull-Request- und Issue-Kommentaren heraus Fragen beantworten und Änderungen vornehmen kann. Die Einrichtung von GitHub App, Secrets und Workflow-Datei ist damit deutlich vereinfacht.

dev.toMontag 03:05 · 02.11.DE2 Min. Lesezeit
Bild: dev.to

Code review is where a lot of small bugs get caught, and where a lot of teams run out of hours. claude-code-action is Anthropic's GitHub Action that lets Claude answer questions and make changes straight from pull request and issue comments. Setting a GitHub App, secrets and a workflow file by hand is fiddly. The README has a quicker route, and it starts inside Claude Code.

Once installed, you can mention @claude in a PR or issue comment. According to the README, the action can answer questions about code and architecture, review the changes in a PR and suggest improvements, and implement simple fixes, refactors and even new features. It shows progress with checkboxes that update as it works, and it runs on your own GitHub runner. Anthropic API calls go to the provider you choose.

It picks its mode automatically from your workflow context: responding to @claude mentions, issue assignments, or automation with an explicit prompt.

cd your-repo claude Enter fullscreen mode Exit fullscreen mode Step 2: run the installer command Inside Claude Code, run:

/install-github-app Enter fullscreen mode Exit fullscreen mode The command walks you through installing the GitHub App and adding the required secrets. Follow the prompts.

Check the repository settings: the GitHub App should be installed, and the API key secret should exist under Actions secrets. Also look for the new workflow file the setup adds, and read it before merging. It defines when Claude is allowed to run.

@claude explain what the main function in this file does

If Claude replies with a progress checklist and then an answer, you are done. Only then try a real request such as " @claude add a unit test for this edge case".

If you would rather not click through, give Claude Code this: "Install anthropics/claude-code-action on this repo using /install-github-app, confirm the secrets, then open a test PR comment asking Claude to explain one function."

The step-by-step card is on Deduped: Add Claude to your GitHub repo's pull requests and issues. For more things people do with the terminal agent, see AI use cases for Claude Code and how to explain an unfamiliar codebase with Claude Code.

Source repo: anthropics/claude-code-action.

Want the setup commands for 50 AI repos people actually ship with? Get the free AI Repos That Actually Ship pack: https://dedupedai.com/ship-pack/?utm_source=devto&utm_medium=article&utm_campaign=shippack

Get one email every Monday with the week's hottest AI repos and exactly how to use them: subscribe free at dedupedai.com

Originaltitel: Add Claude to your GitHub pull requests with one command in Claude CodeQuelle: dev.to (dev.to). Original öffnen