Skip to content
AgentOpen-source agent

microagents

Experimental framework that generates, validates and reuses small task agents

microagents is an open-source agent for ai models and llm tooling. It is available on CLI, Web, Self-hosted and API.

Pricing
Open source
Platforms
CLI, Web, Self-hosted
GitHub stars
820
Last commit
Language
Python
License
MIT

Similar agents

About microagents

Instead of shipping a fixed set of tools, Microagents writes a small Python agent on the fly when a task needs one. Each generated agent is run, checked by a separate validation step, and only kept in a local SQLite store if it actually works. Later chats can reuse those stored agents, so the system accumulates capabilities over time.

The project runs on OpenAI GPT-4 Turbo with text-embedding-ada-002, and it can also be pointed at Azure OpenAI using either an API key or Entra ID. When a new agent is needed, several candidates are spawned in parallel and the first one to complete its task is kept. The generated code executes directly on the host without a sandbox, so the README recommends running it in Codespaces or Docker.

It suits developers and researchers who want to experiment with self-extending agents, or who want to study how agent catalogues grow across sessions. A command-line interface and a Gradio web interface are both included.

What it does

Dynamic agent generation
Creates a new Python agent in response to a task instead of relying on predefined tools.
Validation before reuse
A judge phase checks that a generated agent works before it is added to the catalogue.
Persistent agent store
Working agents are saved in SQLite so they can be reused across runs and chat sessions.
Parallel candidate agents
Three agents are spawned for each new task and the first successful one is retained.
Azure and OpenAI support
Works with the OpenAI API or Azure OpenAI using an API key or Entra ID authentication.
CLI and web interfaces
Offers a console interface through textual-app.py and a Gradio-based web interface.

Good for

  • Experimenting with agents that write and reuse their own helper code
  • Fetching weather forecasts or IP-based location data through generated scripts
  • Studying how an agent catalogue grows and improves across chat sessions
  • Prototyping task automation on top of OpenAI or Azure OpenAI models

Pricing

Open source

Free and open source; you pay OpenAI or Azure for model usage.

microagents FAQ

Do I need an OpenAI account to run microagents?

Yes. The setup requires access to gpt-4-turbo and text-embedding-ada-002 through either OpenAI or Azure OpenAI.

Is the generated code run in a sandbox?

No. Microagents execute Python code directly, so the README recommends isolated environments such as Codespaces or Docker.

How do I reset the stored agents?

Delete the agents.db file and all stored agents are removed.

Which license does microagents use?

The project is distributed under the MIT License.

Is microagents free?

Yes. microagents is open source, so you can use and self-host it for free.

What are the best alternatives to microagents?

The closest alternatives to microagents are pydantic-deepagents, mini-agi, atomic-agents, DemoGPT and Agentlas-OS.

Where this comes from

  • Description: written from the project's README.