hive README

The project's README from github.com/aden-hive/hive. As one markdown file: README.md.

OpenHive. Describe the outcome; a queen agent grows the colony that gets it done.

English | 简体中文 | Español | हिन्दी | Português | 日本語 | Русский | 한국어

Apache 2.0 License Y Combinator Discord Follow on X LinkedIn

An open-source runtime for colonies of AI agents that do real business work.

Tell a queen agent what you need. She does the first piece herself to learn what the job takes, then hands the rest to as many parallel workers as it needs. Every result lands in a shared tracker you can query, audit and resume from.

Demo: a growth queen researches five products' Hacker News launches with a colony of parallel workers
A real run. Only the typing and the waiting are sped up, and the badge says by how much. Watch the full run (MP4).

What you just watched

A growth team preparing a Show HN wants to know how five developer tools' own launches did on Hacker News. Here's what Hive did with that one message:

  1. You hand it to a queen. Queens are long-lived agents with a role (here, Head of Growth) and their own memory and tools.
  2. She asks the one question that changes the answer: every launch post, or only each product's original launch? You pick every launch, and she carries on.
  3. She proposes a colony, and you approve it. Five products means five parallel jobs, so the chat becomes a colony: the queen plus as many worker agents as the work needs.
  4. She does one herself. She takes PostHog first, works out what counts as a genuine launch post rather than a passing mention, checks the numbers against the Hacker News API, and saves the method as a reusable skill.
  5. She fans out. A playbook starts one worker per product. Each follows her skill and writes its result to the colony's tracker, a shared SQLite table.
  6. She checks every row before she answers, and fixes one. Cal.com's worker counted a post from its old name, Calendso, but that post wasn't a Show HN, Launch HN or YC launch. She clears the row, and the chart shows Cal.com as not found rather than zero.

None of this was wired up in advance. There's no workflow graph to draw: the queen shapes the colony as the work unfolds, and a tracker on disk, not a context window, keeps count of what's done and what's left.

Quick start

You'll need Python 3.11+, Node.js 20+ and git. The quickstart installs uv and ripgrep if they're missing, and offers to install Node.

And a model. The quickstart sets up any of these:

git clone https://github.com/aden-hive/hive.git
cd hive
./quickstart.sh          # macOS / Linux
.\quickstart.ps1         # Windows (PowerShell 5.1+)

The quickstart creates a single Python environment for the workspace, stores your API key encrypted under ~/.hive, asks which model to use, builds the dashboard and opens it at http://127.0.0.1:8787. Next time, run hive open from the repository.

[!NOTE] This repository is a uv workspace: pip install -e . at its root installs a placeholder that won't run, so use the quickstart. Without the repository, pip install "aden-hive[tools]" installs Hive from PyPI; then run hive open. To add an optional package (a chat-app channel, for example), see Optional packages. To build your own project on Hive's agent loop and models, depend on aden-hive: see Building on Hive.

Then type a task on the home screen and choose the queen to give it to, or open the Prompt Library and send a ready-made prompt straight to the queen it was written for.

How it works

flowchart LR
    You(["You"]) -->|"describe the outcome"| Queen["Queen<br/>(persistent agent)"]
    Queen -->|"proposes a colony,<br/>you approve"| Pilot["Pilot<br/>(one unit, done by the queen)"]
    Pilot -->|"saves the method"| Skill["Skill + playbook"]
    Skill -->|"run_worker / run_playbook"| W["Worker clones<br/>in parallel"]
    W -->|"tracker_upsert"| T[("Tracker<br/>shared SQLite")]
    T -->|"SQL: what's done,<br/>what's left"| Queen
    Queen -->|"checked answer"| You

    style Queen fill:#ffb100,stroke:#cc5d00,color:#333
    style T fill:#fff3d6,stroke:#cc5d00,color:#333
    style W fill:#ff9800,stroke:#cc5d00,color:#fff

Hive has one execution primitive: the agent loop. The queen is one, and every worker is a clone of it with its own task, a narrower set of tools and a strict budget. Orchestration is a tool call, not a compiled graph:

