ccpr

Turn a CodeCommit PR URL into an AI-ready review in one command.
Overview
ccpr is a CLI tool that bridges AWS CodeCommit and AI review tools like Claude Code.
It takes a CodeCommit PR URL, fetches metadata, comments, and diffs, and outputs structured data that AI tools can use for code review.
Install
go install github.com/hidetzu/ccpr/cmd/ccpr@latest
Setup
Create ~/.config/ccpr/config.yaml:
profile: your-aws-profile
repoMappings:
your-repo: /path/to/local/clone
Usage
ccpr review <codecommit-pr-url> # Summary (default)
ccpr review <codecommit-pr-url> --json # JSON for AI tools
ccpr review <codecommit-pr-url> --patch # Diff only
Flags
--json Output as JSON
--patch Output diff only (mutually exclusive with --json)
--profile AWS profile name
--config Path to configuration file
--repo Repository name (alternative to URL)
--region AWS region (alternative to URL)
--pr-id Pull request ID (alternative to URL)
AWS Profile Resolution
--profile flag
profile in config file
AWS_PROFILE environment variable
- default
Using with Claude Code
For AWS CodeCommit repositories, you can use ccpr to provide PR data to Claude Code.
See docs/claude-integration.md for setup instructions.
Development
make build # Build binary to bin/ccpr
make test # Run all tests with -v -race
make lint # golangci-lint
make vet # go vet
make clean # Remove bin/
License
MIT