micro-agent  by pHaeusler

Tiny autonomous agent for software engineering research

created 2 years ago
444 stars

Top 68.7% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a minimal, state-machine-driven autonomous agent for software development tasks, powered by OpenAI's GPT-4. It's designed for researchers and developers experimenting with AI agent capabilities, offering a foundational framework for LLM-driven code generation and modification.

How It Works

The agent operates as a finite state machine, where each state executes a specific action and determines the next state. The core MAIN state leverages an LLM to select the subsequent action, such as modifying files, adding files, or running tests. This approach allows the agent to iteratively build and test software based on a defined "purpose."

Quick Start & Requirements

  • Install via python run.py.
  • Requires an OPENAI_API_KEY environment variable.
  • Python 3.x.

Highlighted Details

  • Demonstrates autonomous code generation and modification for a Python terminal-based guessing game.
  • Includes an example of the agent creating a file, modifying it, and then writing and running tests.
  • Agent can update its task but not its core purpose.
  • Agent struggles with writing accurate tests, particularly those involving numeric comparisons.

Maintenance & Community

No specific community channels, contributors, or roadmap are detailed in the README.

Licensing & Compatibility

The README does not specify a license.

Limitations & Caveats

The agent has significant limitations, including difficulty in writing comprehensive tests for complex applications (web, terminal, REST) and a tendency to err on numeric comparisons in tests. Future work includes adding file-peeking, self-reflection, and documentation loading states.

Health Check
Last commit

2 years ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Steven Hao Steven Hao(Cofounder of Cognition), and
6 more.

openai-agents-python by openai

1.5%
13k
Python SDK for multi-agent workflows
created 4 months ago
updated 1 day ago
Starred by Zhiqiang Xie Zhiqiang Xie(Author of SGLang), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

swarm by openai

0.3%
20k
Multi-agent orchestration framework for lightweight agent coordination
created 1 year ago
updated 4 months ago
Feedback? Help us improve.