TL;DR

  1. Most coding agent advisors are tools that the main agent calls. They help when the agent knows it is stuck, and they stay out of the confident mistakes it never asks about.

    Link to this findingSave as image (PNG, 1200 by 630 pixels)

  2. An advisor that reviews every turn on its own also catches the mistakes nobody asked about, but it needs rules for when to stay silent, and the severity it picks decides whether the agent stops to rework or just leaves a note.

    Link to this findingSave as image (PNG, 1200 by 630 pixels)

  3. Instructions for a watching advisor work best when they add only what its built-in prompt leaves open: the risks of the project, a severity for each kind of finding, and how much a fix must be worth before finished work is redone.

    Link to this findingSave as image (PNG, 1200 by 630 pixels)

Coding agents make confident mistakes. They pick an approach early, build on it for dozens of turns and then report the result as done, and the wrong turn only shows when someone reads the diff. Many coding agents can by now ask a second model for a second opinion, and most of them leave the decision when to ask to the main agent. Oh-My-Pi (OMP), the coding agent harness I use at least for the last 6 months, turns this around: its advisor reads every turn on its own and injects itself only when it sees a problem.

Most Coding Agent Advisors Wait to Be Asked #

The common advisor designs share one shape: the main agent gets a tool, and calling that tool hands the conversation to a second model, which answers with advice.

Anthropic’s advisor tool lets a faster executor model consult a stronger advisor model in the middle of a request. The advisor reads the full transcript, runs without tools and returns a plan or a correction. In Claude Code, the same tool is switched on with /advisor, and the docs are clear about who decides: “the timing is model-driven rather than rule-based”, and there is no setting to force a call. When they launched the advisor strategy, Anthropic reported that Sonnet 4.6 with an Opus advisor scored 2.7 percentage points higher on SWE-bench Multilingual than Sonnet alone, at 11.9% lower cost per task.

A second design comes from the coding agent Amp, whose team introduced the Oracle approach in 2025 as a read-only subagent on OpenAI o3, next to Sonnet as the main model. When they later moved it to GPT-5, they named its “different training lineage” as one reason it is a good partner for Sonnet. The Amp team wrote that they “consciously haven’t pushed the oracle too hard in the system prompt” and rely on the user to ask for it. The current Oracle plugin even tells the main agent not to consult the Oracle unasked for “Asking whether completed work is correct, safe to test, or ready to ship”.

GitHub likely took the cross-family idea furthest. Rubber Duck in Copilot CLI deliberately picks its critic from another model family: a GPT model reviews a Claude session, and since May a Claude model also reviews a GPT session. GitHub reports that Claude Sonnet 4.6 with a GPT-5.4 Rubber Duck closed 74.7% of the gap to Claude Opus 4.6 on SWE-Bench Pro. Rubber Duck is still a tool call: it is off by default and runs when the user asks, and with automatic invocation switched on, the main agent picks the checkpoints itself.

Who triggers the advisor in four coding agent harnesses
AdvisorWho decides when it runsAdvisor modelTools of the advisor
Anthropic advisor toolthe main agentan equal or stronger Claude modelnone
Amp Oraclethe main agent, mostly on requesta model from another vendor, set in the pluginread-only
Copilot Rubber Duckthe main agent, on request or at checkpointsa model from another familyread-only
Oh-My-Pi advisorthe advisor, after every turn or every runany model OMP can resolveread, grep, glob by default

The products split along the model they pick: a stronger model that plans for a cheaper one, or a model from another family that doesn’t share the main agent’s blind spots. What they have in common is the trigger. The advisor only sees what the main agent decides to show it, and a main agent that is confident about a wrong path has no reason to call for help. GitHub names exactly this as the problem (“Confident mistakes can compound”), and still leaves the checkpoints to the agent that makes the mistakes.

The Oh-My-Pi Advisor Reviews Every Turn on Its Own #

The OMP advisor approach is slightly different. After each turn of the main agent, OMP sends the advisor the new part of the transcript: the reasoning, the tool calls and their results. The advisor is an agent of its own with read-only read, grep and glob tools, so it can check a suspicion in the workspace before it says anything. Its only way back into the session is an advise tool that takes a single note and a severity. OMP renders the note into the main agent’s context as <advisory severity="concern" guidance="weigh, don't blindly obey">, so the main agent can still disagree. The advisor can’t approve or block a tool call, and it can’t change the session.

