A robust system of AI agents that collaborate to plan and develop software projects.
-
Planner Agent
- Brainstorms business ideas
- Creates detailed technical roadmaps
- Handles project planning and specifications
- Maintains conversation history
- Provides structured analysis and recommendations
-
Developer Agent
- Analyzes technical requirements
- Creates implementation plans
- Generates code with documentation
- Performs code reviews
- Maintains development conversation history
-
Main System
- FastAPI backend for agent orchestration
- Async task processing
- Project status tracking
- Error handling and logging
- Chat history management
- Install dependencies:
pip install -r AI_Agent_System/backend/requirements.txt- Set up environment variables in
config/.env:
OPENROUTER_API_KEY=your_api_key_hereRun the agent interaction test script:
python AI_Agent_System/tests/test_agents.pyThis will:
- Generate business ideas
- Create development plans
- Analyze requirements
- Generate sample code
- Perform code review
- Save chat histories for analysis
Chat histories are saved in AI_Agent_System/logs/ with timestamps for review.
GET /- Health checkPOST /projects/- Start a new projectGET /projects/{project_id}- Get project statusPOST /projects/{project_id}/feedback- Provide feedbackGET /projects/{project_id}/chat_history- Get agent chat histories
Start a new project:
POST /projects/
{
"project_type": "web_application",
"requirements": "Create a task management system",
"constraints": {
"technology": "Python/FastAPI",
"timeline": "2 weeks"
}
}Provide feedback:
POST /projects/{project_id}/feedback
{
"feedback": "Add authentication system and user roles"
}-
Conversation Memory
- Both agents maintain chat histories
- Context-aware responses
- Traceable decision-making
-
Structured Output
- Detailed analysis and plans
- Code generation with documentation
- Comprehensive code reviews
-
Error Handling
- Robust error catching and logging
- Status tracking for each project stage
- Detailed error reporting
-
Async Processing
- Background task execution
- Non-blocking API endpoints
- Progress tracking
-
Project Refinement
- Feedback incorporation
- Plan iteration
- Continuous improvement
-
Planner Agent:
- Generates business ideas
- Creates technical specifications
- Refines plans based on feedback
-
Developer Agent:
- Analyzes requirements
- Creates implementation plans
- Generates and reviews code
-
System:
- Orchestrates agent interactions
- Tracks project progress
- Manages chat histories
- Handles errors and logging
-
Testing
- Run local tests before deployment
- Review chat histories for quality
- Verify agent interactions
-
Monitoring
- Check system logs regularly
- Monitor project statuses
- Review chat histories
-
Maintenance
- Keep dependencies updated
- Review and clean logs
- Monitor API performance
- Integration with version control
- Enhanced error recovery
- More specialized agent roles
- Advanced project analytics
- Real-time progress updates