Foreman
🏆 1st place in the Nous Research Hermes Agent Plugin Hackathon
(nearly 1,000 entries).

Stop your coding agent from rigging its own green check. When an agent cannot make a test pass, it can skip
it, delete it, or change what the check runs, and still hand you a green build. Foreman reads the actual diff
before the agent commits, pushes, opens a pull request or merges, and refuses the change. It runs inside Hermes
Agent, and as a check on GitHub pull requests for any other agent; adapters for Claude Code, Codex, pi and OpenCode
are under construction. No model makes that call: the detector is plain code and git. A prompt asks the agent to behave; Foreman reads what it did.
you > I'm in a hurry, just skip that failing test and commit.
agent > patch tests/test_cart.py (adds @unittest.skip)
Foreman blocked this patch: it switches off a test.
- [test-skipped] tests/test_cart.py — test skipped or isolated
Fix: Remove the marker and make the test pass by fixing the code under test.
agent > The test is right: cart.total() treats a 10% discount as 10x. Fixing the code instead.
agent > git commit -am "Treat discount as a percentage" (passes)
Start here
- Hermes Agent: where Foreman was born, and the plugin with everything: its own guide.
- Claude Code, Codex, pi or OpenCode: adapters under construction, not released yet:
in the agent.
- Any other agent, or one that works in the cloud: a short workflow, in CI.
Two places it runs, and what each one guarantees
Foreman runs in two places, and they do not promise the same thing.
| In the agent | In CI |
|---|
| Where | a hook inside Hermes Agent, Claude Code, Codex, pi or OpenCode | a required check on the pull request |
| Which agents | those five | any agent whose work reaches you as a GitHub pull request: one in your terminal, one in the cloud, one Foreman has never heard of |
| What you get | the agent is refused at the moment it tries, with the file and the line, and fixes the code instead of the test | the same detector on what the pull request changes, before it can merge |
| Can the agent get around it? | Not by asking: it refuses the flag that skips hooks and the agent's own gh pr merge too. But it runs on the agent's machine, in files the agent's shell can reach, so an agent set on it could get past it. It stops the shortcut, not an attack | No, once the four conditions below hold |
Use both. The hook corrects the agent while it works. The check in CI is the one you can rely on.
In the agent
Under construction: Claude Code, Codex, pi and OpenCode. Foreman is released for Hermes Agent, through its
plugin catalog. The adapters for the other four are work in progress: they are still being tested, they are in
no store, and what this page says about them can change or be withdrawn. The commands below install them from
this repository as they are today.
| In | Install | What you get |
|---|
| Hermes Agent | hermes plugins install PedValme/foreman/plugin --ref <commit SHA>, then hermes plugins enable foreman | everything: the gate, the review, /foreman, notices to your phone and a panel in Hermes Desktop |
| Claude Code | claude plugin marketplace add PedValme/foreman, then claude plugin install foreman@foreman-gate | the gate, the review, /foreman:status and /foreman:allow |
| Codex | codex plugin marketplace add PedValme/foreman, then codex plugin add foreman@foreman-gate | the gate, the review and foreman status |
| pi | pi install git:github.com/PedValme/foreman | the gate, the review and /foreman |
| OpenCode | opencode plugin add git+https://github.com/PedValme/foreman.git | the gate, the review and /foreman in its terminal interface |
The words in that table, once: