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.2

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.2
File Size Uploaded
aden_hive-1.0.2.tar.gz 9.9 MB Details

Built distribution (wheel)

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

Total release size: 16.4 MB

Release files / aden_hive-1.0.2.tar.gz

Download URL aden_hive-1.0.2.tar.gz
Size 9.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9ccd20aa7055403fc80a2d8cbf08456701e37c01123d25c797b02f36a4f10b67
BLAKE2b-256 checksum
How to use checksums
39042e6bbc888ab8d42aeb09b2d0d4c17bcebede514e5c27425a9e24ce76a419
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.2-py3-none-any.whl

Download URL aden_hive-1.0.2-py3-none-any.whl
Size 6.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d5f2e0af7300ab1378a5969f894db5eea048fd1141655527828d6f90195f66
BLAKE2b-256 checksum
How to use checksums
54af3186a77fdae354b8835f13698bd59adc1d386a8d16c2f77c40f3c7d40149
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

1.0.4

2 release files

1.0.3

2 release files

This release

1.0.2 This release

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