Skip to main content

Automagik Hive

Project description

Automagik Hive Logo

Production-Ready Multi-Agent AI in Minutes, Not Months

๐ŸŽฏ The Only Framework Where YAML Creates Production-Ready AI Teams
One-click install with database, memory, RAG, and orchestration included.
From zero to intelligent AI systems in 5 minutes.

PyPI version Python 3.12+ Downloads CI/CD Pipeline Docker Image License Discord Roadmap

Features โ€ข Quick Start โ€ข Roadmap โ€ข Development โ€ข Contributing


๐Ÿš€ What is Automagik Hive?

Automagik Hive is a production-ready multi-agent orchestration platform that transforms weeks of infrastructure setup into a single command. Built on Agno's blazing-fast core (3ฮผs agent instantiation), Hive is the difference between building a house from scratch and moving into one that's already furnished.

๐Ÿญ The Problem We Solve

The Reality of AI Development:

Week 1: Setup PostgreSQL + pgvector
Week 2: Configure authentication
Week 3: Build RAG system
Week 4: Implement agent coordination
Week 5: Add hot reload
Week 6: Write deployment scripts
Result: Still not production-ready ๐Ÿ˜ฐ

With Automagik Hive:

curl -sSL https://raw.githubusercontent.com/namastexlabs/automagik-hive/main/install.sh | bash
automagik-hive dev

# 5 minutes later: Production-ready AI agents running โœจ

โœจ What Makes Hive Different

Other Frameworks Make You Choose:

  • โŒ Simple YAML configs OR production-ready systems
  • โŒ Fast prototyping OR enterprise features
  • โŒ Easy setup OR powerful capabilities

Hive Gives You Everything:

  • โœ… YAML-First Configuration - No complex code needed
  • โœ… Production-Ready Out of the Box - Database, auth, monitoring included
  • โœ… True Multi-Agent Coordination - Not just chained tool calls
  • โœ… One-Click Install - Complete environment in minutes
  • โœ… Hot Reload - Changes apply without restarting
  • โœ… Built on Agno - 3ฮผs agent instantiation, 6.5KB memory per agent

๐ŸŒŸ Key Features

๐Ÿš€ One-Click Production Environment

Complete stack ready in minutes: PostgreSQL + pgvector, authentication, logging, metrics, and deployment scripts. No weeks of DevOps work.

๐Ÿ“ YAML-First Agent Design

agent:
  name: "Customer Support"
  model: "gpt-4"

instructions: |
  You help customers with billing and account issues.

knowledge_filter:
  business_unit_filter: "customer_support"

Create sophisticated agents without touching Python. Extend with code only when needed.

๐Ÿ”„ Hot Reload Everything

Change configurations, update knowledge bases, modify agents - all without restarting. Deploy updates with zero downtime.

๐Ÿง  Built-in RAG System

CSV-based knowledge with pgvector, automatic vectorization, business unit filtering, and Portuguese optimization. Drop a CSV file, get intelligent retrieval.

โšก Powered by Agno's Speed

  • 3 microseconds agent instantiation (spawn 1000s instantly)
  • 6.5KB memory per agent (entire teams on minimal infrastructure)
  • True coordination - Shared context and memory, not tool calling

๐Ÿค– Three-Layer Intelligence

๐Ÿงž GENIE TEAM โ†’ Strategic coordination
    โ†“
๐ŸŽฏ DOMAIN ORCHESTRATORS โ†’ genie-dev, genie-testing, genie-quality
    โ†“
๐Ÿค– EXECUTION AGENTS โ†’ Specialized workers with 30-run memory

๐Ÿ”Œ Model Context Protocol (MCP)

Native integration with external services: WhatsApp, databases, APIs, and tools. Extend agents beyond their boundaries.

๐Ÿ“Š Enterprise Features Included

  • PostgreSQL with auto-schema migration
  • API key authentication
  • Structured logging with emoji enrichment
  • Metrics and monitoring
  • Docker deployment ready
  • Multi-tenancy support