The architecture overview goes deeper: the loop, the tool surface, memory, human oversight, and how state survives a crash.

Home: the hive map of queens and colonies
Home. Your queens and their colonies on one map. Describe a task and choose who takes it.
A colony's workers running in parallel
Workers. One per unit of work, each with its own task and budget, all reporting to the queen.
The colony tracker filling with results
Tracker. Results land in a shared table as workers finish, ready to query, export or resume from.
The queen's final answer with a sourced table and chart
Result. A checked answer with sources and a chart, right in the chat.

What's inside

Queens with a job and a memory. Hive ships thirteen persona queens. Six are active out of the box (Growth, RevOps, Content, Lead Generation, Outbound, and Brand & Design); hire the rest from the Org Chart, or create your own. Each one keeps notes in markdown memory as she works, and relevant past conversations are recalled into her context automatically.

A memory you can measure. A queen remembers you across sessions. She writes notes about you as she works, related past conversations are placed in front of her before each message, and she checks her memory before asking you for something you've already told her. We benchmark it on LongMemEval, run end to end through Hive and graded by the official judge, with gpt-6.1-sol answering:

LongMemEval-S LongMemEval-M
History per question ~115k tokens ~1.1M tokens
Hive 88.4% 82.0%
The same model reading the whole history 96.8% doesn't fit

When a whole history fits in the model's context, reading all of it is still more accurate than Hive's memory. When it doesn't, as on LongMemEval-M, memory is the only option. These scores measure recall of past conversations. Her notes come on top: since 1.0.15 they reach her before she answers, and on LongMemEval-S they raised the score from 91.0% to 93.4%, and preference answers from 70% to 87%, graded by our development judge. The benchmark page has the methodology, per-type results, the notes experiment, a comparison with other memory systems, and the limitations.

Built-in tools that run in-process. Shell commands and background jobs, file editing, fast code search, PDFs, attachments and images, web scraping, charts (ECharts and Mermaid), CSV files, and image generation through Hive LLM. They run inside Hive itself, with no tool servers to start.

Your browser, driven by your agents. The Hive Browser Bridge extension lets agents work in your own Chrome, where you're already logged in. Each worker gets its own tab group.

Skills. Reusable instructions in the open Agent Skills format. Hive ships with a set, queens write new ones once a method proves out, and you manage them all in the Skills Library.

Any MCP server. Add one with hive mcp add, and its tools join the same allowlists as the built-ins. The full integration catalog in tools/ (GitHub, Gmail, HubSpot, Slack, Notion and many more) runs as one; see docs/tools.md.

Runs while you're away. Colonies can wake themselves on cron, interval or webhook triggers. Sentinel, opt-in per colony, watches a queen whenever she stops: it nudges her on, or escalates to you through the Hive inbox, Telegram or Slack, and she picks up as soon as you reply.

Built to survive. Every agent saves its state to disk and resumes exactly where it stopped after a crash or restart. Large tool results spill to files instead of flooding the context, long sessions compact themselves, stuck or looping turns get caught, and every worker runs under a hard tool-call budget.

Any model. Anything LiteLLM supports, including OpenAI, Anthropic, Gemini, OpenRouter, Hive LLM, any OpenAI-compatible endpoint and local models through Ollama. Workers can run on a different model than their queen, and text-only models still see images through a vision fallback.

Is Hive for you?

Hive earns its keep once the model is no longer the hard part, and everything around it is:

For a single prompt or a one-off script, a plain agent is simpler.

Documentation

FAQ

Which models does Hive support? Any provider LiteLLM supports, plus any OpenAI-compatible endpoint. The quickstart sets up the common ones, including coding subscriptions such as Claude Code and OpenAI Codex; docs/configuration.md covers the rest.

Can I run it with local models? Yes. Choose Ollama in the quickstart, or set a model such as ollama/llama3 with Ollama running locally.

