New
Apps 6,355Makers 6,334This week 13
Promote your app−30%
Hivemill screenshot 1
2views in
the last 30 days

Hivemill

A self-hosted software factory of Claude Code agents with review, QA and a judge merge gate

Built with Claude Code

by volekerb · Unclaimed · from NLNetherlands · added Oct 29, 2026
no ratings0 comments

Hivemill

Hivemill

A self-hosted software factory of Claude Code agents with review, QA and a judge merge gate.

Hivemill's CLI is factory.

Quickstart · Docs · Examples · Adopt with Claude · Security · Discussions


https://github.com/user-attachments/assets/7615b7c0-48b0-4b44-ad01-aacd7f692583

An animated org chart: the owner talks to one boss agent, which hands goals down to directors, team leads and workers that ship pull requests

Watch the full 76-second demo (MP4) · how it was made

You describe what you want built to one boss agent. It turns the request into a goal, a director staffs a team, and a chain of coders, QA, reviewers and a judge ships it as pull requests. The coder who writes a change never reviews, tests or merges it, and every goal, task, message and verdict is a row in one SQLite database behind the single factory CLI.

The factory runs on herdr, the terminal multiplexer that hosts the agent panes (source, pinned release v0.9.5).

Quickstart

Needs Python 3.11+, git, gh, herdr and a logged-in Claude Code. Full steps and troubleshooting: docs/SETUP.md. Every output below was captured from a real run against the seeded demo home (docs/demo-data.md); ... marks every cut (whole lines or parts of lines).

1. Look around without herdr or Claude

Seeded fictional data, nothing real runs. Run from the repository root:

