Skip to content

Coder AGI is a AI Coder Agent inspired by smol developer, EngineerGPT, Chain Of Thought Paper, ReAct Paper and Tree Of Thought Papers.

License

Notifications You must be signed in to change notification settings

marcelloinfante/coder-agi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coder AGI

Coder AGI is a AI Coder Agent inspired by smol developer, EngineerGPT, Chain Of Thought Paper, ReAct Paper and Tree Of Thought Papers.

Arquitecture

  1. The Planner Agent plan all the actions that should be taken.
  2. The first objective of the plan is executed by the executer agent.
  3. The action of the executer agent is evaluated by the evaluator agent.
  4. If the action is successfull:
    1. Then all the files created are commited to save the state.
    2. The executer goes to the next objetive
  5. Else:
    1. Git rollback to the initial state of the action.
    2. The executer uses chain of thought to try a new action with the feedback of the evaluator.
    3. If the executer fail 5 times, the planner will think a plan to continue the execution
  6. The execution wil continue until all the objetices are sucessfully completed.

Quick Start

  1. Create a python virtual environment.
python -m venv venv
  1. Activate the virtual environment.
# Linux
source venv/bin/activate

# Windows
venv\Scripts\activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Add a .env file and add your OpenAI api key
# .env
OPENAI_API_KEY=....
  1. 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
}
  1. Run the agent
python main.py

About

Coder AGI is a AI Coder Agent inspired by smol developer, EngineerGPT, Chain Of Thought Paper, ReAct Paper and Tree Of Thought Papers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages