Coder AGI is a AI Coder Agent inspired by smol developer, EngineerGPT, Chain Of Thought Paper, ReAct Paper and Tree Of Thought Papers.
- The Planner Agent plan all the actions that should be taken.
- The first objective of the plan is executed by the executer agent.
- The action of the executer agent is evaluated by the evaluator agent.
- If the action is successfull:
- Then all the files created are commited to save the state.
- The executer goes to the next objetive
- Else:
- Git rollback to the initial state of the action.
- The executer uses chain of thought to try a new action with the feedback of the evaluator.
- If the executer fail 5 times, the planner will think a plan to continue the execution
- The execution wil continue until all the objetices are sucessfully completed.
- Create a python virtual environment.
python -m venv venv
- Activate the virtual environment.
# Linux
source venv/bin/activate
# Windows
venv\Scripts\activate
- Install the dependencies
pip install -r requirements.txt
- Add a .env file and add your OpenAI api key
# .env
OPENAI_API_KEY=....
- Add the model and the app description of you project config.json file
# config.json
{
"model": "gpt-3.5-turbo-16k",
"app_description": "Create a django application for a blog api",
"max_steps": 200
}
- Run the agent
python main.py