Make your coding agent go further.
Agent Foreman hands the busywork to plain code, the builds and tests to your other machines, and the drafts and second opinions to local models and partner agents. Your agent stays in charge: it grades every finding, reads every diff and does the final polish and merge.
For people who run local LLMs, tinker with local AI, and build in hybrid cloud-and-local setups. Works alongside Claude Code, Codex CLI and other coding agents.
What it is
A single Go program, command line only. No GUI, no installer service.
Its worker and watcher run only when you start them, and it never opens a listening port.
Your coding agent reads the README, interviews you about what you've got, writes the config and installs the pieces. Hand-editing is optional.
Apache-2.0. An enthusiast project, shared for fun. No account, no telemetry, no cloud of ours.
Three ways your agent goes further
Compiles, test suites, builds and fuzzing run on your other machines over SSH: a spare desktop, an ARM laptop, a home server. Your agent asks for "the service suite"; Agent Foreman puts it on a free machine and hands back the verdict.
Queues, merges, test routing, review packing, secret scans, ledgers and machine slots are plain code, not model calls. Your agent spends no tokens on bookkeeping.
Local-model drafts, prove-it bug hunts, security reviews and red-teams by other cloud models, and research with citations. Then a review loop, and your agent does the final polish.
The crew
The crew chart at the top shows who does what: you decide, your primary agent manages, Agent Foreman dispatches, secondary agents in the cloud review, and a local LLM and a Qwen search pair work on your own hardware. Here's how a draft moves down the line. The flows animate briefly when the page loads; hover over or focus a chart to replay them.
House rules
- Your primary agent reads every diff before it merges. Drafts never merge as they are.
- A secret scan runs before any code leaves your machines.
- The local LLM runs only in the hours you allow, and yields to games.
- Your agent prepares decisions with sizes and a do-less option, and you make them.
The toolbox
Names may change before the public release.
Land
Lands commits in a scratch worktree, then builds, vets, tests and writes a verdict. Suites go to whichever machine is free, and a sick host is reported separately from a failing test.
Queue, worker, status
A job queue run by a worker with no listening port. Status shows the queue, the worker, and who holds each machine slot.
Review
Plans, launches and triages outside reviews of a commit range by partner models. A packer builds each review's input with a secret scan and a deny-list, so private files and secrets never leave your machine.
Search
Local code search so your agent burns fewer tokens hunting: a symbol map (definitions and callers), grep, and a small local embedding-plus-reranker model pair.
Local drafting
A quantized local model on a consumer GPU writes tests-only coverage, runs prove-it bug hunts ("write a failing test or report nothing"), and drafts code and fix passes. A static safety gate checks everything before any of it runs, only in the hours and GPU headroom you allow, and it yields when you start a game.
The numbers, from one real setup
Measured on one developer's hybrid setup: a desktop with a 12 GB GPU, a spare x64 box, an ARM laptop, and a few cloud accounts. All of it is work done somewhere other than the primary agent.
| What | Count | Period (2026) |
|---|---|---|
| GLM review, red-team and bug-hunt runs on a flat plan of about $151 a year | 542 | Sep 22 – Nov 28 (about 98 hours of agent time) |
| Meta Muse reviews and red-teams | 358 | Nov 16 – Dec 2 (about two weeks) |
| Local-model jobs on one consumer GPU, $0 on any meter | 430 | Nov 18 – Dec 1 (294 coverage, 74 prove-it hunts, 62 drafts and fix passes) |
| Lines of Go tests written by the local model, merged after grading | ~86,000 | Nov 5 – Dec 1 (43 commits, 202 test files) |
| Test-suite runs moved off the dev box to two spare machines over SSH | 2,896 | Nov 5 – Dec 2 (about 367 hours of test time) |
| Local coverage jobs accepted after grading, one measured week | 70% | Nov 17 – 24 (104 of 149; about 88% after a gate fix) |
| Muse review findings accepted by the grading agent, one measured week | 83% | Nov 17 – 24 (of 76 findings) |
The honest small print
- Delegation isn't free. Writing a brief, reading a report and reviewing a diff cost your primary agent real calls. So Agent Foreman only sends out work whose result is cheap to check: a failing test, a finding with a file and line, a citation.
- Reviewers miss things, so every reviewer is graded. One day a local model's draft shipped a test file that didn't even parse. Both outside reviewers missed it; a plain test run caught it. That's why your agent always runs the tests, and why security-critical code gets two reviews.
- No "X% saved" claim. We have no clean counterfactual, so we show counts of work done elsewhere, not a percentage.
- Your mileage will vary. These numbers come from one setup. Yours depends on your hardware and accounts.
Bring what you've got
Any machine your agent can reach over SSH with a key becomes a build or test slot.
Partner models through their API or CLI: for example a bridge to Meta Muse, Codex CLI, or GLM through Z.ai's Anthropic-compatible endpoint.
Sized to your hardware: several local draft agents if you have the GPUs, or a small embedding-and-reranker pair for search.
Your agent installs and configures each piece, and smooths over the rough parts: drivers, quantizations, SSH keys, endpoint settings.
You need Go 1.27 and Git, plus SSH for any remote test machines. Build it from source; the command is foreman:
git clone https://github.com/BrentCrude79/agent-foreman
cd agent-foreman
go build -o foreman . # or: go install
# Then ask your agent:
"Read the Agent Foreman README and set it up for me."
# It interviews you, writes the config, then:
foreman status
The README opens with a section for your coding agent: it is the installer, and it asks before it changes anything on your machines.
Already have Ruby's foreman? The Ruby gem of the same name (a Procfile manager) also installs a foreman command. If you use it, install Agent Foreman under another name or alias it, for example agentforeman or afm.
Your code stays on your machines, unless a route you set up sends out a packed, secret-scanned fraction of it. No telemetry, no Agent Foreman cloud. Partner outputs are treated as data, never as instructions.
It's designed so reviewers, routes and machines are config entries: add a new model or box without touching code.
What it is not
- Not a hosted service. There's no account and nothing to sign up for.
- Not an agent itself. It extends the coding agent you already use.
- No GUI, no background service, no open ports.
Get it
The source, README and licence are on GitHub: github.com/BrentCrude79/agent-foreman. There are no prebuilt binaries or tagged releases yet, so build it from source as shown above.
The optional local-model drafting pipeline lives in contrib/local-model-drafts. An outside security audit of its safety gate is scheduled, and any fixes will land on the main branch.