An AI-powered application that uses specialized models for planning, coding, and checking code to implement solutions based on user requests.
This application leverages free AI models from OpenRouter to create a comprehensive development assistant with specialized capabilities:
- Planning Agent: Analyzes requests, researches solutions, and creates detailed plans
- Coding Agent: Implements solutions based on the planning agent's instructions
- Checking Agent: Verifies code functionality and suggests improvements
- Multi-model orchestration with fallback options
- Virtual code execution environment for testing
- Detailed planning and code analysis
- Simple command-line interface
-
Clone this repository:
git clone https://github.com/yourusername/ai-agent.git cd ai-agent -
Install the required dependencies:
pip install -r requirements.txt -
Set up your OpenRouter API key:
export OPENROUTER_API_KEY="your_api_key_here"
-
Run the application:
python main.py -
Enter your coding or development request at the prompt.
-
The system will:
- Analyze and plan a solution
- Generate code to implement it
- Check and test the code
- Show you the results
-
Type
saveafter getting results to save all generated files to your current directory.
Edit the files in the config directory to:
- Change the models used by each agent
- Adjust system parameters
- Configure model parameters
ai-agent/
├── main.py # Entry point
├── core/ # Core engine components
├── agents/ # Specialized agents
├── utils/ # Utility functions
├── config/ # Configuration files
└── ui/ # User interface
- Python 3.8 or higher
- OpenRouter API key
- Internet connection
MIT License
This project uses models from OpenRouter (https://openrouter.ai/).