The built-in advisor prompt is written to keep such an advisor quiet. It prefers silence when the agent is on track, allows only evidence from the transcript or the advisor’s own tool output and budgets about 2 to 3 tool calls per note. It forbids comments on the user’s intent and on the size of a diff, with a few exceptions such as a bounded request that gains features nobody asked for. Among the findings it lists as a concern are speculative wrappers, dependencies and files, local workarounds for a cause the agent already found elsewhere, and guesses where an executable check exists. Thin verification for the risk just taken is a blocker.

The severity decides what happens to a note, and that makes it the most important choice an advisor makes:

  • While the main agent is still working, only a blocker interrupts it. Nits and concerns wait until the run ends.
  • When the agent has finished with an answer, a concern makes it continue and rework by default (advisor.continueSeverity: concern). A nit stays a card at the end of the transcript and reaches the agent with my next message.
  • After a concern or blocker has interrupted the agent, further concerns arrive without interrupting for 3 turns (advisor.immuneTurns). Blockers are exempt.

So when the advisor files a finding as a nit or a concern, it effectively chooses between “tell me” and “redo the work now”. Other agent platforms have watching reviewers too, such as the reviewer interjection in Zeta Alpha’s agent platform that reads the transcript every few tool steps or after repeated tool failures. With OMP I can go even further via custom configuration and for example run several named advisors, each with its own model, cadence and instructions.

Two Advisors in My WATCHDOG.yml #

OMP reads the list of advisors from a WATCHDOG.yml. My list has two entries:

File: WATCHDOG.yml
advisors:
  - name: General
    model: openrouter/anthropic/claude-sonnet-5.5:medium
    reviewMode: turn
    syncBacklog: off
    includeReasoning: false
    maxNotesPerUpdate: 2

  - name: Minimal change
    model: openrouter/anthropic/claude-opus-5.5:medium
    reviewMode: agent-end
    syncBacklog: strict
    includeReasoning: false
    maxNotesPerUpdate: 2
    instructions: |
      @~/.omp/agent/minimal-change.md

The General advisor reviews every turn (reviewMode: turn), and with syncBacklog: off the main agent never waits for it. Every tool-call round of the main agent counts as a turn, so this advisor reads a lot. The Minimal change advisor reviews only the final answer of a run (reviewMode: agent-end). With syncBacklog: strict, OMP holds the main agent at that point until the review is done, so a concern from Opus turns into a rework before the run ends. The OMP docs call this combination a synchronous final review.

includeReasoning: false keeps both advisors independent in yet another way: OMP drops the main agent’s thinking blocks from what these advisors receive, so they judge the actions, tool results and outputs, without reading the reasoning that led there first. maxNotesPerUpdate: 2 halves the default budget of 4 non-blocker notes per review. Blockers don’t count against it.

The second entry imports its instructions from a separate file with @~/.omp/agent/minimal-change.md. OMP expands such imports in instruction fields the same way it does in context files, so I can keep the prompt in Markdown and reuse it.

Choosing the two models is the least settled part of my setup. My main agent runs on GPT-6.2 Sol, an OpenAI model, so both advisors come from Anthropic, which is the cross-family argument behind Rubber Duck. Both also score above Sol on Terminal-Bench 4.0, with 64.14% for Sonnet 5.5, 65.15% for Opus 5.5 and 60.61% for Sol, so neither advisor reviews a stronger model. The General advisor reads every turn, so the price per input token matters most, and on OpenRouter Sonnet costs half as much as Opus. The Minimal change advisor runs once per run, but the main agent waits for it, so speed and few false alarms matter more. In a code review benchmark that Qodex ran with their own review pipeline at medium effort, Opus 5.5 raised no false alarm on clean code and needed 65 seconds per review, against 127 for GPT-6.2 Sol and 148 for Gemini 4 Neon. Fable 5.2 ties Opus on Terminal-Bench 4.0 at twice the price, so I don’t use it here.

However, none of these numbers show that I picked the best advisors. Review benchmarks measure how well a model finds bugs in a finished diff, and agent benchmarks measure how well it does the work itself. A watching advisor needs something else: the judgment to stay silent over a long transcript and to speak up at the right moment. I know of no benchmark that compares current models in that role. Research on the role exists, such as a paper from Carnegie Mellon University at EMNLP 2026 that trains a small critic model to review a coding agent’s trajectory every 5 or 10 steps, but it trains its own critic and doesn’t rank the models I could pick. Until such a comparison exists, the only check I have is my own sessions: what each advisor costs in /advisor status, and whether my belly tells me if the advisor feedback was helpful.

WATCHDOG.md, Instructions & Built-in Prompt #

