Never miss an upstream change again.
Track upstream repositories, classify changes automatically, assess relevance against your project, generate adaptation plans, and contribute improvements back — all from the terminal.
pip install code-adapt# Observe upstream changes from the last 7 days
cadp observe my-upstream --since 7d
# Analyze a specific pull request
cadp analyze pr-451
# Assess relevance against your project
cadp assess pr-451 --against my-project
# Generate an adaptation plan
cadp plan adaptation-001
# Create implementation branch and open a draft PR
cadp implement adaptation-001 --branch --open-prRequires a GitHub token: gh auth login or export GITHUB_TOKEN="...".
code-adapt enforces a structured lifecycle — each stage has a clear purpose, and the CLI guides you through every transition:
observed → analyzed → assessed → planned → implemented → validated → contributed → merged
Any stage can transition to rejected. The state machine is enforced in code — you can't skip stages or make invalid transitions.
- Multi-provider — GitHub, GitLab, Gitea, gitcode.com, Codeberg, and self-hosted instances
- Auto-classification — security fixes, bugfixes, refactors, and features sorted by regex + heuristics
- Relevance scoring — risk assessment against your project's modules and policies
- Adaptation plans — concrete strategies with implementation branches and draft PRs
- Git-tracked state — all data lives in
.adapt/as YAML and JSON, no database - Dual output — rich terminal tables for humans,
--jsonfor scripts and CI - Policy management — define and validate adaptation policies
- Learning loop — track outcomes, improve future assessments
git clone https://github.com/aipioneers/code-adapt.git
cd code-adapt
pip install -e ".[dev]"
pytest tests/ -vSee CONTRIBUTING.md for development setup and guidelines.
Part of the AI Pioneers ecosystem · code-explore · spec-intelligence