Skip to content
35d16c31dac4b77d1413fc9ef24a17eb3dd1f892

35d16c31dac4b77d1413fc9ef24a17eb3dd1f892

github.com • November 28, 2026

Declarative (config-driven), CLI-first multi-agent orchestration built on LangGraph.

Hobees makes Bee and Hive workflows usable as repeatable command-line jobs, including in short-lived containers, while keeping an interactive shell and TUI available. The name is inspired by honey bees. PostgreSQL is recommended for multi-process use, while SQLite is supported for local use.

Web app: hobees web serves the bundled React SPA on — Workbench, Studio, Runs & Traces and Memory & Artifacts: live run streams over SSE, HITL approvals you can resolve in the browser, on-demand provider detection, Quick setup templates and Reset. No Node runtime is needed, the built bundle ships inside the package. Details: Web App .

Most multi-agent frameworks force you to write glue code to wire agents together, and then break down when you try to move from a local prototype to a reproducible pipeline. hobees treats agent teams as portable, repeatable configuration :

Interactive TUI + Headless CLI: Prototype prompts and watch live delegation in the terminal, then run the exact same Hive non-interactively in GitHub Actions, cron jobs, or Docker workers.

Mix Local & Cloud Models per Agent: Assign a high-reasoning frontier model ( thinking: high ) to your Supervisor while routing repetitive tasks to fast local models ( Ollama , llama.cpp ) or lightweight APIs.

Resumable Execution & Scoped Memory: Backed by SQLite or PostgreSQL checkpoints ( --thread ), isolated workspace directories, and scoped memory ( global , hive , or bee namespaces).

Self-Improving Workflows: Capture successful multi-agent runs into reusable Markdown skills ( /skill save-last ) that future Hives automatically load.

Approval Gates & Container-Safe Threads: Per-Bee require_approval tool lists enforced by a runtime policy ( interactive | auto | strict | pause ), with every decision audited and every run keyed by a collision-free : : : id for cross-container trace inspection and checkpoint replay.

Zero-Config Onboarding

The fastest path to a running hive is a single command.

On first launch with no providers configured , hobees automatically scans your environment for available providers and offers to register them in one step:

Cloud: checks OPENAI_API_KEY , ANTHROPIC_API_KEY , GEMINI_API_KEY , OPENROUTER_API_KEY , DEEPSEEK_API_KEY

Local: probes localhost:11434 (Ollama), localhost:8080 (llama-server), localhost:1234 (LM Studio)

The scan runs once and writes ~/.hobees/.detected so it never fires again on subsequent launches. To scan again later, run hobees detect-providers from a terminal or /detect_providers in the interactive shell. This explicit command always runs, regardless of the sentinel. In a headless environment, it skips confirmation and registers detected providers automatically. Providers already in the registry are reported as already registered and are excluded from the new-provider list.

Manual Setup (optional)

Architecture Overview

Approval Gates (HITL)

Container-Aware Thread IDs & Trace Inspection

Multi-Terminal & Web API

Architecture Overview

Two Orchestration Layers

Note: The Queen and Hive Supervisor are orchestration agents , not worker bees. They route work and synthesize results. A hive's supervisor is configured with its own provider/model/prompt, independent of its member bees.

Note: The Queen and Hive Supervisor are orchestration agents , not worker bees. They route work and synthesize results. A hive's supervisor is configured with its own provider/model/prompt, independent of its member bees.

Global registry of LLM endpoints shared across all Bees and Hives.

Types : openai , anthropic , google_genai , openai_compatible (Ollama, vLLM, LM Studio, OpenRouter, Groq, etc.)

Security : Stores only the environment variable name for API keys ( api_key_env ), never plaintext secrets

Cost tracking : Optional input_cost_per_1m / output_cost_per_1m for real-time cost estimation

Reusable AI agents that exist independently of Hives. A Bee can belong to multiple Hives simultaneously.

