How jaga0001/repo_pilot works
RepoPilot receives GitHub CI events, checks workflow outcomes, gathers failure logs and repository context, generates a repair, then commits it and opens a pull request. It also searches and records prior fixes in Elasticsearch. The webhook excerpt directly shows orchestration calls into GitHub, Elasticsearch, and the CrewAI crew; the README documents the broader repair sequence and configurable agents. main.py, Elasticsearch internals, and authentication internals were not excerpted, so their internal wiring is not inferred.
Main entry points: webhook.py Failure pipeline · crew.py Repair crew · github_service.py GitHub service · es_service.py Fix search and storage
Components 13
Event handling
- FastAPI app
main.py - Webhook handler
routes/webhook.py - Failure pipeline
routes/webhook.py
GitHub operations
- GitHub service
services/github_service.py - App authentication
services/github_auth.py
AI repair
- Repair crew
crew/crew.py - Agent definitions
crew/config/agents.yaml - Task definitions
crew/config/tasks.yaml
Fix memory
- Fix search and storage
services/es_service.py
Other components
- GitHub events
- GitHub API
- Gemini model
- Elasticsearch
Connections 15
- GitHub events → Webhook handler: sends events
README.md - FastAPI app → Webhook handler: serves endpoint
- Webhook handler → Failure pipeline: schedules
routes/webhook.py - Failure pipeline → GitHub service: checks and gathers
routes/webhook.py - Failure pipeline → Fix search and storage: searches fixes
routes/webhook.py - Failure pipeline → Repair crew: submits context
routes/webhook.py - Failure pipeline → GitHub service: commits and opens PR
README.md - Failure pipeline → Fix search and storage: stores fix
routes/webhook.py - GitHub service → App authentication: gets installation token
services/github_service.py - GitHub service → GitHub API: calls
README.md - App authentication → GitHub API: authenticates
- Repair crew → Agent definitions: uses configuration
README.md - Repair crew → Task definitions: uses configuration
README.md - Repair crew → Gemini model: uses model
- Fix search and storage → Elasticsearch: queries and stores
README.md