foreman
The foreman plans. The crew builds.
What it is
One Claude Code session can do a lot on its own. But when a task has several independent pieces, doing them inline fills the main context with file dumps and test output, runs the pieces one after another, and leaves you trusting the session's own word that each one worked.
foreman is a Claude Code plugin that turns the main session into an orchestrator. Like a foreman on a building site, it reads the plan, splits the work, hands each piece to a crew member and checks the result - but it does not lay bricks itself. The main session plans, spawns subagents, relays between them and verifies what they return; the subagents do the work.
You turn it on with /foreman on for the whole session, or run a single task or skill through it with /foreman <task>.
Features
- The main context stays clean - every change, even a one-liner, goes to a subagent; the main session keeps only the conclusions.
- Parallel pieces - pieces that do not depend on each other are spawned in one message, so they run at the same time; only a real dependency is serialized.
- Verified results - an agent's
done is a claim, not proof. The foreman reads the diff or runs the check before accepting it, and reports what stays not verified.
- One level deep - only the main session spawns agents. Agents never spawn agents, never message each other, and report only to the foreman. A hook enforces it.
- A fitting agent per piece - locating, small edits, reviews, plans and multi-step work each go to a matching agent type, with a cheaper model and lower effort for mechanical pieces.
- Agent board - one table of every agent, its job and its stage (
queued, running, waiting, verifying, done, failed), kept in step by hooks.
- Status line badge -
[FOREMAN:ON], [FOREMAN:TASK] or [FOREMAN:OFF] with the board's counts.
- Runs other skills -
/foreman <skill> <args> runs a skill with its work going to agents while its user gates and git steps stay with the main session.
- Survives compaction - the mode lives in a per-session flag; after a compaction or resume a hook tells the session to re-read the skill and reconcile the board.
- Live view - optional foreman-vision shows each foreman session as a floor of a pixel-art office.
- Optional tracking - work that spans sessions can be tracked with beads (
bd).
- Optional Codex delegation - with openai/codex-plugin-cc installed, foreman checks Codex at mode-on, asks once whether to delegate, routes suitable pieces to Codex, verifies them like any other agent's work and falls back to Claude on any failure. See Codex.
Quick Start
Requirements
- Claude Code. foreman is a Claude Code plugin and relies on its hooks and subagents.
git, only to install from the repo instead of as a plugin.
bash 3.2 or newer and jq 1.6 or newer in the shell Claude Code runs hooks in. On Windows that is Git Bash; install jq there too.
- Recommended: the superpowers plugin, for planning, debugging and review skills foreman can run.
- Optional: the caveman plugin (needs Node.js). foreman prefers its
caveman:cavecrew-* agent types for small pieces and falls back to Explore and general-purpose without it.
- For the optional live view: Node.js and
curl, plus foreman-vision itself (see its README).
- For the optional tracking:
bd. foreman offers to install it when it is needed and you say yes.
- For the optional Codex delegation: the Codex CLI, signed in, the codex-plugin-cc plugin, and Node.js. Without them foreman says nothing about Codex.
Install
Ask your agent:
Install foreman by following https://raw.githubusercontent.com/ilkemerol/foreman/main/INSTALL.md
INSTALL.md checks the tools, installs foreman the way you choose, sets up the status line, asks about the worktree base, offers the optional plugins and runs the checks.