export TRIAL=$(mktemp -d)
python3 ci/demo_seed.py --home "$TRIAL/demo" --now 2026-10-25T12:00:00+01:00
seeded .../demo/db/factory.db at now=2026-10-25T11:00:00+00:00: 12 goals, 111 tasks, 258 verdicts, 187 messages, 105 agents, 755 events
scrub scan: no hits
view it with (the HOME prefix is MANDATORY: without it the tokens page shows the real owner's live usage):
  HOME=... FACTORY_HOME=... factory serve --bind 127.0.0.1 --port 8799

Serve the read-only web UI on it:

HOME=$TRIAL/demo/home FACTORY_HOME=$TRIAL/demo bin/factory serve --bind 127.0.0.1 --port 18624
factory serve: http://127.0.0.1:18624/ (read-only, LAN only, no auth)
127.0.0.1 "GET / HTTP/1.1" 200 -
127.0.0.1 "GET /goals HTTP/1.1" 200 -

Open http://127.0.0.1:18624/. In another shell, list the demo goals (put HOME=$TRIAL/demo/home FACTORY_HOME=$TRIAL/demo in front of every factory command below):

factory goal list
ID     STATUS    PRIORITY  PROJECT_ID  DONE  TOTAL  TITLE
G-002  active    1         acme-web    3     9      Build the checkout flow
G-006  active    1         ledger-api  23    31     Rate-limit the public API
G-003  active    2         acme-web    4     5      Add account settings
...
G-011  planning  3         docs-site   0     0      Add versioned docs
G-012  planning  3         acme-web    0     0      Add a wishlist

2. Run the real factory

Put the CLI on your PATH (~/.local/bin must exist and be on it), then initialise:

git clone https://github.com/volekerb/hivemill.git ~/factory
cd ~/factory
ln -s "$PWD/bin/factory" ~/.local/bin/factory
factory init
initialised .../db/factory.db

Then register a project, bring up the headquarters and open the web UI:

factory project add myapp --name "My app" --repo ~/src/myapp --gh example-org/myapp
factory up
factory serve --bind 127.0.0.1

project add and up need a plain shell (workers are refused), a running herdr server and a logged-in Claude Code, so their output is not reproduced here; the walk-through is in docs/SETUP.md. Then open the boss's pane in herdr and describe what you want built.

Let Claude set it up

docs/adopt/ADOPT.md is an instruction file for your own Claude Code. It installs the factory step by step, checks each command's output against an expected result, and stops to ask before anything that touches GitHub, git config or your machine outside the checkout. In a fresh checkout, paste this into Claude Code:

Read docs/adopt/ADOPT.md in this checkout and set up Hivemill step by step; stop before anything outside the checkout.
Try the full CLI against a stub herdr

docs/SETUP.md#try-it-without-herdr runs the real CLI and web UI against the stub herdr in tests/stubs/, including factory up and factory agents, under a throwaway home. This is also what the fresh-install test follows.

A task's life in commands

Same demo home (HOME=$TRIAL/demo/home FACTORY_HOME=$TRIAL/demo in front of each command). Three walkthroughs with full output: from a goal to a merged PR, handling a rejection, the digest and scorecard.

A goal, with its intent, success criteria, plan, team and tasks:

factory goal show G-002
# G-002 — Build the checkout flow
status=active priority=1 project=acme-web

## intent
Let a visitor pay for a cart in one short flow.

## success_criteria
1. Cart page works.
2. Shipping details are collected.
3. Payment step completes an order.
4. Confirmation email is sent.

## plan v1 (lead-g-002-a, 2026-10-13T15:48:00+00:00)
1. Specify
2. Build
3. Verify

## teams
ID       LEAD_AGENT    STATUS  SCOPE
g-002-a  lead-g-002-a  active  Cart, shipping, payment and confirmation

## tasks
ID      STATUS       ROLE   ASSIGNEE      DEPENDS_ON  PR_URL                                            TITLE
T-0006  done         pm     pm-t-0006     []                                                            Specify the checkout flow
T-0007  done         coder  coder-t-0007  ["T-0006"]  https://github.com/example-org/acme-web/pull/104  Add cart page [SC1]
...
T-0014  todo         coder                ["T-0010"]                                                    Add receipt download

One task with its acceptance criteria and every verdict. This one failed QA, was rejected by the judge for touching a file no acceptance item covers, and merged on the third attempt:

factory task show T-0004
id: T-0004
goal_id: G-001
...
title: Add contact form [SC3]
role: coder
status: done
...
attempts: 3
...
## acceptance
1. A valid post returns 200 and queues one email.
2. A missing email returns 422 with a field error.
3. A message over 2000 characters is rejected.

## verdicts
- ... qa FAIL @ba49e234 by qa-t-0004: Changes needed: POST /api/contact with email 'a@' returned 200, expected 422 (api/contact.py:31 only checks for an @ sign).
- ... reviewer PASS @3bb1e7aa by reviewer-t-0004: Checked input validation in api/contact.py and that the mail queue call is made once per request.
- ... qa PASS @3bb1e7aa by qa-t-0004: Posted a valid, an invalid-email and a 2001-character message; got 200, 422 and 422 as specified.
- ... judge REJECT @3bb1e7aa by judge-t-0004: Rejected: the diff edits src/cart.js:88, which no acceptance item of this task covers. Remove it or split it into its own task.
- ... reviewer PASS @a6bd606d by reviewer-t-0004: Checked input validation in api/contact.py and that the mail queue call is made once per request.
- ... qa PASS @a6bd606d by qa-t-0004: Posted a valid, an invalid-email and a 2001-character message; got 200, 422 and 422 as specified.
- ... judge MERGE @a6bd606d by judge-t-0004: Reviewer and QA PASS at a6bd606d; checks green; merging.
...

Reviewers and QA record verdicts with factory verdict, the judge merges or rejects with factory judge (docs/verdict-gates.md). The owner's overview of everything:

factory digest
# Factory digest ...

Leads: 5 live, 1 parked, 0 queued; workers live 10

## G-002 — Build the checkout flow (active)

### Done
_nothing_

### In progress
- T-0010 Add payment step [SC3] (in_review, coder-t-0010, attempts 2)
- T-0011 Verify checkout end to end (in_progress, qa-t-0011, attempts 1)
- T-0012 Add order confirmation email [SC4] (in_progress, coder-t-0012, attempts 1)
...
### Team scores
| team | tasks | done | merged | rejections | retries | score |
|---|---|---|---|---|---|---|
| g-002-a | 9 | 3 | 2 | 2 | 2 | 4.0 |
...

How it works

  • Separation of roles. Each role has its own prompt and its own permission settings, enforced by hooks rather than by trust.
  • Evidence over claims. A task is done when a reviewer and QA have checked the PR diff and a real test run, not when an agent says so.
  • Resource-aware on a small box. A spawn gate watches RAM, load and the number of Claude processes, and queues new agents until there is room. The whole factory runs on one modest VM.
  • Everything auditable. Goals, plans, tasks, messages, verdicts and decisions are rows in SQLite with an append-only event log, exported to readable markdown every minute.
flowchart TB
    owner([owner]) <--> boss
    boss <--> director
    director <--> lead["team leads (lead)"]
    lead --> pm
    lead --> coder
    lead --> qa
    lead --> reviewer
    lead --> judge
    director --> cleaner

    subgraph infra [Infrastructure]
        direction LR
        tick["tick (systemd timer, every minute)"]
        herdr["herdr panes (one per agent)"]
        db[("SQLite DB + factory CLI")]
        web["web UI (read-only)"]
    end

    tick -->|"reap, spawn, nudge, export"| herdr
    herdr -->|"hosts every agent"| boss
    boss -.->|"factory CLI"| db
    director -.->|"factory CLI"| db
    lead -.->|"factory CLI"| db
    db --> web
    tick --> db

The merge gate, for every change:

flowchart LR
    coder["coder opens PR"] --> reviewer["reviewer: diff verdict"]
    coder --> qa["qa: test and acceptance verdict"]
    reviewer --> judge{"judge"}
    qa --> judge
    judge -->|"both pass"| merge["merge to main"]
    judge -->|"any fail"| retry["back to coder with findings"]
    merge --> cleaner["cleaner removes worktree and branch"]

Details: docs/lifecycle.md, docs/verdict-gates.md, docs/db-layout.md.

Features

Feature What it does Docs
Run it
Setup and operations Install, boot units, reboot recovery, identity rules SETUP, operations
Adopt with Claude An instruction file your own Claude Code follows to install it ADOPT
Ship safely
Verdict gates The judge merges only on passing reviewer and QA verdicts verdict-gates
Goal lifecycle From request to goal to done, with plan and success criteria goal-lifecycle
Contain agents
Worker guard Hooks that block actions outside a role's job worker-guard
Worker sandbox Namespaced spawn for workers, with its known limits worker-sandbox
Stopping a worker Stop one agent cleanly without losing its work stopping-a-worker
See it
Web UI Read-only pages for goals, tasks, agents, throughput and quality web-ui
State branch Markdown exports and a DB dump pushed to the state branch state-branch

Each feature has its own file under docs/ (all pages: docs/README.md). Also: tests and CI, lessons, per-role plugins, updating persistent agents, boss mail.

back to top

How it compares

One Claude Code session Hand-run subagents Hivemill
Role separation One agent plans, writes and judges its own work You choose the roles each time Fixed roles with their own prompts and permissions, enforced by hooks (worker-guard)
Independent review The author reviews itself Only if you start a reviewer A separate reviewer and QA check every PR (verdict-gates)
Merge gate You merge by hand You merge by hand The judge merges, gated on reviewer and QA (verdict-gates)
State and audit The chat transcript Whatever you wrote down Goals, tasks, messages and verdicts in SQLite with an append-only event log (db-layout)
Resource gate None None A spawn gate queues agents until RAM, load and Claude process count allow (spawn-queue)
Recovery after reboot Start over Start over Boot units resume the headquarters and active teams (operations)

Works with: Claude Code, herdr, gh, systemd user units and the Moshi phone app.

The web UI

A read-only web UI shows goals, tasks, live agents, throughput and quality, in light and dark themes. Start it with factory serve (docs/web-ui.md). The screenshots come from fictional demo data only (docs/demo-data.md); click one for the full-size light image.

The overview page: live agents, open PRs, goals, items waiting on the owner and usage
Overview: agents, PRs, goals and usage
The goals page: goals with status and priority
Goals: status and priority
The tasks page: tasks by status with assignee and PR
Tasks: status, assignee and PR
The agents page: live agents by role and team
Agents: live agents by role and team
The throughput page: merged changes over time
Throughput: merged changes over time
The quality page: rejections and retries per team
Quality: rejections and retries per team

Status and limits

  • Every agent is a Claude Code session, so it uses your Claude usage.
  • It is bui

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#agents · #software-factory