There are three places for advisor guidance in OMP, and none of them reaches the main agent:

  1. WATCHDOG.md files. OMP loads ~/.omp/agent/WATCHDOG.md first and then every WATCHDOG.md and .omp/WATCHDOG.md in the directories from the repository root down to the working directory. All of them load, and files closer to the working directory sit later in the prompt.
  2. The top-level instructions in WATCHDOG.yml, which OMP concatenates across all discovered files.
  3. The instructions of a single roster entry.

The first two go to every advisor in the roster; the third goes to one advisor only, at the very end of its system prompt. OMP wraps each WATCHDOG.md as Especially pay attention to: <attention>...</attention> and appends it after the built-in prompt. All three only add emphasis, and none of them replaces the built-in posture. A request for an advisor-specific system prompt that could replace it was closed as stale without an implementation, so in recent OMP 19.x versions the base prompt is still the starting point for every advisor.

For me this settles what a watchdog file should contain: the project’s own traps, like the dangerous APIs and module boundaries in the example of the OMP docs, and the decisions the base prompt leaves open. Repeating a general “stay silent unless it matters” adds little, as the base prompt says that already. I wrote a first version of minimal-change.md and had my agent rewrite it against the OMP docs and the built-in advisor prompt:

File: minimal-change.md
# Minimal-change watchdog

Watch for complexity the request did not ask for. This adds to your normal review; it does not replace it.

## What to flag

- **Reinvented code.** The agent writes custom code where an existing local helper, the standard library, the platform, or an installed dependency already does the job. Confirm the alternative with `grep` or `read` first and name it in the note (path and symbol). If you cannot name one, stay silent.
- **Symptom-only patches.** The fix lands at one callsite while the shared cause or sibling callsites remain. Name the shared function or boundary and the callers still affected, then give the smaller root-cause fix.
- **Unrequested additions.** A bounded request gains abstractions, dependencies, configuration, scaffolding, or files it did not ask for. Say what to delete or inline, and check that the simpler version still meets the requested contract.
- **Unverified behavior changes.** A permanent, observable behavior change ships with nothing exercising the changed contract. One direct smoke run that proves the behavior is enough; do not ask for test infrastructure on trivial changes.

## What never to recommend

A simplification that removes trust-boundary validation, data-loss protection, security checks, accessibility, or anything the user explicitly asked for. Those are not complexity.

## Severity and timing

Your notes usually arrive after the code is written, so each one costs rework. Raise one only when the simpler version is clearly worth redoing the work.

- `concern`: the agent should rework now. Use it for a symptom-only patch that leaves other callers broken, a new dependency or abstraction that later code will build on, or a risky behavior change nobody exercised.
- `nit`: an optional simplification the user can take or leave. Use it for working code that is merely longer or more general than needed.
- Complexity alone is never a `blocker`.
- If a plan presented to the user already shows the heavier approach, flag it then, before code exists.

Write each note so the agent can act without searching: the location, the concrete alternative, and one sentence on why it is enough. A proportionate, safe implementation gets no note.

The severity section is the part my first version lacked. Because this advisor reviews the end of a run with the default continueSeverity, a concern makes the agent rework on its own, while a nit only leaves me a card. So the file keeps concern for findings that get more expensive later, such as a patch that leaves other callers broken or an abstraction that later code will build on. The rework bar follows from the same timing: the advisor sees the code after it was written, so a simplification has to be worth redoing the work. A plan is the cheap case, as presenting a plan to me also ends a run, and the advisor can flag the heavier approach before any code exists.

Two more rules keep the advisor from simplifying in the wrong places. A note needs a concrete alternative that the advisor found with its own tools, down to the path and symbol, or the advisor stays silent. And the file lists what never counts as complexity, such as validation at a trust boundary or security checks. The rule on unrequested additions uses one of the few exceptions the base prompt makes for scope, and the smoke-run rule moderates the base prompt, which already treats thin verification as a blocker.

What My Advisors Flagged on the Agentic Identity Broker #

I had my agent search my session history of the last week for advisor notes, and the most useful ones come from the Agentic Identity Broker (AIB) that I co-maintain. In one session I had asked the agent to remove an unnecessary explanation about missing local Docker tooling from a feature plan. The agent removed it, but it also renamed a required checklist item of the plan template from E2E Red Phase to SC-004 Test-First Coverage and narrowed it to the performance test. At the end of the run, the Minimal change advisor raised a concern:

