Skip to main content

Core Framework

The core runtime that powers Hive colonies of agents: the AgentLoop primitive, the ColonyRuntime, the Queen/worker model, and the HTTP server + CLI that drive them.

Overview

Hive has a single execution primitive — the AgentLoop (framework/agent_loop/agent_loop.py), a multi-turn streaming LLM loop. A Queen is a long-lived AgentLoop; every worker is a bounded clone of it. The ColonyRuntime (framework/host/colony_runtime.py) spawns and schedules those clones and collects their results. There are no graphs, nodes, or edges — a colony coordinates through a shared SQLite tracker, a persistent task plan, an event bus, and a reminder hub.

For the full design, read the Architecture Overview and the key concepts.

Setup

Hive uses a uv workspace layout and is not installed with pip install. Use the quickstart from the repo root:

./quickstart.sh          # macOS/Linux
.\quickstart.ps1         # Windows (PowerShell)

This creates the framework venv (core/.venv), the tools venv (tools/.venv), and the encrypted credential store, then opens the dashboard.

Running

Everything runs through the hive CLI (from the project root):

hive open                          # start the server and open the dashboard
hive serve --port 8787             # start the HTTP API server only

hive queen list                    # list the built-in Queen personas
hive queen show <queen_id>         # inspect a Queen profile
hive queen sessions <queen_id>     # list a Queen's sessions

hive colony list                   # list colonies on disk
hive colony info <name>            # inspect a colony (tracker, workers, plan)
hive colony delete <name>          # delete a colony

hive session list [--cold]         # list live (or on-disk) sessions
hive session stop <session_id>     # stop a live session
hive chat <session_id> "message"   # send a message to a live Queen

Subsystems: hive skill ... (manage skills), hive mcp ... (manage MCP servers), hive debugger (LLM debug log viewer). Run hive --help for the full list.

On-disk layout (HIVE_HOME)

State lives under HIVE_HOME (defaults to the platform app-data dir; override with the HIVE_HOME env var):

$HIVE_HOME/
  agents/queens/<queen_id>/     # Queen profiles + sessions
  colonies/<name>/              # one directory per colony
    worker.json                 #   the colony's worker spec (clone template)
    data/tracker.db             #   the colony's shared SQLite ledger
  memories/                     # scoped Queen memory (global / colony / queen)
  credentials/                  # encrypted credential store

A colony is self-contained in its directory, which is what makes it portable (export/import as a tarball).

Key modules

Area Path
Agent loop (the one primitive) framework/agent_loop/agent_loop.py
Colony runtime (spawn/schedule/collect) framework/host/colony_runtime.py, framework/host/worker.py
Colony identity/binding framework/host/colony_binding.py
Queen (agent, personas, phases, memory) framework/agents/queen/
Tracker (shared ledger) framework/tools/tracker_tools.py, framework/host/tracker_db.py
Task plan framework/tasks/
Reminder hub framework/agent_loop/reminders.py
LLM providers framework/llm/
HTTP server / control plane framework/server/

Requirements

  • Python 3.11+
  • An LLM provider (Anthropic, OpenAI, Google Gemini, OpenRouter, Hive LLM, or any LiteLLM-compatible provider — including local models via Ollama)

Testing

The framework includes a goal-based testing harness for validating agent behavior. See the Developer Guide for workflows.

Metadata

Release files for aden-hive 1.0.4

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

Source distribution (sdist)

Source distribution for aden-hive 1.0.4
File Size Uploaded
aden_hive-1.0.4.tar.gz 9.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for aden-hive 1.0.4
File Interpreter ABI Platform
aden_hive-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 MB

Release files / aden_hive-1.0.4.tar.gz

Download URL aden_hive-1.0.4.tar.gz
Size 9.9 MB
Tags Source
SHA-256 checksum
How to use checksums
7d1dc7a3b30b9140104e729c6b9a22397f56a5347b05091820303561902a2e39
BLAKE2b-256 checksum
How to use checksums
98f34e6bcff463357eebe7abcf73ee933d569fe96314b7385129df2a0ef2d037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / aden_hive-1.0.4-py3-none-any.whl

Download URL aden_hive-1.0.4-py3-none-any.whl
Size 6.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
899a2ab5f5a746efe4bc7f828c55baf18c4cabfbef013cc8be6a3cf6ff3e05e1
BLAKE2b-256 checksum
How to use checksums
1bc59d9907b4e75b7bc75ed1cfba29b9541580afd0ab491e56959f6038d2e6d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

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