๐ŸŽญ How It Works

From YAML to Running Agent in 30 Seconds

# ai/agents/support-agent/config.yaml
agent:
  name: "Customer Support"
  agent_id: "support-agent"
  version: "1.0.0"

model:
  provider: "anthropic"
  id: "claude-sonnet-4"

instructions: |
  You are a friendly customer support agent.
  Help users with billing questions using the knowledge base.

knowledge_filter:
  business_unit_filter: "customer_support"

storage:
  table_name: "support_sessions"
# Start the system
automagik-hive dev

# Your agent is live at:
# http://localhost:8886/agents/support-agent/run

Extend with Python When Needed

# ai/agents/support-agent/agent.py
from agno.agent import Agent

def get_support_agent(**kwargs) -> Agent:
    config = yaml.safe_load(open("config.yaml"))

    agent = Agent.from_yaml("config.yaml")

    # Add custom tools when needed
    agent.add_tool(check_billing_system)
    agent.add_tool(create_support_ticket)

    return agent

The Power: Start with YAML, extend with Python. No rewrites, no migrations, no platform lock-in.


๐Ÿ“Š Built by Practitioners

We created Automagik Hive at Namastex Labs after building multi-agent systems for clients from startups to Fortune 500. We were tired of:

  • ๐Ÿ” Rewriting boilerplate for every project
  • ๐Ÿšซ "Multi-agent" tools that were just chained agents with flaky tool calling
  • โš ๏ธ Prototypes requiring complete rewrites for production

In Production: Powering hundreds of agents for real businesses Battle-Tested: From startup MVPs to enterprise-scale deployments Continuously Improved: We use this daily, so we keep it working


๐ŸŽฏ Who Uses Hive?

๐Ÿ‘จโ€๐Ÿ’ป Individual Developers

Tired of: Writing 1000 lines of boilerplate for simple agents With Hive: YAML config โ†’ Working agent in 5 minutes Result: Ship AI features 10x faster

๐Ÿข Product Teams

Tired of: Waiting weeks for dev resources to prototype With Hive: Configure โ†’ Test โ†’ Iterate immediately Result: Validate ideas before writing code

๐Ÿš€ Enterprises

Tired of: Prototypes that can't scale to production With Hive: Same YAML from prototype to millions of requests Result: Innovation at startup speed, enterprise reliability

๐Ÿ› ๏ธ CTOs & Tech Leads

Tired of: Months of infrastructure work before value delivery With Hive: Complete stack included, focus on business logic Result: 95% faster time-to-production


๐Ÿ“ฆ Quick Start

Prerequisites

  • Python 3.12+
  • One AI provider key (Anthropic, OpenAI, Google, etc.)
  • Docker is OPTIONAL (only required for PostgreSQL backend)

Note: Automagik Hive now uses PGlite as the default database backend, eliminating Docker as a requirement. See Database Backend Selection for details.

One-Line Installation

# Install with PGlite (default - no Docker required)
curl -sSL https://raw.githubusercontent.com/namastexlabs/automagik-hive/main/install.sh | bash

# Start development server
automagik-hive dev

# Open http://localhost:8886 ๐ŸŽ‰

Backend Selection: PGlite is the recommended default. See Database Backend Selection for SQLite and PostgreSQL options.

Manual Installation

# Clone repository
git clone https://github.com/namastexlabs/automagik-hive.git
cd automagik-hive

# Install with PGlite backend (recommended - no Docker)
make install-pglite

# Or install with SQLite backend (alternative - no Docker)
make install-sqlite

# Or install with PostgreSQL backend (requires Docker)
make install-postgres

# Start development server
make dev

Backend Options:

  • make install-pglite - PGlite backend (default, no Docker required)
  • make install-sqlite - SQLite backend (minimal dependencies)
  • make install-postgres - PostgreSQL backend (requires Docker)