File: Note from the Minimal change advisor, severity concern
At plan.md:68 you renamed the required Constitution Check item `**E2E Red Phase**` (from `.specify/templates/overrides/plan-template.md:51`) to `**SC-004 Test-First Coverage**`. You also narrowed it to the performance test only, so the plan no longer has a red-phase check for the six acceptance scenarios. Restore the template label, and keep a short body that covers both the acceptance tests and the performance test. For example: "Acceptance and SC-004 tests compiled with persistence assertions before ledger behavior; final PostgreSQL runs passed (T021, T084, T053, T055, T056)." That removes only the Docker commentary the user objected to.

As a concern after a final answer, the note made the agent continue on its own, and it reworked the line. The published commit has the template label back and covers both the acceptance tests and the performance test, without the Docker explanation. This is the kind of finding minimal-change.md is written for: I asked to cut commentary, and the agent had cut a test requirement too.

The General advisor isn’t always right. During a review of a logger branch, a verification step of my review skill had dropped a finding that macOS lacks sha256sum, because it found the binary at /sbin/sha256sum. The General advisor doubted that stock macOS ships it and suspected Homebrew:

File: Note from the General advisor, severity concern
Verify7 refuted four reviewers' P1 on `sha256sum` with a claim about this host (`/sbin/sha256sum` ships with stock macOS). I don't think that is how stock macOS works, and `just check` passing here doesn't settle it, because Homebrew coreutils could be supplying the tool. Settle it with one command before you drop the finding: `type -a sha256sum; ls -l /sbin/sha256sum; PATH=/usr/bin:/bin:/usr/sbin:/sbin command -v sha256sum`. If it resolves only from /opt/homebrew or /usr/local, restore the finding. It would be P2 and not P1, since the docs already tell macOS users to use `shasum`.

The agent ran the check with a system-only PATH, /sbin/sha256sum showed up in both outputs, and the finding stayed dropped. The advisor was wrong about my macOS, but it named a single command that settled the question, so being wrong cost one tool call.

What Two Advisors Cost #

Every advisor is separate model usage. OMP records it like the usage of a subagent: each advisor writes its own transcript into the session folder, so omp stats attributes it to the session, and /advisor status shows the cost of each advisor while a session runs. I had my agent add up the recorded usage for the same week as the notes above, from OMP’s statistics and the session logs.

Estimated cost of my OMP model usage in one week, by kind of session
UsageShare
Main sessions and their helper calls$46.76
Subagents$130.67
General and Minimal change advisors$47.57
Total$225.00

The two advisors cost about as much as the main sessions they review. It seems fair to assume that this follows from the cadence: the General advisor reviews every tool-call round of the main agent, and each review sends the new part of the transcript, tool results included. Subagents run unadvised by default, so their share has no advisor cost on top.

Switching the Minimal change advisor from syncBacklog: strict to off would save close to nothing, as OMP still schedules the same reviews at the end of each run and sends the same transcript. The setting only decides whether the main agent waits: off makes a run feel faster, and the advice can arrive after the final answer. What changes the cost is how often an advisor reviews and how much it reads: reviewMode: agent-end or a reviewInterval above 1 for fewer reviews, includeReasoning: false for smaller updates, and the price per input token of the model. OMP already replaces the tool results of older reviews with short placeholders by default (advisor.evictStaleResults).

For now I keep both advisors. About a fifth of my model usage pays for a reviewer that reads every turn and a second one that checks each finished run for complexity the task didn’t need, and both look at work that a tool-style advisor only sees when the agent asks for it. In case you want to try this yourself, a single advisor with reviewMode: agent-end and syncBacklog: strict could be a cheaper start, as it reviews once per run.

Published
Licence
CC BY 4.0
ID
jb-coding-agent-advisors

Cite this

Citation format

Jan Brennenstuhl. “Oh-My-Pi (OMP): Multiple Advisors That Review Every Turn.” Brennenstuhl on Security, 30 November 2026. https://www.janbrennenstuhl.eu/coding-agent-advisors/

Brennenstuhl, J. (2026, November 30). Oh-My-Pi (OMP): Multiple Advisors That Review Every Turn. Brennenstuhl on Security. https://www.janbrennenstuhl.eu/coding-agent-advisors/

@online{brennenstuhl2026ohmypi,
  author = {Brennenstuhl, Jan},
  title = {Oh-My-Pi (OMP): Multiple Advisors That Review Every Turn},
  date = {2026-11-30},
  organization = {Brennenstuhl on Security},
  url = {https://www.janbrennenstuhl.eu/coding-agent-advisors/}
}

Markdown Send a correction