Distributed Ledger of Intelligence — agent thought commits and Hivemind mesh
Project description
HoneyHex
Distributed Ledger of Intelligence for multi-agent systems. See agent_docs/ and docs/PLAN-honeyhex-implementation.md.
Quickstart (pip only)
The core package is enough for local thought ledgers, Git-backed history, inspection, branching, bundles, and signing—no Redis, HTTP registry, or Docker required.
pip install honeyhex
cd your-agent-cell
hex cell init
hex commit -m "why I acted" --prompt "..." --scratchpad "..."
Run from an agent cell root (defaults to current directory). The ledger lives in .honeyhex/.
Development setup
Contributors typically use an editable install with all optional stacks for tests and API work:
source .venv/bin/activate
uv pip install -e ".[dev]"
CLI (core)
hex commit -m "why I acted" --prompt "..." --scratchpad "..."
hex checkout -b my-hypothesis --cell .
hex cherry-pick <sha>
hex rebase-interactive --onto <ancestor-sha> --drop <sha1>,<sha2>
hex shadow --left-cmd "true" --right-cmd "sleep 9"
Porcelain (local .honeyhex/): hex log / show / diff (add --json for scripting), hex remote / fetch / pull, hex merge (runs post-merge when hooks enabled), hex bundle create|replay, hex sign / hex verify (set HONEYHEX_SIGNING_KEY), hex git … (passthrough git -C .honeyhex). Config: .honeyhex/config.json or config.toml. See docs/SECURITY.md, docs/MANUAL-RUNBOOK.md, and docs/MERGE_POLICY.md.
Optional: mesh and central registry
These features install additional dependencies via extras; commands print a one-line pip install 'honeyhex[…]' hint if the extra is missing.
Hive-Daemon (pip install 'honeyhex[redis]'): set HONEYHEX_REDIS_URL / HONEYHEX_CHANNEL, then hex daemon run. Agents can hex publish-head --agent <id> after commits. For local development, docker compose in this repo is optional convenience only.
Registry API (pip install 'honeyhex[registry]'): set HONEYHEX_DATABASE_URL (PostgreSQL in production, e.g. postgresql+psycopg://honeyhex:honeyhex@localhost:5432/honeyhex), run honeyhex-api, then use hex status, hex push --source … --target … (runs pre-push when hooks are enabled), hex outbox enqueue / hex sync to queue PRs offline then flush, hex vote --pr …, hex merge-quorum --pr …, hex rebase-global --commit ….
LLM validators (pip install 'honeyhex[llm]'): configure provider keys (e.g. OPENAI_API_KEY), set HONEYHEX_DEFAULT_MODEL if needed, then POST /api/v1/prs/{id}/llm-evaluate or hex llm-vote --pr <id>. Tabular summaries: honeyhex.eval.tables.summarize_tabular_rows.
Tests
Default pytest runs core tests only (no registry/LLM markers). Install [dev] and run the full suite when you have all extras:
pytest
pytest -o addopts= # run all tests including registry + LLM markers
ruff check src tests
mypy src
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file honeyhex-0.1.0.tar.gz.
File metadata
- Download URL: honeyhex-0.1.0.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b164cd1917101f43b38f248d2486181b9b375957120097f4312b745ffdb111df
|
|
| MD5 |
dd85fa73ae0e83dacb5df0fa6fbdadcd
|
|
| BLAKE2b-256 |
217f813eb8673df97701748e959de4805677150e490207c581856293ce39a5c7
|
File details
Details for the file honeyhex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: honeyhex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f2d0201d783cfa72c51f8ea026ed5072c7c92e1c5e34ea53d7cbece1373ebdf
|
|
| MD5 |
4f83108601c7791d99fc2b576d679a43
|
|
| BLAKE2b-256 |
06e699cb24942ea43bde015b04bcd69208bdfb12cbd5c91f941e5c10f722a0eb
|