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

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.6
File Size Uploaded Provenance Actions
aden_hive-1.0.6.tar.gz 9.9 MB Without provenance Details for aden_hive-1.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 16.5 MB

Release files / aden_hive-1.0.6.tar.gz

Download URL aden_hive-1.0.6.tar.gz
Size 9.9 MB
Tags Source
SHA-256 checksum
How to use checksums
00fdce2871eb4c309cafdb8738b30d281c43bf351ed54a7b90887236c78f66b9
BLAKE2b-256 checksum
How to use checksums
282d904961978f57a82df636ff8c592ef3dfa5436281979e5ebed09bbb3e98af
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.6-py3-none-any.whl

Download URL aden_hive-1.0.6-py3-none-any.whl
Size 6.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
15b81c649c75c15225aa8ba5e0351daf51b080ab0db79b662cc6818326330aeb
BLAKE2b-256 checksum
How to use checksums
9bc108c2c55de488c409daaa8fb1d267ffd05126d1c8f55a45180d46e0a3a9ba
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}

Security for aden-hive 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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