See Database Backend Selection for detailed comparison.

Create Your First Agent

# Copy template
cp -r ai/agents/template-agent ai/agents/my-agent

# Edit config
nano ai/agents/my-agent/config.yaml

# Restart server (or wait for hot reload)
# Your agent is now live!

๐Ÿ—„๏ธ Database Backend Selection

Automagik Hive supports three database backends to match your deployment needs:

PGlite (Default - Recommended)

WebAssembly-based PostgreSQL - Full PostgreSQL compatibility without Docker.

Best For:

  • Development and prototyping
  • Small-to-medium deployments
  • Browser-compatible applications
  • Quick setup and iteration

Advantages:

  • โœ… No Docker required
  • โœ… Fast installation (<1 minute)
  • โœ… Full PostgreSQL feature set
  • โœ… Browser-compatible engine
  • โœ… Simple file-based storage

Installation:

make install-pglite
# or
automagik-hive install --backend pglite

Configuration:

HIVE_DATABASE_BACKEND=pglite
HIVE_DATABASE_URL=pglite://./data/automagik_hive.db

SQLite (Development/Testing Only)

โš ๏ธ CRITICAL LIMITATION: SQLite CANNOT persist agent sessions or user memory. Agents will forget user context between requests. Use PGlite instead for development with full agent memory support.

Simple file-based database - Use ONLY for stateless testing or CI/CD pipelines.

Best For:

  • CI/CD integration tests (stateless agents)
  • Quick prototyping (no memory requirements)
  • Minimal dependency environments

What Works:

  • โœ… Database CRUD operations
  • โœ… Stateless agent responses
  • โœ… Tool execution
  • โœ… API endpoints

What DOESN'T Work (Critical):

  • โŒ Agent memory - Users forgotten between requests
  • โŒ Session persistence - No conversation history
  • โŒ Multi-turn conversations - No context retention
  • โŒ PgVector embeddings - No vector search

Additional Limitations:

  • โŒ Limited concurrent write support
  • โŒ No advanced PostgreSQL features

โš ๏ธ NOT RECOMMENDED: Use PGlite for development instead.

Installation:

make install-sqlite
# or
automagik-hive install --backend sqlite

Configuration:

HIVE_DATABASE_BACKEND=sqlite
HIVE_DATABASE_URL=sqlite:///./data/automagik_hive.db

PostgreSQL (Optional)

Production-grade database - Full PostgreSQL with Docker orchestration.

Best For:

  • Production deployments
  • High concurrency workloads
  • Large-scale knowledge bases
  • Advanced vector search

Advantages:

  • โœ… Production-grade reliability
  • โœ… Best concurrent performance
  • โœ… Advanced indexing (HNSW)
  • โœ… Full pgvector optimization

Requirements:

  • Docker 20.10+
  • Docker Compose 2.0+

Installation:

make install-postgres
# or
automagik-hive install --backend postgresql

Configuration:

HIVE_DATABASE_BACKEND=postgresql
HIVE_DATABASE_URL=postgresql+psycopg://user:password@localhost:5532/hive

Backend Comparison

Feature PGlite SQLite PostgreSQL
Agent Memory/Sessions โœ… Full Support โŒ NOT SUPPORTED โœ… Full Support
Docker Required โŒ No โŒ No โœ… Yes
Setup Time <1 min <1 min 2-3 min
Concurrent Writes โœ… Good โš ๏ธ Limited โœ… Excellent
Vector Search โœ… Good โŒ None โœ… Excellent
Production Ready โœ… Yes* โŒ No โœ… Yes
Browser Compatible โœ… Yes โŒ No โŒ No
Memory Footprint ~50MB ~10MB ~100MB
Recommended For Development & Production CI/CD Testing Only Large Production

* PGlite is production-ready for small-to-medium deployments

Switching Backends

You can switch backends at any time:

# Update .env file
HIVE_DATABASE_BACKEND=pglite  # or sqlite, postgresql
HIVE_DATABASE_URL=<backend-specific-url>

