Avelio is an Early Warning System and Architectural Guard designed to oversee code contributed by AI agents and developers.
Typical AI agents excel at tactical tasks (writing functions, fixing bugs) but often ignore the strategic consequences of their actions, leading to:
- Unseen technical debt
- Integration errors
- API mismatches between frontend and backend
To convert invisible architectural risk into a visible warning during the Pull Request stage.
API Contract Integrity - Ensuring that backend code changes (models) are properly reflected in the API contract file (openapi.yaml).
pip install -r requirements.txtpython src/avelio_core.py --old-commit <commit-hash> --new-commit <commit-hash>- Accepts Git Diff and transforms it into structured JSON
- Detects
RENAMEandDELETEoperations in Python models - Uses Python's built-in
astmodule for syntax tree analysis
- Compares AST changes against OpenAPI contract
- Detects violations (missing updates in contract)
- Returns detailed violation reports
- Orchestrates the analysis workflow
- Provides CI/CD-ready output
- Returns appropriate exit codes
Example target project is included in /target_project/ for testing purposes.
MIT License