Compare Branch — Development agent for Claude Code
Compare current branch vs main/staging — changes, risk assessment, merge readiness.
How to install Compare Branch
Installs to ~/.claude/agents/cveralyon-axel-setup-compare-branch.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/cveralyon/axel-setup/HEAD/agents/compare-branch.md -o ~/.claude/agents/cveralyon-axel-setup-compare-branch.md Restart Claude Code, or start a new session, for it to be picked up.
What Compare Branch does
description: Compare current branch vs main/staging — changes, risk assessment, merge readiness. tools: ["Bash", "Read", "Grep", "Glob"]
Quick assessment of the current branch compared to a target branch (default: main).
Step 1: Branch State
- Current branch name and target branch
- Commits ahead/behind:
git rev-list --left-right --count HEAD...origin/main - Last common ancestor:
git merge-base HEAD origin/main
Step 2: What Changed
- Files changed: `git diff origin/main...HE
Alternatives in Development
- Gitnexus Branch Hygiene Reviewer — GitNexus branch hygiene and mergeability reviewer 45.8k ★
- Legal Risks — Legal Risk Assessment Subagent 841 ★
- Lex Legal — Use this agent when dealing with legal and compliance activities 523 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Merge Cleanup
Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch. Use at the e
Org Release Notes
Drafts release notes for a merge into main from the merged commits, ticket keys, and ADRs in the range. Read-o
Qe Deployment Readiness
Aggregates quality signals for deployment risk assessment and go/no-go decisions
Worker Conflict Resolver
Given a set of PR numbers with mutual merge conflicts (or conflicts against main), produce a unified resolutio
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Example PR Manager
Own an authorized PR branch lifecycle: early draft, current-head checks/reviews, bounded fix requests, merge v
Related Skills
Deploy Info
Show what will deploy next — diff staging vs main with issue/PR summary, risk assessment, and deploy checklist
Compare Docs
Compare document generation between main and the current feature branch.
Cdd Merge Base
Integrate the current state of the base branch into the feature branch. Two phases: a dry-run conflict assessm