Attributes : name, role_description, system_prompt, provider, model, temperature, thinking_level, tool_names, require_approval (tools that must pass an approval gate )

Thinking levels : off | low | medium | high (provider-normalized)

Teams of Bees under a Hive Supervisor (many-to-many relationship via hive_memberships ).

Supervisor : Has its own provider, model, prompt, and thinking level (configured at hive creation)

Static Hives ( is_dynamic=false ): User-created, reusable teams

Dynamic Hives ( is_dynamic=true ): Created for one-off goals; the /goal handler creates a new one for each run

Project Path : Optional subdirectory under the project root for file-based work

👑 Queen Meta-Orchestrator Component

The Queen agent implementation can inspect the global roster and select Bees for a goal. Its form_and_run_hive tool always creates a new dynamic Hive; it does not execute or reuse an existing static Hive. The interactive shell's /goal handler currently creates and runs a dynamic Hive directly rather than invoking the Queen agent.

Tools : inspect_roster() , form_and_run_hive(goal, bee_names)

Session override : /thinking applies to all Bees in the run

Not a bee — it's a separate orchestration agent that manages hive creation

🔐 Approval Gates (HITL)

Tool sensitivity is declared per Bee ; enforcement is a runtime policy resolved per run. A Bee lists which of its tools must pass a gate, and the runtime decides what happens when one of those tools is called.

require_approval is a JSON column on the bees table ( hobees init adds it to existing databases) and is reconciled by hobees import / hobees init --config . It can also be set with hobees bee create --approval write_file , hobees bee update --approval write_file , or the Studio Bee dialog.

A gate only fires when three things line up: the tool is in the Bee's tools list, that tool is a registered tool, and the model actually calls it. get_tools() skips unknown names, so a gate on a name that is not in TOOL_REGISTRY can never fire — the built-in tools are read_file , write_file , list_directory , run_python_calc , load_skill , save_memory , recall_memory . hobees import and the shared Bee handlers warn when a gate names a tool that is missing from tools or is not registered.

strict never asks: it rejects the gated call with a policy ToolMessage . Only interactive (and pause ) create a pending approval. The Web UI polls pending approvals and shows a Gate open on this run card on the Workbench plus the Approvals drawer ( Web App ).

To see a gate fire end to end, create the Bee above ( hobees bee create gate-bee "writes files" "Use write_file when asked." 1 gpt-4o --tool-names write_file --approval write_file ), set the level to interactive , and prompt:

The run pauses at TOOL_APPROVAL_REQUEST , the run row becomes awaiting_approval , and the approval can be resolved from the Workbench card, the drawer, hobees approvals , or POST /api/v1/approvals/{id}/resolve .

The effective level is resolved in strict order (first match wins):

CLI flag — --approval-mode (convenience alias --auto-approve → auto ) on the root, shell , run and prompt commands. The flag seeds the session level for that run; a later /approvals replaces it.

Session override — /approvals in the shell or TUI, or hobees approvals --session headless. Lives only for the current process.

Saved global setting — HOBEES_APPROVAL_MODE in ~/.hobees/.env , written by hobees approvals set .

Context default — interactive when stdin is a TTY, strict when headless (secure by default).

Values outside these four levels are ignored rather than trusted, so a bad setting can never widen a policy.

