Skip to main content

Meta Agent 🤖

Python License PyPI

Generate fully-functional AI agents from natural language specifications in minutes.

Meta Agent is a Python CLI tool that automatically produces production-ready OpenAI-powered agents complete with code, tests, and guardrails from simple English descriptions.

🚀 Quick Start

Installation

pip install meta-agent

Create Your First Agent

# Initialize a new project
meta-agent init my-calculator --template hello-world

# Generate an agent from specification
meta-agent generate --spec-file agent_spec.yaml

Example Specification

task_description: |
  Create a calculator agent that can perform basic arithmetic operations.
  The agent should handle addition, subtraction, multiplication, and division.
inputs:
  operation: str  # "+", "-", "*", "/"
  num1: float
  num2: float
outputs:
  result: float
constraints:
  - Must validate division by zero
  - Should handle floating point precision

✨ Key Features

  • 🎯 Natural Language Input: Describe what you want in plain English
  • ⚡ Instant Generation: Get working agents in minutes, not hours
  • 🛡️ Built-in Safety: Automatic guardrails and validation
  • 🧪 Test Generation: Unit tests created automatically
  • 📊 Telemetry: Built-in monitoring and metrics
  • 🔧 Extensible: Template system for custom patterns

🎯 Perfect For

  • AI Engineers building production agents quickly
  • Solutions Architects integrating AI into workflows
  • Rapid Prototypers who need demo-ready agents fast
  • Hobbyists exploring AI without deep coding expertise

📖 Documentation

Core Commands

# Initialize new project
meta-agent init <project-name> [--template <template-name>]

# Generate agent from spec
meta-agent generate --spec-file <path> [--metric cost,tokens,latency]

# Manage templates
meta-agent templates list
meta-agent templates docs

# View telemetry
meta-agent dashboard
meta-agent export --format json

Input Formats

Meta Agent supports multiple input formats:

YAML File:

meta-agent generate --spec-file my_agent.yaml

JSON File:

meta-agent generate --spec-file my_agent.json

Direct Text:

meta-agent generate --spec-text "Create an agent that summarizes documents"

Project Structure

my-project/
├── .meta-agent/
│   └── config.yaml          # Project configuration
├── agent_spec.yaml          # Agent specification
└── generated/              # Generated agent code
    ├── agent.py
    ├── tests/
    └── guardrails/

🏗️ Architecture

Meta Agent uses a sophisticated orchestration system:

  • Planning Engine: Decomposes specifications into tasks
  • Sub-Agent Manager: Coordinates specialized agents
  • Tool Designer: Generates custom tools and functions
  • Guardrail Designer: Creates safety and validation logic
  • Template System: Reusable patterns and best practices

🔧 Development

Requirements

  • Python 3.11+
  • OpenAI API key (for LLM functionality)

Setup

# Clone repository
git clone https://github.com/DannyMac180/meta-agent.git
cd meta-agent

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
pip install -e ".[test]"

# Run tests
pytest

# Run linting
ruff check .
pyright

📊 Examples

Data Processing Agent

task_description: |
  Create an agent that processes CSV files and generates summary reports.
inputs:
  csv_file: str
  columns_to_analyze: list[str]
outputs:
  summary_report: dict
  charts: list[str]

Web Scraping Agent

task_description: |
  Build an agent that scrapes product information from e-commerce websites.
inputs:
  website_url: str
  product_selectors: dict
outputs:
  product_data: list[dict]
constraints:
  - Must respect robots.txt
  - Rate limit to 1 request per second

🔒 Environment Variables

# Required for LLM functionality
export OPENAI_API_KEY="your-api-key-here"

# Optional: Custom OpenAI base URL
export OPENAI_BASE_URL="https://your-proxy.com/v1"

# Optional: Enable debug logging
export META_AGENT_DEBUG=true

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Run the test suite (pytest)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built on the OpenAI SDK
  • Inspired by the growing need for rapid AI agent development
  • Thanks to the open-source community for foundational tools

📞 Support


Made with ❤️ by developers, for developers building the AI-powered future.

Metadata

Release files for meta-agent-cli 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meta-agent-cli 1.0.1
File Size Uploaded Provenance
meta_agent_cli-1.0.1.tar.gz 405.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for meta-agent-cli 1.0.1
File Interpreter ABI Platform
meta_agent_cli-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 548.5 kB

Release files / meta_agent_cli-1.0.1.tar.gz

Download URL meta_agent_cli-1.0.1.tar.gz
Size 405.4 kB
Tags Source
SHA-256 checksum
How to use checksums
286357c6a10f061562cb016ab67b3ed5d602bef5effecd586b9caf708ef27334
BLAKE2b-256 checksum
How to use checksums
397e9deb94dea99f9e3fa4402d715f4e492955bd16f862e831df8abae8219a39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / meta_agent_cli-1.0.1-py3-none-any.whl

Download URL meta_agent_cli-1.0.1-py3-none-any.whl
Size 143.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b303014ff981befd98506e1b7282bdb4663a5bc5e153eabe9ccb781201c8c32
BLAKE2b-256 checksum
How to use checksums
6a445cb846246ed528d96feaee1390e85a558a7edc5223fc38a2a5a6488e87e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Security for meta-agent-cli 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page