How dileep9063/devpilot-ai works
DevPilot AI is a human-in-the-loop coding agent with a React interface and Django API. A user authenticates, submits a repository and task, then follows a persisted run, reviews proposed changes, approves or rejects them, and sees test results; failures can trigger an AI-proposed fix and another approval. The documented workflow also includes a separate approval before pushing and opening a pull request. The README supplies several agent-stage relationships; unsampled internals are represented only where that documentation supports them.
Main entry points: agent.py Agent workflow · App.jsx Task and run UI · agent_service.py Run orchestration · tasks.py Background jobs
Components 22
User interface
- Task and run UI
frontend/src/App.jsx - Login and registration
frontend/src/components/AuthForm.jsx - Approval and results
frontend/src/components/ApprovalCard.jsx - Run history
frontend/src/components/HistoryList.jsx - GitHub connection UI
frontend/src/components/GitHubConnect.jsx - HTTP client
frontend/src/api.js
API and identity
- API routing
backend/config/urls.py - REST endpoints
backend/core/views.py - JWT authentication
backend/core/auth_views.py
Agent execution
- Background jobs
backend/core/tasks.py - Run orchestration
backend/core/agent_service.py - Agent workflow
backend/core/agent.py - Sandbox and code tools
backend/core/tools.py - Task queue configuration
backend/config/celery.py
External integrations
- Provider fallback
backend/core/llm_providers.py - One-shot chat
backend/core/ai_service.py - GitHub operations
backend/core/github_app.py
Run state
- Run records
backend/core/models.py
Other components
- Engineer
- LLM providers
- GitHub
- Target repository
Connections 29
- Engineer → Task and run UI: submits task
README.md - Task and run UI → Login and registration: shows when unauthenticated
frontend/src/App.jsx - Login and registration → HTTP client: authenticates through
frontend/src/components/AuthForm.jsx - Task and run UI → HTTP client: requests runs
frontend/src/App.jsx - Task and run UI → Approval and results: renders approval
frontend/src/App.jsx - Task and run UI → Run history: renders history
frontend/src/App.jsx - Task and run UI → GitHub connection UI: renders connection
frontend/src/App.jsx - HTTP client → API routing: calls API routes
README.md - API routing → REST endpoints: routes requests
backend/config/urls.py - API routing → JWT authentication: routes registration
backend/config/urls.py - REST endpoints → Background jobs: queues long runs
- Background jobs → Run orchestration: runs or resumes
backend/core/tasks.py - Background jobs → Run records: claims and records status
backend/core/tasks.py - Run orchestration → Agent workflow: invokes or resumes
backend/core/agent_service.py - Run orchestration → Sandbox and code tools: configures tool access
backend/core/agent_service.py - Run orchestration → GitHub operations: uses GitHub operations
backend/core/agent_service.py - Run orchestration → Run records: reads and updates runs
backend/core/agent_service.py - Agent workflow → Sandbox and code tools: uses sandbox tools
README.md - Agent workflow → Provider fallback: requests model responses
- Sandbox and code tools → Target repository: reads and changes
README.md - Agent workflow → Engineer: requests approval
README.md - Agent workflow → Provider fallback: proposes fixes
README.md - Agent workflow → Target repository: tests and commits
README.md - Agent workflow → GitHub operations: pushes and opens PR
README.md - GitHub operations → GitHub: uses
- GitHub connection UI → HTTP client: uses client
- One-shot chat → Provider fallback: invokes fallback
backend/core/ai_service.py - Provider fallback → LLM providers: tries configured providers
backend/core/llm_providers.py - Task queue configuration → Background jobs: configures queue
backend/core/tasks.py