ApprovalMiddleware wraps tool execution inside the LangGraph graph (on each worker's create_agent ), not in an external loop around .invoke() . That keeps:

the exact interrupt() / Command(resume=...) boundaries in the checkpointer, so --replay works across gates;

paired messages for every AIMessage(tool_calls=[...]) — a rejection still returns a ToolMessage , so the Bee can recover rather than crash, and message-history validation stays valid;

sequential evaluation when a Bee emits several gated tool calls in one turn.

Editing at a gate substitutes the approved arguments before execution and records the decision as edit with the original and final args; rejections record a reason. Every evaluation is written to approval_events , and a telemetry-store failure never weakens the gate.

/permissions is the alias of /approvals in both front-ends, and the completion and the handler accept exactly the same words. Headless the same resolver is exposed as hobees approvals (alias hobees permissions ), with --json for scripted callers:

In --json , level is the effective level, global the persisted value, session the override for this run, and source the tier that won ( session override / global / context default ). Both the env var and the .env file report as global , and the CLI-flag tier is not reported separately.

The interactive prompt loop currently runs in hobees hive run (headless on a TTY); in shell/TUI chat turns auto and strict are enforced immediately, while an interactive / pause gate there is resumed with hobees hive run --resume-decision .

--resume-decision accepts approve , edit or reject , with --resume-args (JSON) for edits and --resume-reason for rejections, and the run status stays awaiting_approval while a gate is pending.

Running hobees with no arguments drops you into the interactive shell with slash-command autocomplete. Run hobees --tui to use the alternate TUI. In either interface, type @ followed by a path prefix to browse the current folder. Use Up/Down to select a suggestion and Enter to insert its path; folders can be browsed by adding / to the path. The picker includes .. for the parent directory and displays at most four rows. The selected path is added to your message as text; Hobees does not automatically read or attach the file contents. The welcome panel also reports the effective approval level and the tier it came from, so you can see before the first gated tool call whether a tool will prompt, run without asking, be rejected, or pause the run.

In the TUI and shell, /hive remove shows a numbered hive list and lets you select multiple hives by number. TUI output supports terminal-native mouse selection and copy.

Common provider, Bee, Hive, memory, skill, and run operations are also available as direct Typer subcommands for scripting. Some slash commands are interactive-shell features only.

hobees reset starts hobees over. It lists what exists and asks for a Y (yes) answer before deleting anything — any other answer, or no answer at all, cancels and nothing is removed. It is headless-only: the interactive shell and the TUI do not carry a reset command, and the Web UI exposes the same two scopes on the Studio Quick setup tab ( Web App ), where the action stays disabled in --read-only mode and the endpoint only accepts requests from the origin it serves.

Nothing outside those paths is touched: environment variables exported in your shell keep their values, a project .env you created yourself is left alone, and a database served outside ~/.hobees (e.g. PostgreSQL) loses only the URL stored in the env file — its rows stay on the server.

The database file is always on the plan: when HOBEES_DATABASE_URL is not configured (for example right after a reset), ~/.hobees/hobees.db is taken as the target through the default path, not skipped. A running process can still hold that file open — Windows refuses to delete a file with an active handle — so apply_plan() releases the SQLAlchemy pool before deleting, which is why the Studio panel and a reset run by its own process succeed. If a different process (a running web app, an open shell, a second terminal) holds it, reset does not force anything: it reports that path as failed and tells you to close that process and run again.

After a reset the launch rebuilds the slate: provider detection runs again, the default env file and database are recreated, and hobees init ensures the schema. A running web app needs a restart so the env file and schema are rebuilt too.

One FastAPI process serves the bundled SPA (no Node runtime) and /api/v1 .

Quick setup — templates on top, Reset below (Reset appears only on this tab). Opening Studio without ?tab= lands there while nothing is configured, otherwise on Hives. A template lists what it creates and every name it collides with; Skip existing is the default, and a colliding template needs a typed Y (yes) before POST /api/v1/templates/apply runs. GET /api/v1/templates reports the plan and collisions.

Detect providers (Providers tab) — scans env keys ( OPENAI_API_KEY , ANTHROPIC_API_KEY , GEMINI_API_KEY , OPENROUTER_API_KEY , DEEPSEEK_API_KEY ) and probes 11434 (Ollama), 8080 (llama-server), 1234 (LM Studio); you then register only the candidates you tick. Detection itself writes nothing.

Containers — the tab generates the whole deployable set from what you are happy with now: compose.yaml , Dockerfile , hobees.yaml (the active configuration), goal.txt and docker-entrypoint.sh , in the shape of the set that is known to run against Docker. init-dirs runs first as root, creates the folders the bind mounts point at ( ./output , ./skills ) and hands them to HOBEES_UID:HOBEES_GID ; the goal runner then waits for it and for a healthy Postgres. The Dockerfile follows the tested one — uv tool install hobees from PyPI, no source tree in the image — and the entrypoint initializes the schema with the copied config, then runs the goal. The goal reaches the container as a read-only mount (default, so the goal can change per run without a rebuild), a baked COPY (opt-in), or stdin , and the prompt text is never written into the script, so it can never be read as shell. Running the web app inside the container is optional and stays commented out by default. Generated paths are relative ( ./output , ./skills , ./goal.txt , ./.env ) and the container name is read at run time, so nothing from one machine is baked into a committed file. Postgres keeps its data in a named Docker volume ( postgres_data ), declared in the top-level volumes: block at the bottom of compose.yaml rather than in a host folder — Postgres owns it, init-dirs has nothing to prepare, and the data survives docker compose down ; docker compose down -v is what removes it. A volume typed as a host path ( ./pgdata ) still works and is still prepared by init-dirs . The Postgres service key and the host name the container resolves come from the same field, so they cannot drift apart, and the ids baked into the image ( --uid 1000 --gid 1000 ) are the defaults .env maps the host user onto. Env values stay ${NAME} references, and the tab also generates .env.sample in the sections .env carries them in (Host UID/GID mapping, Postgres credentials, Provider API keys, Hobees runtime configuration) — keys without values, so the host that runs the container knows exactly what to fill in. There is no CMD in the generated Dockerfile : the entrypoint script is the single place that decides (init, then the goal), so a baked command line would duplicate it. The tab only writes files — nothing in it starts or stops a container, so the shown docker compose --profile run --rm command ( -T when the goal is piped) is for you or CI to execute. A field change reaches the files only when you click Update spec , and Download all files gives each file as its own download (not a pack).

Read-only mode blocks every mutating call, destructive actions require a typed Y (yes) , and reset accepts requests from the origin it serves. hobees reset from a terminal is the same two scopes ( ~/.hobees config + --all for generated output).

🧵 Container-Aware Thread IDs & Trace Inspection

Every run is stored under a four-segment thread key, so identical configurations running in different containers against a shared database cannot collide:

container_name is resolved in order: --container → HOBEES_CONTAINER_NAME → HOSTNAME → socket.gethostname() → local (Docker sets HOSTNAME to the container's 12-char id). Two containers running the same config with HOBEES_CONTAINER_NAME=worker-1 and worker-2 and the same --thread pr-42 produce worker-1:hive:dev-team:pr-42 and worker-2:hive:dev-team:pr-42 — no collisions.

A thread that is already fully qualified is preserved verbatim, so a key copied from --json output or from hobees trace can be handed straight back as --thread (with --container to target another instance).

hobees hive run --json reports both container and thread (the resolved key), plus pending_approvals when a gate is still open.

Thread-key columns accept the full namespaced value: runs.thread_id , usage_events.thread_id , memories.source_thread_id and skills.source_thread_id are VARCHAR(512) ; runs and usage_events also store container_name , and usage_events stores checkpoint_id per LLM step.

hobees trace merges the database records with the per-thread JSONL event log:

The JSON record contains container , thread , status ( completed , awaiting_approval , failed , or unknown when no run row exists), the events read from the JSONL file, approvals (mode, decision, wait_ms , original vs. edited args, reason) and usage (model, latency, tokens, checkpoint_id ). The human output prints each gate as GATE : [ ] bee= and then the event list.

Trace events are appended under artifacts/ /traces/ , and /hive trace [name] in the shell or TUI prints the newest log for a hive. Because : cannot appear in a Windows filename, the file name escapes it ( : → __ ) — coder-worker-1__hive__dev-team__pr-42.jsonl — while the full key stays inside every event, so reconstruction joins by the event's thread_id rather than by the file name. The same escaping is applied to the scratchpad directory that stores offloaded tool output ( artifacts/ /scratchpad/ / .txt ), so the path a Bee is shown is the path it can actually read back.

Replay from a checkpoint

The checkpoint must exist in the resolved thread's state history — the run fails fast with a clear error if it does not. --patch-message appends a human message to that snapshot before forking forward, so only the steps after the checkpoint re-run, using the Bee prompts and models as they are configured now.

Not built yet on this branch

Structured log enrichment (per-line container / thread / checkpoint_id context and --log-format json / HOBEES_LOG_FORMAT ) is specified in specs/Trace.md but not implemented; trace visibility comes from the JSONL event log and the database.

The TUI trace tree and its inspector pane with [r] Replay are not implemented — hobees trace prints a flat list and its checkpoints field is reserved (currently empty).

Shell/TUI chat turns honour auto and strict immediately, but the Approve/Edit/Reject prompt loop only exists in hobees hive run ; single-Bee chat turns also record the container segment as local instead of the resolved name.

Application settings are loaded from ~/.hobees/.env (or local .env ) with the HOBEES_ prefix. PostgreSQL is recommended for multi-process use; SQLite is also supported for local/single-user use.

Database and startup configuration

Choosing SQLite or PostgreSQL

Set HOBEES_DATABASE_URL in ~/.hobees/.env , the project .env , or the process environment to select the database for both Hobees application data and LangGraph checkpoints; there is no interactive database chooser. If no URL is configured, Hobees writes a platform-specific SQLite URL pointing to ~/.hobees/hobees.db into ~/.hobees/.env and prints the database file location in the CLI. Both paths use the current user's directory on Linux, macOS, and Windows.

The interactive shell initializes a fresh database automatically, so hobees init is not required just to start the shell. Use hobees init to initialize the database explicitly before other database-backed commands, or to run migrations and configuration import.

For a local, single-user setup, use file-backed SQLite:

Without an explicit URL, Hobees stores the default database under the user's .hobees directory. You can configure another SQLite path or PostgreSQL URL explicitly.

Relative SQLite paths that you configure yourself are resolved from the working directory where Hobees runs. The default database location is stable across working directories. File-backed SQLite keeps data and checkpoints between runs; sqlite:///:memory: is temporary and is not suitable for persistent use. SQLite is intended for local/single-user use and does not provide PostgreSQL's concurrent multi-process behavior.

For multi-process use, use PostgreSQL:

The PostgreSQL server and database must already exist. URL-encode special characters in usernames or passwords. PostgreSQL is also the database used by the Docker Compose example below.

Changing HOBEES_DATABASE_URL switches to a separate database; it does not copy or migrate existing data between SQLite and PostgreSQL.

Optional (with defaults)

Provider credentials are read from the process environment using each provider's api_key_env value; application settings loaded from .env do not export those keys to the process.

HOBEES_CONFIG_PATH is synchronized on normal CLI startup. A config containing a bees list reconciles the hive's memberships to that list. Resources absent from the file are preserved. Use hobees init --config PATH for a one-time import without setting the startup variable.

Running configured Hives headlessly

After installing Hobees and ensuring its executable is on your PATH , invoke it directly:

When running from a source checkout, prefix these commands with uv run .

The local-dev example uses only its local llama.cpp supervisor and worker. Start a compatible server reachable from the environment running Hobees at the configured URL and expose the configured model name first. is_dynamic classifies a Hive but does not cause automatic selection. hobees hive run ... runs that Hive directly without the Queen. Root hobees run without --hive instead creates a one-off Hive with all registered Bees available to its supervisor; because the template defines multiple providers, that path also needs --provider . /goal likewise does not route to a configured Hive.

The Compose template runs each Hobees command as a one-shot container and starts a private PostgreSQL service for it. It does not expose a database port or start an interactive shell by default.

The generated set runs a goal from a file or a pipe, which is what a pipeline wants:

How a pipeline knows the run ended

Nothing has to be added to the Dockerfile for this: hobees already exits with a meaningful code, and that code is the container's exit code. docker run and docker compose run hand it back to the caller, and that stays true when the container runs against a remote daemon ( DOCKER_HOST , docker -H ssh://pipeline-host or docker -H tcp://host:2376 ) - the CLI's own exit status is the container's, so a CI step can simply test $? or if ! docker compose run ...; then exit 1; fi .

The generated docker-entrypoint.sh keeps that path intact: set -eu stops on the first failure with that command's code, and exec replaces the shell so hobees' exit code is reported unchanged.

A detached run has to read the code back:

hobees pipeline status is the richer reading of the same outcome. It reads the manifest the run wrote into the artifacts mount, or the run row, prints status/error, and exits with the matching code - which is what a pipeline manager wants when the container ran on another host and only the mounted artifacts come back:

Every manifest entry now carries exit_code , so the two signals cannot disagree: the shell sees the number, and the JSON says the same number with the reason attached. The run writes the manifest to its artifacts directory and the run row to the database, so a pipeline manager on a different host has three ways to learn the outcome: the exit code from the docker call (it propagates over a remote daemon), the manifest through a shared mount, or the database row - the last two are what hobees pipeline status reads. Point --manifest at the shared path, or use --hive / --thread-id when the pipeline shares the same PostgreSQL.

The ./artifacts bind mount makes run outputs available on the host (worker-created files are under artifacts/ /output/ ), and ./skills persists Markdown skill files. The named postgres_data volume preserves providers, Bees, Hives, runs, memories, and checkpoints across container recreation and docker compose down . Remove the corresponding volume mappings from compose.yaml if persistence is not wanted. docker compose down -v deletes the database volume and its contents.

A one-shot container is headless, so the approval default there is strict : a gated tool does not run unless the container sets HOBEES_APPROVAL_MODE=auto (or pause ) in .env or passes --approval-mode . Container identity is HOBEES_CONTAINER_NAME if set, otherwise HOSTNAME (Docker's 12-char container id), so parallel workers using the same hobees.yaml write distinct thread keys — worker-1:hive:... vs worker-2:hive:... — and each run can be inspected from any other container with hobees trace --container --thread .

To load declarative setup, uncomment the optional ./config:/config:ro mount in compose.yaml , set HOBEES_CONFIG_PATH=/config/hobees.yaml in .env , and place the config file in ./config . You can instead run a one-time import with docker compose run --rm hobees init --config /config/hobees.yaml .

The web UI's Studio → Containers tab prepares that deployment from the browser: it builds the compose.yaml , Dockerfile , hobees.yaml , goal.txt , docker-entrypoint.sh and .env.sample from the live settings and the registered providers, shows validation warnings, and can save them to the project root ( HOBEES_PROJECT_ROOT , fixed names) or download each file separately. The tab does not start or stop containers — docker and docker compose are run by you or by CI. The Dockerfile installs hobees from PyPI ( uv tool install hobees ), has no source tree in the image, and defines no CMD : docker-entrypoint.sh is what runs, initializing hobees with the copied config and then running the goal, with arguments passed to docker compose run as the override. Generated files reference environment variables by name ( ${OPENAI_API_KEY} ), never by value, and run as a non-root user.

Provider API keys are passed into the runtime container from .env ; they are not baked into the image. Add any custom API-key environment variables used by your providers to .env . The app container runs as the numeric user configured by HOBEES_UID and HOBEES_GID so it can write to the artifacts and skills bind mounts.

Multi-Terminal & Web API

Because PostgreSQL handles concurrent reads/writes safely, usage insights are accessible from three surfaces simultaneously:

1. In-Session Live Ticker

After every run, a concise footer prints:

2. Concurrent Second Terminal

The command prints an aggregate table; it does not run a watch dashboard.

Launches FastAPI at with endpoints:

🔐 Approval Gates & 🧵 Namespaced Threads

See Approval Gates (HITL) and Container-Aware Thread IDs & Trace Inspection : per-Bee gated tools, four runtime levels, audited decisions, collision-free container keys, hobees trace , and --replay / --resume-decision .

🤖 Provider Model Auto-Discovery

Fetch available models from local (llama.cpp, Ollama, vLLM, LM Studio) or remote (OpenAI, Anthropic, Gemini, OpenRouter) providers.

💭 Configurable Thinking Levels

Normalized thinking_level ( off | low | medium | high ) per Bee, Hive Supervisor, or session override.

🗜️ Context Efficiency Engine

Four controls to prevent quadratic token growth:

Worker Context Isolation - Bees receive clean projected context (system prompt + scoped memories + skill headers + subtask), not the raw supervisor message history

Tool Output Truncation - Large hive tool outputs are saved under the active project/artifact root, typically artifacts/ /scratchpad/ / ; a preview is returned

Rolling Conversation Compaction - At the configured context threshold (65% by default), older messages are locally summarized into running_summary ; no summarizer-model call is made, and the last four messages are retained verbatim

Progressive Skill Loading - Only skill headers ( name: description ) injected; full instructions loaded on-demand via load_skill tool

🧠 Cross-Session Scoped Memory

Three namespaces persisted in the configured database:

The Queen receives global memories; Hive supervisors receive global and Hive-scoped memories; workers receive global, Hive-scoped, and their own Bee-scoped memories. Memories are loaded when each agent is built. Enable HOBEES_ENABLE_AUTO_MEMORY=true to make an additional call to the configured supervisor model after successful Hive runs. It extracts stable preferences into global and, for named Hives, durable project facts into hive: . Ephemeral Hives save only global preferences. The default is off; enabling it sends the goal and final result to the configured model and may incur extra usage. Extraction is best-effort, so review saved entries with hobees memory list and remove incorrect ones with hobees memory forget .

📜 Progressive Skill Library

Reusable procedural skills stored in the configured database with Markdown sync ( ~/.hobees/skills/*.md ).

Skills injected as metadata headers; full instructions loaded via load_skill tool.

🔄 Skill Drafts from Completed Hive Runs

After a successful Hive run with at least four tool calls or an estimated two handoffs, Hobees makes an additional call to the Hive Supervisor's configured model to look for a reusable procedure. The handoff count is approximated from distinct Bees that used the model. A generated draft is saved on the run record, not automatically added to the skill library.

This applies to Queen-created and one-off Hives, /goal , named headless runs such as hobees hive run dev-team "..." --json , and interactive Hive chats in the shell or TUI. Interactive shell runs offer to save or edit the draft; the TUI displays a notice, and headless JSON includes suggested_skill_draft in the run manifest. Use hobees skill save-last from the CLI to review and save a stored draft. The reflection call may incur additional model charges and is not currently included in run usage telemetry.

See CONTRIBUTING.md for contributor guidance and test instructions.

Approval-level behaviour is covered by tests/test_approvals.py (resolver precedence, persistence, the headless command, the shell/TUI handlers, and the rule that completion suggestions are words the handler accepts). Container-aware thread namespacing, gate decisions and the Windows-safe trace filename are covered by tests/test_hitl.py .

PostgreSQL 15+ (recommended for multi-process use; file-backed SQLite is supported for local use)

High-Level Project Structure

Add a new @tool function in core/tool_registry.py

Register it in TOOL_REGISTRY

Bees can now reference it by key in tool_names

Licensed under the Apache License, Version 2.0. See LICENSE for details.