How I run an AI factory at home
Moving coding agents off my laptop made Hivemill possible. Here’s where a task runs and what happens when I close the lid.
I was using Herdr to manage my coding agents when I moved them onto a server at home. The change sounds small. It meant the lifetime of a task could be longer than the time I had my laptop open. That setup grew into Hivemill.
What stays on the host?
The homelab runs the factory process, keeps each task’s checkout and records what happened. Claude Code connects to its model provider. Pull requests and CI checks live on GitHub. From my laptop, I can inspect the work or answer a question. Closing it leaves the host running.
Following one task
Take a CSV export as an example. The spec can require one header row and one row per order. A task session implements it and opens a pull request. The runner repeats the named tests and commands. A second session reads the diff and checks each change against the spec. A change can go back for another pass or wait for a human decision.
What’s left after a task?
A merged pull request still leaves a checkout on disk. The runner checks whether the task is old enough, whether the work is saved, and whether a process is still using the directory. The dry-run report shows what it would keep and why. The factory toolkit links to the cleanup command and its rules.