Devika Agent Architecture
How Devika Works
User: "Build a dashboard that shows real-time crypto prices"
│
├─ 1. Planning Agent
│ Breaks task into steps:
│ - Research crypto APIs
│ - Choose web framework
│ - Design data model
│ - Build frontend
│ - Add real-time updates
│
├─ 2. Research Agent
│ Browses the web via Playwright:
│ - CoinGecko API documentation
│ - Next.js dashboard examples
│ - WebSocket best practices
│
├─ 3. Coding Agent
│ Writes code across files:
│ - api/prices.py
│ - components/PriceChart.tsx
│ - utils/websocket.ts
│ - README.md
│
└─ 4. Review & Iterate
Self-reviews code quality
Fixes bugs if found
Reports completionCore Capabilities
| Capability | Description |
|---|---|
| Task Planning | Decomposes complex tasks into manageable sub-steps with dependencies |
| Web Research | Browses the internet via headless Playwright to gather context |
| Keyword Extraction | Identifies relevant search terms from the task description |
| Code Writing | Generates multi-file projects with proper structure |
| Self-Review | Reviews own code for bugs and improvements |
| Multi-Language | Python, JavaScript, TypeScript, Go, Rust, and more |
Supported LLM Providers
# In settings panel, choose your provider:
providers = {
"Claude 3": {"models": ["claude-3-opus", "claude-3-sonnet", "claude-3-haiku"]},
"OpenAI": {"models": ["gpt-4", "gpt-4-turbo", "gpt-3.5-turbo"]},
"Google": {"models": ["gemini-pro", "gemini-1.5-pro"]},
"Mistral": {"models": ["mistral-large", "mistral-medium"]},
"Groq": {"models": ["llama-3-70b", "mixtral-8x7b"]},
"Ollama": {"models": ["any local model"]},
}Web Research Engine
Devika uses Playwright for autonomous web browsing:
Research Flow:
1. Extract keywords from user task
2. Search the web (Google, Bing, DuckDuckGo)
3. Open relevant pages
4. Extract and summarize content
5. Build a knowledge base for codingThis means Devika can:
- Read API documentation before writing integration code
- Study existing implementations for inspiration
- Find and apply solutions from Stack Overflow
- Understand framework conventions from docs
Project Management
Each task creates a project with:
- File tree structure
- Step-by-step progress tracking
- Code history and diffs
- Research notes and sources
- Agent state visualization
Chat Interface
The web UI provides:
- Natural language conversation with Devika
- Real-time progress of planning → research → coding phases
- Code preview with syntax highlighting
- Project file browser
- Model selection dropdown
FAQ
Q: What is Devika? A: Devika is an open-source AI software engineer with 19,400+ GitHub stars — the first open-source Devin alternative. She autonomously plans, researches, and writes code from natural language instructions.
Q: How is Devika different from GitHub Copilot or Cursor? A: Copilot and Cursor assist with code completion in an editor. Devika is an autonomous agent that independently researches the web, plans multi-step approaches, and writes complete multi-file projects from scratch — no IDE required.
Q: Is Devika free? A: Yes, open-source under MIT license. You bring your own LLM API keys (or use free Ollama).