# Restart application
make dev

Schema migrations run automatically. Session history and runtime data will reset.

For detailed migration instructions, see: PGlite Migration Guide


๐Ÿ”ง Architecture That Scales

Project Structure

your-project/
โ”œโ”€โ”€ ai/
โ”‚   โ”œโ”€โ”€ agents/               # Your AI agents
โ”‚   โ”‚   โ””โ”€โ”€ my-agent/
โ”‚   โ”‚       โ”œโ”€โ”€ config.yaml   # Agent configuration
โ”‚   โ”‚       โ””โ”€โ”€ agent.py      # Optional Python extensions
โ”‚   โ”œโ”€โ”€ teams/                # Multi-agent teams
โ”‚   โ”‚   โ””โ”€โ”€ support-team/
โ”‚   โ”‚       โ””โ”€โ”€ config.yaml   # Routing logic
โ”‚   โ””โ”€โ”€ workflows/            # Business workflows
โ”‚       โ””โ”€โ”€ order-process/
โ”‚           โ””โ”€โ”€ config.yaml   # Step definitions
โ”œโ”€โ”€ knowledge/                # RAG knowledge base
โ”‚   โ””โ”€โ”€ knowledge_rag.csv     # Your knowledge data
โ””โ”€โ”€ .env                      # Configuration

API Endpoints (Auto-Generated)

Every agent, team, and workflow automatically gets REST endpoints following Agno v2 semantics:

# Health and system
GET  /api/v1/health
GET  /api/v1/mcp/status
GET  /api/v1/mcp/servers

# Versioning (components and versions)
GET  /api/v1/version/components
POST /api/v1/version/execute

# Workflow execution
POST /v1/workflows/{workflow_id}/run

# Knowledge management
POST /v1/knowledge/upsert
GET  /v1/knowledge/search

Agent/team/workflow execution endpoints are auto-generated by Agno's Playground integration and may differ by configuration. See api/CLAUDE.md for details on the unified router and Playground mounting strategy.


๐ŸŽจ Real-World Examples

Example 1: Customer Support Router

# ai/teams/support-router/config.yaml
team:
  name: "Customer Support Router"
  team_id: "support-router"
  mode: "route"  # Automatic intelligent routing

members:
  - "billing-specialist"
  - "technical-support"
  - "sales-specialist"

instructions:
  - "Route billing questions to billing-specialist"
  - "Route technical issues to technical-support"
  - "Route sales inquiries to sales-specialist"

Result: 24/7 support, 70% query resolution without human intervention

Example 2: Order Processing Workflow

# ai/workflows/order-fulfillment/config.yaml
workflow:
  name: "Order Fulfillment"

steps:
  - name: "Validate Order"
    agent: "validator"

  - name: "Process Payment"
    parallel:
      - agent: "payment-processor"
      - agent: "fraud-checker"
      - agent: "inventory-checker"

  - name: "Ship Order"
    agent: "shipping-coordinator"

  - name: "Send Confirmation"
    agent: "notifier"

Result: 3x faster processing, automatic fraud detection

Example 3: Knowledge-Powered Agent

# ai/agents/analyst/agent.py
from lib.knowledge import get_knowledge_base

def get_analyst_agent(**kwargs):
    # Shared thread-safe knowledge base
    knowledge = get_knowledge_base(
        num_documents=5,
        csv_path="knowledge/company_data.csv"
    )

    return Agent(
        name="Data Analyst",
        knowledge=knowledge,  # Automatic RAG
        instructions="Analyze data and provide insights",
        **kwargs
    )

Result: Instant access to company knowledge, always up-to-date


๐Ÿ›ก๏ธ Enterprise-Grade Features

Security & Authentication

  • API key authentication with cryptographic validation
  • User context management and session security
  • Message validation and size limits
  • Production-hardened defaults

