Skip to content

All work

agent-hub: a Local Multi-Agent Coding Pipeline

A cross-platform command-line toolkit that runs a multi-agent coding pipeline on local models (OpenCode with llama.cpp) in any repository, with a VS Code panel and a web monitor that shows what the agents are doing.

Year
2026
Kind
Developer Tool
Role
Developer
Duration
October 2026
With
Personal project
For
Personal project
Problem
Coding agents that run on your own machine need structure: stages, isolation from your working tree, a way to stop them, and a record of what they did.
Approach
A pipeline of fixed stages, each run in an isolated Git worktree, with two kinds of gate that wait for a person, a lock and queue for concurrent runs, and a local monitor.
Result
Unit tests and a mocked end-to-end run of the whole pipeline pass on macOS. Verification on Windows with a real model was still pending when this was written.

Built with

  • Node.js
  • JavaScript
  • OpenCode
  • llama.cpp
  • Git worktrees
  • VS Code Extension API
agent-hub: a Local Multi-Agent Coding Pipeline: cover image

One long conversation is not a workflow

A local model can write code, but one long conversation is a poor way to run it. Work needs stages. It should not touch the files you are editing. You should be able to see what it is doing, and it should stop and ask when it is unsure.

Stages, gates and a separate worktree

agent run "<prompt>" starts a pipeline with fixed stages: intake, planning, coding, testing, fixing, reviewing, documentation and pull request. The model is served locally with llama.cpp, and OpenCode drives the agents.

  • Isolation. Each run works in its own Git worktree, so the agent never edits your working tree unless you ask for in-place operation.
  • Gates. A run can stop in one of two states, waiting at a gate or blocked, until a person responds. A stopped run can be resumed.
  • A lock and a queue. Runs in the same repository do not collide.
  • Transparency. A web monitor on the local machine shows every run, its stage and its timeline. A VS Code sidebar panel shows the same list and offers a prompt box, stop and resume.
  • A doctor command. agent doctor checks that Git, Node, OpenCode and the model server are present before anything starts.

What has been verified

On macOS the unit tests pass, and so does a mocked end-to-end run that covers every stage, both gates, resume, worktree isolation, in-place operation, the lock and queue, and the failure and stall scenarios. Verification on a Windows PC with a real model was still pending when this was written.

The screenshots show the web monitor and the VS Code panel with sample runs in made-up repositories, not runs of a real model.

Screens