Skip to main content
Integrate Claude into your CI/CD pipeline for automated PR reviews, changelog generation, code refactoring, and more.

What You’ll Build

Automated workflows that:
  • Review pull requests and suggest improvements
  • Generate changelogs from commits
  • Refactor code on schedule
  • Run code analysis and security audits

Architecture

Two Approaches

There are two ways to give Claude access to your code in CI/CD:
  1. Possession Mode - Claude reads files directly from the runner via --allow-possession
  2. Deploy Workspace - Upload code to Chucky cloud with chucky deploy, then run jobs
Possession Mode is simpler for quick tasks. Deploy is better for complex operations or when you want changes tracked in git bundles.

GitHub Actions Examples

PR Review Bot

Changelog Generator

Automated Refactoring

Security Audit

GitLab CI Examples

MR Review

Using Background Jobs

For long-running tasks, use background jobs with webhooks:
Then handle the webhook in your server:

Best Practices

1. Set Budget Limits

2. Handle Failures Gracefully

3. Cache Workspace

4. Use Secrets Properly

5. Rate Limit AI Calls

Common Tasks

All commands below assume --allow-possession --dangerously-skip-permissions flags:
Add --apply to automatically apply changes from the git bundle after Claude makes modifications.

Next Steps

Jobs

Background job management

Git Bundles

Applying AI changes

Deployment

Deploying workspaces

Cron Jobs

Scheduled tasks