Skip to content

Conversation

@kaze-cow
Copy link
Collaborator

@kaze-cow kaze-cow commented Oct 20, 2025

🤖 Installing Claude Code GitHub App

This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.

What is Claude Code?

Claude Code is an AI coding agent that can help with:

  • Bug fixes and improvements
  • Documentation updates
  • Implementing new features
  • Code reviews and suggestions
  • Writing tests
  • And more!

Context

Our team is currently constrained in capacity, and frequent code reviews have been a burden. In order to increase the quality of code before it reaches human reviewers, we should use AI to try and catch things earlier on.

I have used claude code review previously on Cannon, and I found it effective. It often identifies major deficienies or easily missed issues by the author and can work with a variety of changes. Here is I think a good representative example (keep in mind this is an older version and I suspect this newer version will work a lot better) usecannon/cannon#1835 (comment)

The AI will be using my (@kaze-cow )'s CoW account API key for now.

The commits and initial files were generated from /install-github-app command in claude code and following the wizard and selecting all default options. I then updated the claude code review file using anthropic's official examples

How it works

Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.

Important Notes

  • This workflow won't take effect until this PR is merged
  • @claude mentions won't work until after the merge is complete
  • The workflow runs automatically whenever Claude is mentioned in PR or issue comments
  • Claude gets access to the entire PR or issue context including files, diffs, and previous comments

Security

  • Our Anthropic API key is securely stored as a GitHub Actions secret
  • Only users with write access to the repository can trigger the workflow
  • All Claude runs are stored in the GitHub Actions run history
  • Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
  • We can add more allowed tools by adding them to the workflow file like:
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)

There's more information in the Claude Code action repo.

After merging this PR, let's try mentioning @claude in a comment on any PR to get started!

Copy link
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, let's test Claude.

The AI will be using my (kaze-cow )'s CoW account API key for now.

Just to make sure: how much is this expected to cost and is there a maximum? I wouldn't want that this ends up with some billing surprise for you at the end. 😅

Copy link

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, lets see how it does!

Co-authored-by: Federico Giacon <58218759+fedgiac@users.noreply.github.com>
@kaze-cow
Copy link
Collaborator Author

Just to make sure: how much is this expected to cost and is there a maximum? I wouldn't want that this ends up with some billing surprise for you at the end. 😅

its included as part of my personal claude subscription, which is $20 per month flat. If rate limit is hit, my account is unable to execute requests for a few hours is all (and that has only happened once to me on a super verbose coding session).

@kaze-cow kaze-cow merged commit e6608ae into master Oct 20, 2025
3 of 5 checks passed
@kaze-cow kaze-cow deleted the add-claude-github-actions-1760933669642 branch October 20, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants