HiveMind  by Emiyaaaaa

Runtime for multi-agent systems

Created 8 months ago
1,004 stars

Top 36.8% on SourcePulse

GitHubView on GitHub
Project Summary

AgentFlow provides a Python-first runtime layer for multi-agent systems, decoupling orchestration frameworks from essential production concerns like persistent run state, event streaming, and operational tooling. It targets teams transitioning from agent prototypes to inspectable, scalable services, offering a consistent execution model and enabling flexibility across orchestration frameworks like LangGraph, AutoGen, or CrewAI.

How It Works

The system employs a dual-backend architecture for scalability and separation of concerns. A Java/Spring Boot API serves the Next.js frontend, handling REST requests and Server-Sent Events (SSE) for real-time updates. Agent orchestration is managed by Python worker processes that consume jobs from a Redis queue, driving pluggable adapters (e.g., LangGraph) to execute agent logic. All state, including runs, steps, messages, and tool calls, is persisted in PostgreSQL via SQLAlchemy, providing a unified observability surface across different orchestration engines.

Quick Start & Requirements

Requirements include Docker, uv, and Node.js 20+. The target Java API architecture additionally requires JDK 21 and Maven 3.9+. Two setup options are detailed:

  1. Legacy FastAPI: Single-process, in-memory mode using docker compose up -d postgres redis, followed by Python environment setup (uv sync, alembic upgrade head) and frontend setup (npm install, npm run dev).
  2. Java API + Python Worker (Target): Requires infrastructure setup (docker compose --profile java up --build), database migrations (alembic upgrade head), running the worker in queue mode (AGENTFLOW_WORKER_MODE=queue), and separate shells for the Java API (mvn spring-boot:run) and frontend (npm run dev). Example curl commands are provided for creating agents and initiating runs.

Highlighted Details

  • Pluggable Orchestrator Adapters: Supports integrating various agent frameworks (LangGraph, AutoGen, CrewAI, PydanticAI) via a consistent adapter interface without altering the core API or database schema.
  • Persistent Execution Model: Run, Step, Message, ToolCall, and Checkpoint are first-class database entities, ensuring durable run history and a common observability surface.
  • Server-Sent Events (SSE): Emits real-time lifecycle events, allowing clients to stream execution progress without polling.
  • Lightweight Admin Console: A Next.js-based console provides run listing, detail views, step rendering, and live event stream subscription.

Maintenance & Community

The README outlines a roadmap with planned phases for enhanced observability, extensibility (plugins, SDKs), and production features (workflows, RBAC, OpenTelemetry). Specific details on active contributors, sponsorships, or dedicated community channels (e.g., Discord, Slack) are not provided. Contributions are encouraged via issue reporting, adapter implementation, and console improvements.

Licensing & Compatibility

The project is licensed under the Apache 2.0 license, which is permissive and generally suitable for commercial use and integration into closed-source applications.

Limitations & Caveats

The target production architecture involves both Java and Python components. While Phase 1 (Runtime core) is complete, advanced features such as step timelines, retry/resume capabilities, token/cost summaries, plugin registries, and Temporal-backed workflows are slated for future development phases.

Health Check
Last Commit

5 hours ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
4 stars in the last 30 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

SuperAGI by TransformerOptimus

0.1%
18k
Open-source framework for autonomous AI agent development
Created 3 years ago
Updated 1 year ago
Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
8 more.

langgraph by langchain-ai

1.5%
32k
Agent orchestration framework for building controllable agents
Created 2 years ago
Updated 10 hours ago
Starred by Lilian Weng Lilian Weng(Cofounder of Thinking Machines Lab), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
59 more.

AutoGPT by Significant-Gravitas

0.1%
184k
AI agent platform for building, deploying, and running autonomous workflows
Created 3 years ago
Updated 4 hours ago
Feedback? Help us improve.