Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mini-agi

> DevOps
Open source

MiniAGI is a simple general-purpose AI agent based on the OpenAI API.

2.9K stars0 likes2 views
WebsiteGitHub

About

MiniAGI is a simple general-purpose AI agent based on the OpenAI API.

MiniAGI

MiniAGI is a simple autonomous agent compatible with GPT-3.5-Turbo and GPT-4. It combines a robust prompt with a minimal set of tools, chain-of-thoughts, and short-term memory with summarization. It is also capable of inner monologue and self-criticism.

Installation

bash
git clone https://github.com/muellerberndt/mini-agi
cd mini-agi
pip install -r requirements.txt
cp .env_example .env

Note that Python 3.10 or higher is required.

Usage

bash
python miniagi.py <objective>

For example:

bash
python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."

Enabling the critic

The critic may improve accuracy of the agent at the cost of additional API requests. To activate it set ENABLE_CRITIC to true in your env.

Advanced usage

  • Docs for advanced users

Safety and privacy advisory: The agent may inadvertently suggest harmful commands or code. Proceed with caution and use at your own discretion. Be aware that, depending on your settings and requirements, the agent might share your data with third-party API providers such as OpenAI.

Examples

Draw a beautiful car

% python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."

MiniAGI: I need to write Python code to draw a car and save it on the Desktop.
Cmd: execute_python, Arg: "from PIL import Image, ImageDraw\nimport os\n\n# Create canvas\nwidt..."

Objective achieved.

Create a website and serve it

…

Go earn some money online

…

Create a game

…

Network penetration test

…

Taking over the world

…

Create generative art

 % python miniagi.py "Create a beautiful generative artwork in an image format of your choice and save it on my Desktop"
MiniAGI: First, I will install necessary python packages for creating the artwork.
Cmd: execute_shell, Arg: "pip install numpy pillow"

MiniAGI: Generate a beautiful generative artwork using Python and save it on the user's Desktop
Cmd: execute_python, Arg: "from PIL import Image, ImageDraw\nimport random\nfrom pathlib impo..."

Objective achieved.

Creating a PDF with summaries of the latest Picard episodes

…

Ordering Salami pizza (it cheated on this one)

…

Ordering Salami pizza (for real this time)

…

I didn't continue from here as I don't have an Uber Eats API key.

Bitcoin price analysis (works but keep in mind that TA is nonsense)

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagentagiartificial-intelligencegpt-3

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理