How is this different from other agent frameworks? Most frameworks ask you to design a graph of agents and wire up their inputs and outputs. Hive has one kind of agent: the queen is an agent loop, and every worker is a clone of it. Orchestration happens at runtime through tool calls, and agents coordinate through a shared SQL tracker instead of passing messages along edges. Persistence, resume, budgets, compaction and oversight live in that one loop, so every agent gets them.

Where does my data live? On your machine. Sessions, colonies, trackers and memory are plain files under ~/.hive (or wherever HIVE_HOME points), and API keys are stored there encrypted.

How do I keep costs under control? Every worker runs under hard limits on turns and tool calls, so a stuck worker stops by itself, and the number of workers running at once is capped. Every model call is metered. There are no spending limits in dollars yet.

Can agents use my own tools and APIs? Yes: through the built-in shell and browser, through any MCP server you add, and through skills that teach them your procedures.

Is Hive open source? Yes, under the Apache License 2.0.

Contributing

Contributions are welcome, especially tools, integrations and skills (#2805). Read CONTRIBUTING.md first, and get assigned to an issue before you open a pull request: comment on the issue and a maintainer will assign you. Issues with reproduction steps or a concrete proposal get priority.

Community

We're hiring in engineering, research and go-to-market. See open positions.

Security

To report a vulnerability, see SECURITY.md.

License

Apache License 2.0. See LICENSE.

Star history

Star history chart

Made with 🔥 passion in San Francisco

hive (aden-hive/hive)

Searching Database…

11.2K ·GitHub
What is this?OpenHive is an open-source multi-agent harness for production AI — a runtime that adds state management, failure recovery, observability, cost control, and human oversight so colonies of agents reliably run real business processes instead of demos.
What exactly is a colony of agents?A colony is a Queen — the persistent, client-facing lead — plus worker agents she spawns on demand. Each worker is a clone of her agent loop (same tools, same model, its own task), and they coordinate through a shared tracker ledger and a persistent plan, with no graph to wire.
How do I install and get it running?Do not pip install it — Hive is a uv workspace and that breaks it. Run the quickstart script from the repo (quickstart.ps1 / hive.ps1 on native Windows, PowerShell 5.1+, WSL optional): it sets up the runtime, MCP tools, encrypted credential store, and model config, then opens the dashboard in your browser. Reopen it later with hive open.
What do I need on my machine before starting?Python 3.11+ and an LLM provider to power the agents (its API key). ripgrep is optional but speeds up file search on Windows — a Python fallback runs without it; everything else is installed by the quickstart script via uv.
What happens if a long-running job crashes halfway?Runs are crash-safe: the park/resume mechanism persists agent state to disk, so a crashed or paused job resumes exactly where it left off instead of starting over.
Who is Hive for — and who should skip it?Teams moving AI agents from prototype to production: real business processes that need state, recovery, parallel execution, cost limits, and auditability. The README itself says it is a poor fit for simple agent chains or one-off scripts.
Which LLMs can power the agents?It is model-agnostic: 100+ providers through LiteLLM — OpenAI GPT-4/4o, Anthropic Claude, Google Gemini, DeepSeek, Mistral, Groq, OpenRouter, and Hive LLM. Local models work too, e.g. ollama/llama3 with Ollama running; you just set the API key env var and the model name.
How do I step in when an agent needs a human decision?Through Sentinel: the agent escalates to an account-bound Slack or Telegram channel, parks with its state saved to disk, and resumes exactly where it left off when you reply. Any agent in a colony can pause this way, with configurable timeouts and escalation policies.
Can I keep agent spending under control?Yes — budgets with spending limits, throttles, and automatic model degradation policies, set at the team, agent, or workflow level, with real-time cost tracking and alerts.
Can agents connect to my company's tools and data?Yes — every agent has built-in tool access, and Hive reaches CRMs, support, messaging, data, files, and internal APIs through MCP (100+ integration tools), plus General Compute Use and Browser Use via a native extension. A tool you add becomes available to the whole colony.
Creator
aden-hive
Size
63.2 MB
Stars
11.2K
Age
10mo
Commits · 90 Days