Database & Storage

  • PostgreSQL + pgvector for production
  • SQLite fallback for development
  • Auto-schema migration
  • Connection pooling and optimization

Monitoring & Observability

  • Structured logging with emoji enrichment
  • Metrics collection and export
  • Health check endpoints
  • Performance tracking

Deployment Options

  • Docker-ready with compose files
  • Kubernetes examples provided
  • Environment-based scaling
  • Zero-downtime updates with hot reload

๐Ÿ› ๏ธ Development

Interested in contributing? Check our comprehensive documentation:

Development Workflow

# Install dev dependencies
uv sync

# Run tests
uv run pytest

# Run linting
uv run ruff check --fix

# Run type checking
uv run mypy .

# Start dev server
make dev

# View logs
make logs

๐Ÿ—บ๏ธ Roadmap

Completed โœ…

  • YAML-first agent configuration
  • Python extensibility
  • Auto-generated REST APIs
  • PostgreSQL + pgvector RAG
  • Docker deployment
  • Hot reload system
  • Three-layer orchestration (Genie โ†’ Orchestrators โ†’ Execution)

Next Up ๐Ÿš€

  • Visual Workflow Builder - Drag-and-drop interface for workflows
  • Agent Marketplace - Community templates and certified agents
  • Enhanced GENIE - Natural language agent creation
  • Multi-Tenancy - Enterprise isolation and governance
  • Cloud Deployment - One-click cloud hosting

Future Vision ๐ŸŒŸ

  • Hive Cloud - Fully managed SaaS offering
  • Mobile SDKs - Native iOS and Android support
  • AI Marketplace - Buy and sell agents
  • Industry Verticals - Pre-built solutions for legal, medical, finance
  • Advanced Analytics - Usage patterns and optimization insights

๐Ÿค Contributing

We love contributions! Whether it's bug fixes, new features, or documentation improvements:

  1. Discuss First: Open an issue before starting work
  2. Align with Roadmap: Ensure changes fit our vision
  3. Follow Standards: Match existing code patterns
  4. Test Thoroughly: Include tests for new features
  5. Document Well: Update docs with your changes

See CONTRIBUTING.md for detailed guidelines.


๐Ÿ™ Acknowledgments

Built with โค๏ธ by Namastex Labs using:

Special thanks to our early adopters and contributors who helped shape Hive into the production-ready platform it is today.


๐Ÿ“„ License

MIT License - see LICENSE file for details.


๐Ÿ”— Links


๐Ÿš€ Stop spending weeks on infrastructure. Start building AI that matters.
From Zero to Production-Ready AI in 5 Minutes

Star us on GitHub โ€ข Join our Discord

Made with โค๏ธ by Namastex Labs
AI that elevates human potential, not replaces it

Ask DeepWiki

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automagik_hive-0.2.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automagik_hive-0.2.0-py3-none-any.whl (419.9 kB view details)

Uploaded Python 3

File details

Details for the file automagik_hive-0.2.0.tar.gz.

File metadata

  • Download URL: automagik_hive-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for automagik_hive-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0b3f968a47722c06bc19099d6a9660d450743c6ebade173c7c1d9d63087267cb
MD5 f5fe6e14ab1fbad06af73f5642cbe63c
BLAKE2b-256 f2f98b55e753e5192cd1959d2dce270ab03c82eaa81ea63589c766d6d9506102

See more details on using hashes here.

Provenance

The following attestation bundles were made for automagik_hive-0.2.0.tar.gz:

Publisher: publish-pypi.yml on namastexlabs/automagik-hive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file automagik_hive-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: automagik_hive-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 419.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for automagik_hive-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65ff3f4738346605891fedd07d2a48f3ad56d1ec4ac80b2caf19410279f37541
MD5 8d43e26b92e36f392c607ef3840057c8
BLAKE2b-256 899db724117ab431a5bacc00e4a27b5f53baa8711370edbfc42d7b288eb316d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for automagik_hive-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on namastexlabs/automagik-hive

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page