This is an experimental project implementing an agentic code assistant inspired by Deepagent-style architectures. Deep Agents are an advanced agent architecture designed for handling complex, multi-step tasks that require sustained reasoning, tool use, and memory. Unlike traditional agents that operate in short loops or perform simple tool calls, Deep Agents plan their actions, manage evolving context, delegate subtasks to specialized sub-agents, and maintain state across long interactions. This architecture is already powering real-world applications like Claude Code, Deep Research, and Manus. It features a central orchestrator agent that coordinates specialised subagents (explorers and coders) to tackle complex software tasks through strategic delegation, verification, and knowledge sharing.
- User submits a complex coding task
- Orchestrator analyzes and breaks it down
- Orchestrator launches Explorer to investigate the codebase
- Explorer reports findings to Context Store
- Orchestrator launches Coder with all necessary context
- Coder implements changes and reports back
- Orchestrator verifies and returns results to User or requests further exploration/coding as needed
Key Innovation: The Context Store enables agents to share knowledge, eliminating redundant work and building compound intelligence.
- Submits high-level tasks to the system
- Receives final results from the orchestrator
The Strategic Brain
- No direct code access - Forces proper delegation
- Analyzes tasks and creates strategic plans
- Decomposes complex tasks into subtasks
- Manages the Context Store (knowledge base)
- Tracks all tasks via Task Store
- Verifies work through explorer agents
Read-Only Investigation Specialist
- Read-only access to the codebase
- Investigates system behavior
- Verifies implementations
- Runs tests and gathers information
- Creates knowledge artifacts for the Context Store
Implementation Specialist
- Full write access to the codebase
- Implements features and fixes bugs
- Makes code modifications
- Reports changes back with contexts
Persistent Knowledge Base
- Stores discovered information
- Enables knowledge sharing across agents
- Eliminates redundant work
- Builds compound intelligence
Progress Tracker
- Tracks all subagent tasks
- Maintains task status (pending/completed/failed)
- Enables failure recovery
- Provides audit trail
- Knowledge Accumulation: Every discovery becomes a permanent building block
- No Redundant Work: Agents never rediscover the same information
- Focused Execution: Each agent receives only the contexts it needs
- Orchestrator's lack of code access forces proper task decomposition
- Encourages strategic thinking over quick fixes
- Creates clear separation of concerns
- Multiple specialized agents working together
- Each action builds meaningfully on previous discoveries
- Exponential problem-solving capability through knowledge sharing
- Explorer agents verify all implementations
- Test execution and validation built into the workflow
- Ensures quality through systematic checking
-
User: "Add authentication to the API"
-
Orchestrator:
- Analyzes the task
- Launches Explorer to find existing auth patterns
- Stores findings in Context Store
-
Explorer Reports:
- Found existing user model
- Located database configuration
- Identified auth library in use
-
Orchestrator:
- Launches Coder with all contexts
- Provides specific implementation instructions
-
Coder Implements:
- Adds auth middleware
- Updates routes
- Reports changes with contexts
-
Orchestrator:
- Launches Explorer to verify
- Checks if tests pass
- Validates implementation
-
Explorer Verifies:
- Tests run successfully
- Auth endpoints working
- Reports confirmation
-
Orchestrator: Returns success to user
Ensure you set the LITE_LLM_API_KEY environment variable. The default model is openai/gpt-5.
For dev:
uv venv
source .venv/bin/activate
uv sync
uv pip install -e ".[dev]"
python test/real_advanced_task.pyTo quickly test various models: See /test

