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

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

Built distribution (wheel)

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

Total release size: 16.5 MB

Release files / aden_hive-1.0.10.tar.gz

Download URL aden_hive-1.0.10.tar.gz
Size 9.9 MB
Tags Source
SHA-256 checksum
How to use checksums
78ab9fab49cca3a6bddfc8d0d78f2bc0096817cd0205923f09803cac74a7504a
BLAKE2b-256 checksum
How to use checksums
486badb68b8129930d42a23834c8e4d5cd3473d30ef6617075cddbf9d023c3b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

Download URL aden_hive-1.0.10-py3-none-any.whl
Size 6.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
061b1ae65d12cd0d99bad191189383f918b6a556e9084d3ea9922f436fef36ee
BLAKE2b-256 checksum
How to use checksums
db7088cd28ba44643a1efc9d7ecd8c09f743a54f7bddac2744c03a3750cdecd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for aden-hive 1.0.10

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