foreman
Open-source TUI orchestrator for headless Claude Code agents with gated pipeline
Foreman brings much-needed process discipline to Claude Code workflows — its gated pipeline, crash-safe state, and cost controls are well-executed. Just keep your expectations in check: it's a young open-source project requiring local CLI setup and only works with Anthropic models.
- Developers using Claude Code who want structured project workflows with governance
- Teams implementing AI-assisted development with human oversight and audit trails
- Individual open-source maintainers seeking automated PR pipelines with gated reviews
- Engineering orgs piloting agentic software delivery in a controlled environment
- Users seeking a no-setup, cloud-hosted agent platform
- Teams relying on non-Anthropic AI models (only Claude Code supported)
- Beginner developers unfamiliar with terminal UIs or Git workflows
We scan live Reddit threads, YouTube comments, X posts, G2 reviews and other communities — and hand you an honest verdict in under a minute.
- Honest verdict, not marketing
- Real pros & cons from real users
- Attributed quotes with receipts
3 free scans · no card needed
Skip Foreman if you want a cloud-hosted, multi-model agent platform or prefer visual tools over terminal UIs.
Foreman is free and open-source (MIT license). You only pay for your own Anthropic API usage via Claude CLI. Compared to cloud-hosted platforms like GitHub Copilot or Cursor, Foreman has no subscription fee but requires you to manage your own API keys and infrastructure.
In short
foreman — Open-source TUI orchestrator for headless Claude Code agents with gated pipeline. Best for Developers using Claude Code who want structured project workflows with governance, Teams implementing AI-assisted development with human oversight and audit trails, Individual open-source maintainers seeking automated PR pipelines with gated reviews. Free to use.
Viability Score
How likely is foreman to still be operational in 12 months? Based on 4 signals — momentum (how recently it shipped), wrapper dependency, revenue model, and web presence.
Last calculated: July 2026
How we score →Key Features
- Terminal UI (TUI) for supervising Claude Code agents
- Gated pipeline: plan, ADR/PRD, issues, TDD build, e2e
- Headless Claude Code execution with stream-json parsing
- Human-in-the-loop gate reviews at design phases
- Hash-sealed approvals that auto-revert if docs change
- Per-run turn/cost/time budgets enforced by Foreman
- Daily cost ceiling with hard stop
- Crash-safe state via human-readable files in repo
- Worktree isolation for non-colliding parallel workers
- PreToolUse deny hook: blocks agents from writing own verification
- Evals flywheel: retro-clustering failures into gated skill patches
- Keyboard-driven Textual TUI with full keymap
- Demo mode with mocked agent backend (zero token cost)
- Configurable pipeline stages via YAML
- CLI commands: foreman init, build, status, retro
About foreman
Foreman is an open-source terminal UI (TUI) that supervises headless Claude Code agents through a gated software-delivery pipeline. Designed for developers who want to scale AI-assisted coding without losing control, it enforces a structured workflow: plan, ADR/PRD, issues, TDD build, and end-to-end validation. You point it at any Git repository, and Foreman spawns the locally-installed Claude CLI in headless stream-json mode, parsing its event stream and enforcing per-run turn/cost/time budgets. State is stored as human-readable files committed inside the repo, making crash recovery seamless. Key features include a keyboard-driven Textual TUI, worktree isolation for parallel agents, per-run caps with a daily cost ceiling, and an evals flywheel that retro-clusters failures into gated skill patches. The pipeline uses human-in-the-loop gates on design phases, then guardrailed autonomy for builds. A demo mode lets you explore the full TUI without spending API tokens using canned stream-json. Foreman also enforces a PreToolUse deny hook that blocks agents from writing their own verification, and hash-sealed approvals that auto-revert if documentation changes. Foreman is ideal for teams using Claude Code that need governance and auditability over pure speed. It's not a cloud-hosted agent platform; you must have the Claude CLI installed locally and manage your own API keys. As an MIT-licensed open-source project, it's free to use and modify, with an active GitHub community driving its development. Compared to alternatives like Aider or Open Interpreter, Foreman offers a more structured, process-enforcing approach but lacks multi-model support.
Behind the Verdict
If you're running Claude Code in production and want to prevent chaos, Foreman is worth a serious look. Its human-in-the-loop gates on design phases are a smart middle ground: you review the plan and ADR, then let the agent autonomously build but with enforced budgets and guardrails. The crash-safe state via committed files is a standout — kill the process mid-build and it recovers from disk, no database needed. Demo mode means you can kick the tires without spending a dime on tokens. When should you pass? If you need multi-model support, Foreman only supports Claude Code via claude CLI. Beginner developers unfamiliar with terminal UIs or Git workflows may struggle with the setup. And if you just want fast code generation without process overhead, this isn't your tool — the gates add friction by design. Compared to Aider, which supports multiple models and has fewer process barriers, Foreman is more opinionated and structured. Aider is more flexible; Foreman is more disciplined. For teams that want guardrailed agentic delivery, Foreman is the better choice. For ad-hoc coding assistance, Aider is simpler. In practice, the biggest caveat is that Foreman is still early stage — limited integrations, no API, and a relatively small community. But the architecture is solid, and the roadmap suggests growing capabilities. If you're comfortable with open-source and can tolerate some rough edges, it's a promising tool.
Researching foreman? Get your full AI stack in 60 seconds.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Real-world workflow fit
Concrete scenarios for the personas foreman actually fits — and what changes day-one when you adopt it.
Point Foreman at your GitHub repo, define a high-level plan, and let it generate ADRs, issues, and test stubs with human approval at each design gate.
Outcome: Structured delivery with audit trail, crash recovery, and cost control—no wasted API tokens on unapproved designs.
Set up Foreman on a shared CI runner, configure pipeline stages via YAML, and enforce per-run budgets and a daily cost ceiling.
Outcome: Multiple agents work in parallel isolated worktrees, with hash-sealed approvals preventing doc drift. Failures are automatically clustered into skill patches.
Use Cases
- Automate a gated software delivery pipeline from planning to e2e testing using Claude Code agents.
- Generate architecture decision records and product requirement documents directly from a repository.
- Supervise AI agents performing TDD workflows with human approval gates at each stage.
- Onboard new projects by having Foreman create issues, ADRs, and test stubs from a high-level plan.
- Maintain audit trails of AI-generated code changes through pipeline stage checkpoints.
Models Under the Hood
as of 2026-07-15
Limitations
- Foreman is primarily a TUI tool with no web or mobile interface.
- It depends on Claude Code's capabilities and Anthropic's API—no support for other LLMs is currently available.
- The project is still in active development (as of July 2026) and lacks a formal API, which may limit integration with existing CI/CD systems.
- Pipeline configuration is done via YAML, requiring some familiarity with the tool's schema.
as of 2026-07-01
Where the pricing makes sense
The company stage and team size where foreman's pricing actually pencils out — and where peers do it cheaper.
Foreman is free and open-source (MIT license). You only pay for your own Anthropic API usage via Claude CLI. Compared to cloud-hosted platforms like GitHub Copilot or Cursor, Foreman has no subscription fee but requires you to manage your own API keys and infrastructure.
Setup time & first value
How long it actually takes to get something useful out of foreman — broken out by persona, not the marketing-page minute.
For a solo developer familiar with Git and terminal: clone the repo, install dependencies with uv, ensure Claude CLI is installed, then run foreman init in your target repo. First pipeline run within 15 minutes. Teams need shared configuration and YAML setup—allow 30–60 minutes for the initial pipeline definition.
Switching to or from foreman
How to bring data in from common predecessors and how to get it back out — written for the switcher, not the buyer.
- ↗To Aider: if you need multi-model support or prefer a simpler chat-based loop, switch to Aider's command-line interface.
- ↗To Open Interpreter: if you need a more general-purpose agent beyond software delivery, migrate to Open Interpreter for broader task automation.
Resources & Guides
- Resourcegithub.com
Foreman · foreman
Helpful link from github.com
- Resourcegithub.com
CONTRIBUTING · foreman
Helpful link from github.com
- Resourcegithub.com
AGENTS · foreman
Helpful link from github.com
- Resourcegithub.com
DECISIONS · foreman
Helpful link from github.com
- Resourcegithub.com
CHANGELOG · foreman
Helpful link from github.com
- Resourcegithub.com
Config.Sample · foreman
Helpful link from github.com
Official links
Tools that pair well with foreman
Common stack mates teams adopt alongside foreman, with the specific reason each pairing earns its keep.
Featured Head-to-Head Comparisons
Alternatives to foreman
View allFrequently Asked Questions
Categories
Best-of guides
Used foreman? Help shape our editorial sentiment research.