<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>My Coding Agent Harness · Brennenstuhl on Security</title><link>https://www.janbrennenstuhl.eu/series/agent-harness/</link><description>How I set up and use my coding agent harness, Oh-My-Pi.</description><language>en-GB</language><copyright>Original writing CC BY 4.0, Jan Brennenstuhl</copyright><atom:link href="https://www.janbrennenstuhl.eu/series/agent-harness/index.xml" rel="self" type="application/rss+xml"/><item><title>Oh-My-Pi (OMP): Advisors That Review Without Being Asked</title><link>https://www.janbrennenstuhl.eu/coding-agent-advisors/</link><guid isPermaLink="true">https://www.janbrennenstuhl.eu/coding-agent-advisors/</guid><pubDate>Mon, 30 Nov 2026 18:05:00 +0100</pubDate><description>&lt;p&gt;&lt;em&gt;Latest change (2026-12-01): Corrected the cost table, which had lost its column of percentages.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;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. I have used &lt;a href="https://github.com/can1357/oh-my-pi" title="Oh-My-Pi on GitHub" class="ext"&gt;Oh-My-Pi&lt;/a&gt; (OMP) as my coding agent harness for at least the last 6 months, and its advisors are what I use against such mistakes.&lt;/p&gt;
&lt;h2 id="most-coding-agent-advisors-wait-to-be-asked"&gt;Most Coding Agent Advisors Wait to Be Asked &lt;a class="heading-anchor" href="#most-coding-agent-advisors-wait-to-be-asked" aria-label="Link to section: Most Coding Agent Advisors Wait to Be Asked"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Anthropic&amp;rsquo;s &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool" title="Advisor tool, Claude API docs" class="ext"&gt;advisor tool&lt;/a&gt; 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 &lt;a href="https://code.claude.com/docs/en/advisor" title="Escalate hard decisions with the advisor tool, Claude Code docs" class="ext"&gt;&lt;code&gt;/advisor&lt;/code&gt;&lt;/a&gt;, and the docs are clear about who decides: &amp;ldquo;the timing is model-driven rather than rule-based&amp;rdquo;, and there is no setting to force a call. When they launched &lt;a href="https://claude.com/resources/articles/the-advisor-strategy" title="The advisor strategy: Give agents an intelligence boost" class="ext"&gt;the advisor strategy&lt;/a&gt;, 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.&lt;/p&gt;
&lt;p&gt;A second design comes from the coding agent &lt;a href="https://ampcode.com/" title="Amp" class="ext"&gt;Amp&lt;/a&gt;, whose team introduced the &lt;a href="https://ampcode.com/news/oracle" title="Oracle, Amp news" class="ext"&gt;Oracle&lt;/a&gt; approach in 2025 as a read-only subagent on OpenAI o3, next to Sonnet as the main model. When they later moved it to &lt;a href="https://ampcode.com/news/gpt-5-oracle" title="GPT-5 Oracle, Amp news" class="ext"&gt;GPT-5&lt;/a&gt;, they named its &amp;ldquo;different training lineage&amp;rdquo; as one reason it is a good partner for Sonnet. The Amp team wrote that they &amp;ldquo;consciously haven&amp;rsquo;t pushed the oracle too hard in the system prompt&amp;rdquo; and rely on the user to ask for it. The current &lt;a href="https://ampcode.com/@amp/plugins/oracle.ts" title="Amp Oracle plugin source" class="ext"&gt;Oracle plugin&lt;/a&gt; even tells the main agent not to consult the Oracle unasked for &amp;ldquo;Asking whether completed work is correct, safe to test, or ready to ship&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;GitHub likely took the cross-family idea furthest. &lt;a href="https://github.blog/ai-and-ml/github-copilot/github-copilot-cli-combines-model-families-for-a-second-opinion/" title="GitHub Copilot CLI combines model families for a second opinion" class="ext"&gt;Rubber Duck&lt;/a&gt; in Copilot CLI deliberately picks its critic from another model family: a GPT model reviews a Claude session, and &lt;a href="https://github.blog/changelog/2026-05-07-rubber-duck-in-github-copilot-cli-now-supports-more-models/" title="Rubber Duck in GitHub Copilot CLI now supports more models" class="ext"&gt;since May&lt;/a&gt; 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 &lt;a href="https://docs.github.com/en/copilot/concepts/agent-capabilities/choosing-and-delegating-agent-work/getting-a-second-opinion" title="Getting a second opinion with the rubber duck agent, GitHub docs" class="ext"&gt;off by default&lt;/a&gt; and runs when the user asks, and with automatic invocation switched on, the main agent picks the checkpoints itself.&lt;/p&gt;
&lt;div class="table-scroll" tabindex="0" role="region" aria-label="Who triggers the advisor in four coding agent harnesses"&gt;&lt;table&gt;&lt;caption&gt;Who triggers the advisor in four coding agent harnesses&lt;/caption&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th scope="col"&gt;Advisor&lt;/th&gt;&lt;th scope="col"&gt;Who decides when it runs&lt;/th&gt;&lt;th scope="col"&gt;Advisor model&lt;/th&gt;&lt;th scope="col"&gt;Tools of the advisor&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Anthropic advisor tool&lt;/td&gt;&lt;td&gt;the main agent&lt;/td&gt;&lt;td&gt;an equal or stronger Claude model&lt;/td&gt;&lt;td&gt;none&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Amp Oracle&lt;/td&gt;&lt;td&gt;the main agent, mostly on request&lt;/td&gt;&lt;td&gt;a model from another vendor, set in the plugin&lt;/td&gt;&lt;td&gt;read-only&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Copilot Rubber Duck&lt;/td&gt;&lt;td&gt;the main agent, on request or at checkpoints&lt;/td&gt;&lt;td&gt;a model from another family&lt;/td&gt;&lt;td&gt;read-only&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Oh-My-Pi advisor&lt;/td&gt;&lt;td&gt;the advisor, after every turn or every run&lt;/td&gt;&lt;td&gt;any model OMP can resolve&lt;/td&gt;&lt;td&gt;&lt;code&gt;read&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;glob&lt;/code&gt; by default&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;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&amp;rsquo;t share the main agent&amp;rsquo;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 (&amp;ldquo;Confident mistakes can compound&amp;rdquo;), and still leaves the checkpoints to the agent that makes the mistakes.&lt;/p&gt;
&lt;h2 id="the-oh-my-pi-advisor-reviews-every-turn-on-its-own"&gt;The Oh-My-Pi Advisor Reviews Every Turn on Its Own &lt;a class="heading-anchor" href="#the-oh-my-pi-advisor-reviews-every-turn-on-its-own" aria-label="Link to section: The Oh-My-Pi Advisor Reviews Every Turn on Its Own"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/advisor-watchdog.md" title="Advisor, WATCHDOG.md, and WATCHDOG.yml, Oh-My-Pi docs" class="ext"&gt;OMP advisor&lt;/a&gt; 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 &lt;code&gt;read&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt; and &lt;code&gt;glob&lt;/code&gt; tools, so it can check a suspicion in the workspace before it says anything. Its only way back into the session is an &lt;code&gt;advise&lt;/code&gt; tool that takes a single note and a severity. OMP renders the note into the main agent&amp;rsquo;s context as &lt;code&gt;&amp;lt;advisory severity=&amp;quot;concern&amp;quot; guidance=&amp;quot;weigh, don't blindly obey&amp;quot;&amp;gt;&lt;/code&gt;, so the main agent can still disagree. The advisor can&amp;rsquo;t approve or block a tool call, and it can&amp;rsquo;t change the session.&lt;/p&gt;
&lt;p&gt;The built-in &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/packages/coding-agent/src/prompts/advisor/system.md" title="Built-in advisor system prompt, Oh-My-Pi" class="ext"&gt;advisor prompt&lt;/a&gt; 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&amp;rsquo;s own tool output and budgets about 2 to 3 tool calls per note. It forbids comments on the user&amp;rsquo;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 &lt;code&gt;concern&lt;/code&gt; 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 &lt;code&gt;blocker&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The severity decides what happens to a note, and that makes it the most important choice an advisor makes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;While the main agent is still working, only a &lt;code&gt;blocker&lt;/code&gt; interrupts it. Nits and concerns wait until the run ends.&lt;/li&gt;
&lt;li&gt;When the agent has finished with an answer, a &lt;code&gt;concern&lt;/code&gt; makes it continue and rework by default (&lt;code&gt;advisor.continueSeverity: concern&lt;/code&gt;). A &lt;code&gt;nit&lt;/code&gt; stays a card at the end of the transcript and reaches the agent with my next message.&lt;/li&gt;
&lt;li&gt;After a concern or blocker has interrupted the agent, further concerns arrive without interrupting for 3 turns (&lt;code&gt;advisor.immuneTurns&lt;/code&gt;). Blockers are exempt.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So when the advisor files a finding as a nit or a concern, it effectively chooses between &amp;ldquo;tell me&amp;rdquo; and &amp;ldquo;redo the work now&amp;rdquo;. Other agent platforms have watching reviewers too, such as the &lt;a href="https://docs.zeta-alpha.com/gen-ai/customize/guides/configuring-capabilities/how-to-configure-interjections" title="How to configure interjections, Zeta Alpha docs" class="ext"&gt;reviewer interjection&lt;/a&gt; in Zeta Alpha&amp;rsquo;s agent platform that reads the transcript every few tool steps or after repeated tool failures. With OMP I can also run several named advisors, each with its own model, cadence and instructions.&lt;/p&gt;
&lt;h2 id="two-advisors-in-my-watchdogyml"&gt;Two Advisors in My WATCHDOG.yml &lt;a class="heading-anchor" href="#two-advisors-in-my-watchdogyml" aria-label="Link to section: Two Advisors in My WATCHDOG.yml"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;OMP reads the list of advisors from a &lt;code&gt;WATCHDOG.yml&lt;/code&gt;. My list has two entries:&lt;/p&gt;
&lt;figure class="code" data-lang="yaml"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;WATCHDOG.yml&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="WATCHDOG.yml" class="chroma"&gt;&lt;code data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;advisors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;General&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/anthropic/claude-sonnet-5.5:medium&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;reviewMode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;turn&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;syncBacklog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;off&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;includeReasoning&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;maxNotesPerUpdate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;Minimal change&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/anthropic/claude-opus-5.5:medium&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;reviewMode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;agent-end&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;syncBacklog&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;strict&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;includeReasoning&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;maxNotesPerUpdate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;instructions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; @~/.omp/agent/minimal-change.md&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The General advisor reviews every turn (&lt;code&gt;reviewMode: turn&lt;/code&gt;), and with &lt;code&gt;syncBacklog: off&lt;/code&gt; 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 (&lt;code&gt;reviewMode: agent-end&lt;/code&gt;). With &lt;code&gt;syncBacklog: strict&lt;/code&gt;, 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 &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/advisor-watchdog.md#catch-up-with-advisorsyncbacklog" title="Catch-up with advisor.syncBacklog, Oh-My-Pi docs" class="ext"&gt;OMP docs&lt;/a&gt; call this combination a synchronous final review.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;includeReasoning: false&lt;/code&gt; keeps both advisors independent in yet another way: OMP drops the main agent&amp;rsquo;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. &lt;code&gt;maxNotesPerUpdate: 2&lt;/code&gt; halves the default budget of 4 non-blocker notes per review. Blockers don&amp;rsquo;t count against it.&lt;/p&gt;
&lt;p&gt;The second entry imports its instructions from a separate file with &lt;code&gt;@~/.omp/agent/minimal-change.md&lt;/code&gt;. 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.&lt;/p&gt;
&lt;p&gt;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 &lt;a href="https://www.vals.ai/benchmarks/terminal-bench-4" title="Terminal-Bench 4.0 leaderboard, Vals AI" class="ext"&gt;Terminal-Bench 4.0&lt;/a&gt;, 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 &lt;a href="https://qodex.ai/blog/gemini-4-neon-vs-claude-opus-5-5-vs-gpt-6-2-sol" title="Gemini 4 Neon vs Opus vs Sol: Best AI for Code Review" class="ext"&gt;code review benchmark&lt;/a&gt; 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&amp;rsquo;t use it here.&lt;/p&gt;
&lt;p&gt;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 &lt;a href="https://aclanthology.org/2026.emnlp-main.2478.pdf" title="Steer, Don&amp;#39;t Solve: Training Small Critic Models for Large Coding Agents" class="ext"&gt;paper from Carnegie Mellon University&lt;/a&gt; at EMNLP 2026 that trains a small critic model to review a coding agent&amp;rsquo;s trajectory every 5 or 10 steps, but it trains its own critic and doesn&amp;rsquo;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 &lt;code&gt;/advisor status&lt;/code&gt;, and whether my belly tells me if the advisor feedback was helpful.&lt;/p&gt;
&lt;h2 id="watchdogmd-instructions--built-in-prompt"&gt;WATCHDOG.md, Instructions &amp;amp; Built-in Prompt &lt;a class="heading-anchor" href="#watchdogmd-instructions--built-in-prompt" aria-label="Link to section: WATCHDOG.md, Instructions &amp;amp; Built-in Prompt"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;There are three places for advisor guidance in OMP, and none of them reaches the main agent:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;WATCHDOG.md&lt;/code&gt; files. OMP loads &lt;code&gt;~/.omp/agent/WATCHDOG.md&lt;/code&gt; first and then every &lt;code&gt;WATCHDOG.md&lt;/code&gt; and &lt;code&gt;.omp/WATCHDOG.md&lt;/code&gt; 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.&lt;/li&gt;
&lt;li&gt;The top-level &lt;code&gt;instructions&lt;/code&gt; in &lt;code&gt;WATCHDOG.yml&lt;/code&gt;, which OMP concatenates across all discovered files.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;instructions&lt;/code&gt; of a single roster entry.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;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 &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/packages/coding-agent/src/advisor/watchdog.ts" title="WATCHDOG.md discovery, Oh-My-Pi source" class="ext"&gt;wraps each &lt;code&gt;WATCHDOG.md&lt;/code&gt;&lt;/a&gt; as &lt;code&gt;Especially pay attention to: &amp;lt;attention&amp;gt;...&amp;lt;/attention&amp;gt;&lt;/code&gt; and appends it after the built-in prompt. All three only add emphasis, and none of them replaces the built-in posture. A &lt;a href="https://github.com/can1357/oh-my-pi/issues/3003" title="feat(advisor): allow advisor-specific system prompt override" class="ext"&gt;request for an advisor-specific system prompt&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;For me this settles what a watchdog file should contain: the project&amp;rsquo;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 &amp;ldquo;stay silent unless it matters&amp;rdquo; adds little, as the base prompt says that already. I wrote a first version of &lt;code&gt;minimal-change.md&lt;/code&gt; and had my agent rewrite it against the OMP docs and the built-in advisor prompt:&lt;/p&gt;
&lt;figure class="code" data-lang="markdown"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;minimal-change.md&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="minimal-change.md" class="chroma"&gt;&lt;code data-lang="markdown"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gh"&gt;# Minimal-change watchdog
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Watch for complexity the request did not ask for. This adds to your normal review; it does not replace it.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## What to flag
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; **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 &lt;span class="sb"&gt;`grep`&lt;/span&gt; or &lt;span class="sb"&gt;`read`&lt;/span&gt; first and name it in the note (path and symbol). If you cannot name one, stay silent.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; **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.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; **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.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; **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.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## What never to recommend
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;A simplification that removes trust-boundary validation, data-loss protection, security checks, accessibility, or anything the user explicitly asked for. Those are not complexity.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## Severity and timing
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;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.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`concern`&lt;/span&gt;: 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.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`nit`&lt;/span&gt;: an optional simplification the user can take or leave. Use it for working code that is merely longer or more general than needed.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Complexity alone is never a &lt;span class="sb"&gt;`blocker`&lt;/span&gt;.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; If a plan presented to the user already shows the heavier approach, flag it then, before code exists.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;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.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The severity section is the part my first version lacked. Because this advisor reviews the end of a run with the default &lt;code&gt;continueSeverity&lt;/code&gt;, a &lt;code&gt;concern&lt;/code&gt; makes the agent rework on its own, while a &lt;code&gt;nit&lt;/code&gt; only leaves me a card. So the file keeps &lt;code&gt;concern&lt;/code&gt; 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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id="what-my-advisors-flagged-on-the-agentic-identity-broker"&gt;What My Advisors Flagged on the Agentic Identity Broker &lt;a class="heading-anchor" href="#what-my-advisors-flagged-on-the-agentic-identity-broker" aria-label="Link to section: What My Advisors Flagged on the Agentic Identity Broker"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;I had my agent search my session history of the last week for advisor notes, and the most useful ones come from the &lt;a href="https://www.janbrennenstuhl.eu/projects/agentic-identity-broker/"&gt;Agentic Identity Broker&lt;/a&gt; (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 &lt;code&gt;E2E Red Phase&lt;/code&gt; to &lt;code&gt;SC-004 Test-First Coverage&lt;/code&gt; and narrowed it to the performance test. At the end of the run, the Minimal change advisor raised a concern:&lt;/p&gt;
&lt;figure class="code" data-lang="text"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;Note from the Minimal change advisor, severity concern&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="Note from the Minimal change advisor, severity concern" class="chroma"&gt;&lt;code data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;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: &amp;#34;Acceptance and SC-004 tests compiled with persistence assertions before ledger behavior; final PostgreSQL runs passed (T021, T084, T053, T055, T056).&amp;#34; That removes only the Docker commentary the user objected to.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;As a concern after a final answer, the note made the agent continue on its own, and it reworked the line. The &lt;a href="https://github.com/zalando-incubator/agentic-identity-broker/commit/cd72793afddc269d247c89895cc18c5755dec7b2" title="AIB commit cd72793" class="ext"&gt;published commit&lt;/a&gt; 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 &lt;code&gt;minimal-change.md&lt;/code&gt; is written for: I asked to cut commentary, and the agent had cut a test requirement too.&lt;/p&gt;
&lt;p&gt;The General advisor isn&amp;rsquo;t always right. During a review of a logger branch, a verification step of my review skill had dropped a finding that macOS lacks &lt;code&gt;sha256sum&lt;/code&gt;, because it found the binary at &lt;code&gt;/sbin/sha256sum&lt;/code&gt;. The General advisor doubted that stock macOS ships it and suspected Homebrew:&lt;/p&gt;
&lt;figure class="code" data-lang="text"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;Note from the General advisor, severity concern&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="Note from the General advisor, severity concern" class="chroma"&gt;&lt;code data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Verify7 refuted four reviewers&amp;#39; P1 on `sha256sum` with a claim about this host (`/sbin/sha256sum` ships with stock macOS). I don&amp;#39;t think that is how stock macOS works, and `just check` passing here doesn&amp;#39;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`.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The agent ran the check with a system-only &lt;code&gt;PATH&lt;/code&gt;, &lt;code&gt;/sbin/sha256sum&lt;/code&gt; 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.&lt;/p&gt;
&lt;h2 id="what-two-advisors-cost"&gt;What Two Advisors Cost &lt;a class="heading-anchor" href="#what-two-advisors-cost" aria-label="Link to section: What Two Advisors Cost"&gt;#&lt;/a&gt; &lt;a class="updated-mark" href="#updates"&gt;Updated 1 Dec&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;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 &lt;code&gt;omp stats&lt;/code&gt; attributes it to the session, and &lt;code&gt;/advisor status&lt;/code&gt; 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&amp;rsquo;s statistics and the session logs.&lt;/p&gt;
&lt;div class="table-scroll" tabindex="0" role="region" aria-label="Estimated cost of my OMP model usage in one week, by kind of session"&gt;&lt;table&gt;&lt;caption&gt;Estimated cost of my OMP model usage in one week, by kind of session&lt;/caption&gt;
&lt;thead&gt;&lt;tr&gt;&lt;th scope="col"&gt;Usage&lt;/th&gt;&lt;th scope="col" class="al-right"&gt;Cost&lt;/th&gt;&lt;th scope="col" class="al-right"&gt;Share&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Main sessions and their helper calls&lt;/td&gt;&lt;td class="al-right"&gt;$46.76&lt;/td&gt;&lt;td class="al-right"&gt;20.8%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Subagents&lt;/td&gt;&lt;td class="al-right"&gt;$130.67&lt;/td&gt;&lt;td class="al-right"&gt;58.1%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;General and Minimal change advisors&lt;/td&gt;&lt;td class="al-right"&gt;$47.57&lt;/td&gt;&lt;td class="al-right"&gt;21.1%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Total&lt;/td&gt;&lt;td class="al-right"&gt;$225.00&lt;/td&gt;&lt;td class="al-right"&gt;100%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Switching the Minimal change advisor from &lt;code&gt;syncBacklog: strict&lt;/code&gt; to &lt;code&gt;off&lt;/code&gt; 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: &lt;code&gt;off&lt;/code&gt; 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: &lt;code&gt;reviewMode: agent-end&lt;/code&gt; or a &lt;code&gt;reviewInterval&lt;/code&gt; above 1 for fewer reviews, &lt;code&gt;includeReasoning: false&lt;/code&gt; 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 (&lt;code&gt;advisor.evictStaleResults&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;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&amp;rsquo;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 &lt;code&gt;reviewMode: agent-end&lt;/code&gt; and &lt;code&gt;syncBacklog: strict&lt;/code&gt; could be a cheaper start, as it reviews once per run.&lt;/p&gt;</description></item><item><title>Oh-My-Pi (OMP): Docs MCP, Web Search and Model Roles</title><link>https://www.janbrennenstuhl.eu/coding-agent-harness/</link><guid isPermaLink="true">https://www.janbrennenstuhl.eu/coding-agent-harness/</guid><pubDate>Mon, 30 Nov 2026 18:00:00 +0100</pubDate><description>&lt;p&gt;&lt;em&gt;Latest change (2026-12-01): Corrected the models of the &lt;code&gt;plan&lt;/code&gt; and &lt;code&gt;slow&lt;/code&gt; roles: Claude Opus 5.5 plans and GPT-6.2 Astra reviews.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Coding agents choose APIs, versions and packages from what their model saw in training. That knowledge ends at the training cutoff, and in practice it&amp;rsquo;s even older, because much of the public code in the training data still used older APIs, library versions or already deprecated interfaces. In a &lt;a href="https://dl.acm.org/doi/10.1109/ICSE55347.2025.00245" title="LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-Based Code Completion, ICSE 2025" class="ext"&gt;study presented at ICSE 2025&lt;/a&gt;, 7 models completed 28,125 prompts that called 145 deprecated APIs or their replacements in 8 Python libraries, and 25% to 38% of their plausible completions used the deprecated version. The authors trace this to deprecated usages in the training data and to the missing knowledge about deprecations when the model generates code.&lt;/p&gt;
&lt;p&gt;Package names are even worse. A &lt;a href="https://www.usenix.org/conference/usenixsecurity25/presentation/spracklen" title="We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs, USENIX Security 2025" class="ext"&gt;paper at USENIX Security 2025&lt;/a&gt; generated 576,000 code samples with 16 models, and 19.7% of the 2.23 million packages the models recommended didn&amp;rsquo;t exist. An attacker can register such a name on PyPI or npm, which the authors describe as a form of package confusion attack. Both studies tested models that are a few generations old, and current models likely do better, but the cause, a fixed training cutoff, did not vanish.&lt;/p&gt;
&lt;p&gt;A harness can give the agent tools to look up what changed since then. I use &lt;a href="https://github.com/can1357/oh-my-pi" title="Oh-My-Pi on GitHub" class="ext"&gt;Oh-My-Pi&lt;/a&gt; (OMP) as my local coding agent harness, and the examples below come from my configuration. MCP servers and web search work similarly in other harnesses.&lt;/p&gt;
&lt;h2 id="documentation-servers-over-mcp-context7-and-deepwiki"&gt;Documentation Servers Over MCP: Context7 and DeepWiki &lt;a class="heading-anchor" href="#documentation-servers-over-mcp-context7-and-deepwiki" aria-label="Link to section: Documentation Servers Over MCP: Context7 and DeepWiki"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://context7.com/docs/resources/all-clients" title="MCP clients, Context7 docs" class="ext"&gt;Context7&lt;/a&gt; from Upstash indexes the documentation of libraries, frameworks and CLI tools and returns the snippets that match a question. &lt;a href="https://docs.devin.ai/work-with-devin/deepwiki-mcp" title="DeepWiki MCP, Devin docs" class="ext"&gt;DeepWiki&lt;/a&gt; from Cognition answers questions about public GitHub repositories from a generated wiki, which helps with projects whose own documentation is thin. Both run as remote MCP servers, and I have configured my OMP to use them in every project:&lt;/p&gt;
&lt;figure class="code" data-lang="json"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;~/.omp/agent/mcp.json&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="~/.omp/agent/mcp.json" class="chroma"&gt;&lt;code data-lang="json"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;mcpServers&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;context7&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;http&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;https://mcp.context7.com/mcp&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;headers&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nt"&gt;&amp;#34;Authorization&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Bearer &amp;lt;my Context7 API key&amp;gt;&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;deepwiki&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;http&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;#34;url&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;https://mcp.deepwiki.com/mcp&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;DeepWiki is free and needs no account. Context7 also works without a key, but &lt;a href="https://github.com/upstash/context7#installation" title="upstash/context7 on Github" class="ext"&gt;an API key&lt;/a&gt; gives higher rate limits.&lt;/p&gt;
&lt;p&gt;Context7 answers in two steps: the agent resolves a library name to a Context7 ID, then asks a question about that library. Here is a sample lookup from one of my sessions, in which the agent checked how &lt;code&gt;actions/upload-artifact&lt;/code&gt; treats hidden files:&lt;/p&gt;
&lt;figure class="code" data-lang="sh"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;A Context7 query as an MCP command in OMP&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="A Context7 query as an MCP command in OMP" class="chroma"&gt;&lt;code data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mcp__context7_query_docs /actions/upload-artifact &lt;span class="s1"&gt;&amp;#39;v4 hidden files excluded include-hidden-files true artifact paths hidden directories&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;figure class="code" data-lang="markdown"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;Start of the Context7 response&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="Start of the Context7 response" class="chroma"&gt;&lt;code data-lang="markdown"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;### Uploading Hidden Files with include-hidden-files
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Source: https://github.com/actions/upload-artifact/blob/main/README.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Shows how to enable hidden file uploads and exclude specific sensitive files using the path input.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;```yaml
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- &lt;span class="nt"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;actions/upload-artifact@v7&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;my-artifact&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;include-hidden-files&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="sd"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; path/output/
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="sd"&gt; !path/output/.production.env&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="s"&gt;```&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;--------------------------------
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;### Uploading Hidden Files
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Source: https://github.com/actions/upload-artifact/blob/main/README.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;By default, hidden files are ignored by this action to avoid unintentionally uploading sensitive information.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The response quotes the action&amp;rsquo;s README, enriches my agent&amp;rsquo;s context with the most up-to-date information and helps a model that potentially learned an older version of the action to verify its behavior. Each snippet names its source, so the agent can open the original when the excerpt isn&amp;rsquo;t enough.&lt;/p&gt;
&lt;p&gt;Of course there can be cases where Context7 has no answer. As usual, having fallbacks in the form of alternative tooling or dedicated web search capabilities available can improve coverage, but requires additional caretaking.&lt;/p&gt;
&lt;h2 id="telling-the-agent-when-to-use-each-server"&gt;Telling the Agent When to Use Each Server &lt;a class="heading-anchor" href="#telling-the-agent-when-to-use-each-server" aria-label="Link to section: Telling the Agent When to Use Each Server"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A connected tool only helps when the model knows when to call it. OMP lists every MCP command in a section of the system prompt and also adds each server&amp;rsquo;s own &lt;code&gt;instructions&lt;/code&gt; in a dedicated section. Context7&amp;rsquo;s instructions say when to use the server:&lt;/p&gt;
&lt;blockquote class="quote"&gt;Use this server to fetch current documentation whenever the user asks about a library, framework, SDK, API, CLI tool, or cloud service &amp;hellip; Prefer this over web search for library docs.&lt;footer&gt;Context7, &lt;cite&gt;MCP server instructions, version 4.9.0&lt;/cite&gt;&lt;/footer&gt;&lt;/blockquote&gt;
&lt;p&gt;DeepWiki&amp;rsquo;s instructions, on the other hand, list its tools but they never say which questions should go to DeepWiki. With multiple documentation tools connected, some guidance on which tool answers which question can steer the model into the right direction. In OMP, such rules belong in &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/context-files.md" title="Context files, Oh-My-Pi docs" class="ext"&gt;&lt;code&gt;~/.omp/agent/RULES.md&lt;/code&gt;&lt;/a&gt;: task subagents drop every &lt;code&gt;AGENTS.md&lt;/code&gt; file but still receive &lt;code&gt;RULES.md&lt;/code&gt;, and OMP &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/tools/task.md" title="Task tool, Oh-My-Pi docs" class="ext"&gt;hands them the parent&amp;rsquo;s MCP connections&lt;/a&gt;.&lt;/p&gt;
&lt;figure class="code" data-lang="markdown"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;~/.omp/agent/RULES.md&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="~/.omp/agent/RULES.md" class="chroma"&gt;&lt;code data-lang="markdown"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## Choosing documentation tools
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Use Context7 for public APIs, configuration, and version-specific usage.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Use DeepWiki (&lt;span class="sb"&gt;`ask_wiki_question`&lt;/span&gt;) for architecture or implementation questions about an unfamiliar, indexed GitHub repository when the source isn&amp;#39;t already available locally. Use &lt;span class="sb"&gt;`read_wiki_structure`&lt;/span&gt; for a broad overview.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- For the current checkout, inspect local code first. Treat DeepWiki answers as leads, and verify details that matter against the relevant source revision.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The first two rules split the work: Context7 for how to use a library, DeepWiki for how an unfamiliar repository is built. The third keeps the agent&amp;rsquo;s own checkout as the primary source, because a generated wiki can describe another revision than the one the agent works on. The same file would also fit a rule for the package problem from the opening, such as checking that a new dependency exists before the agent adds it.&lt;/p&gt;
&lt;h2 id="web-search-with-exa-and-brave-as-a-fallback"&gt;Web Search With Exa and Brave as a Fallback &lt;a class="heading-anchor" href="#web-search-with-exa-and-brave-as-a-fallback" aria-label="Link to section: Web Search With Exa and Brave as a Fallback"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;For challenges that no documentation index covers, such as undocumented error messages, issue threads, release notes and security advisories, OMP has a built-in &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/tools/web_search.md" title="web_search, Oh-My-Pi docs" class="ext"&gt;&lt;code&gt;web_search&lt;/code&gt;&lt;/a&gt; tool. The &lt;code&gt;web&lt;/code&gt; model role selects its engine, and &lt;code&gt;retry.fallbackChains.web&lt;/code&gt; lists the engines OMP tries when the first one fails:&lt;/p&gt;
&lt;figure class="code" data-lang="yaml"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;~/.omp/agent/config.yml (excerpt)&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="~/.omp/agent/config.yml (excerpt)" class="chroma"&gt;&lt;code data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;modelRoles&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;web&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;web/exa&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;retry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;fallbackChains&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;web&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;- &lt;span class="l"&gt;web/brave&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;web/exa&lt;/code&gt; is &lt;a href="https://exa.ai/" title="Exa" class="ext"&gt;Exa&lt;/a&gt;. I&amp;rsquo;m logged in to Exa in OMP, so my queries go to Exa&amp;rsquo;s search API under my account. Without a credential, OMP would fall back to Exa&amp;rsquo;s public MCP endpoint, which needs no account. &lt;a href="https://brave.com/search/api/" title="Brave Search API" class="ext"&gt;Brave&lt;/a&gt; takes over when Exa fails and reads its key from &lt;code&gt;BRAVE_API_KEY&lt;/code&gt;. My explicit chain also replaces OMP&amp;rsquo;s built-in fallback list, because I dont like poking arbitrary services.&lt;/p&gt;
&lt;h2 id="picking-a-model-for-each-role"&gt;Picking a Model for Each Role &lt;a class="heading-anchor" href="#picking-a-model-for-each-role" aria-label="Link to section: Picking a Model for Each Role"&gt;#&lt;/a&gt; &lt;a class="updated-mark" href="#updates"&gt;Updated 1 Dec&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;OMP&amp;rsquo;s &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/models.md#role-aliases-and-settings" title="Role aliases and settings, Oh-My-Pi docs" class="ext"&gt;model roles&lt;/a&gt; map each kind of work to a model and a thinking level. Mine currently look like this:&lt;/p&gt;
&lt;figure class="code" data-lang="yaml"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;~/.omp/agent/config.yml (excerpt)&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="~/.omp/agent/config.yml (excerpt)" class="chroma"&gt;&lt;code data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;modelRoles&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/openai/gpt-6.2-sol&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;plan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/anthropic/claude-opus-5.5:high&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;slow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/openai/gpt-6.2-astra:medium&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;task&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/openai/gpt-6.2-sol:auto&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;smol&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/deepseek/deepseek-v4.1-flash-1017:auto&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;tiny&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/z-ai/glm-5.3-flash:auto&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;advisor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/anthropic/claude-opus-5.5:medium&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;security&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;openrouter/deepseek/deepseek-v4.1-flash-1017:xhigh&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;defaultThinkingLevel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;auto&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;default&lt;/code&gt; is the model I talk to, so it gets the strongest model I can afford for everyday turns, GPT-6.2 Sol for me.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;plan&lt;/code&gt; drives OMP&amp;rsquo;s plan mode, and &lt;code&gt;slow&lt;/code&gt; runs the bundled &lt;code&gt;reviewer&lt;/code&gt; subagent and I occasionally switch to it actively. Both decide what the code should look like, so they get strong reasoning models, Claude Opus 5.5 for planning and GPT-6.2 Astra for reviews.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;task&lt;/code&gt; runs delegated subagents that edit code with full tool access. It can make sense to keep them on the main model, as my config does.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;smol&lt;/code&gt; runs the bundled &lt;code&gt;scout&lt;/code&gt;, which explores a codebase, and &lt;code&gt;sonic&lt;/code&gt;, which does mechanical updates and data collection. That work usually doesn&amp;rsquo;t need a frontier model, so a fast and cheap model like DeepSeek V4.1 Flash fits.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;tiny&lt;/code&gt; handles background chores such as session titles and the labels of subagent tasks, where the smallest usable model is enough.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;advisor&lt;/code&gt; is the model of OMP&amp;rsquo;s default advisor. I run two advisors with their own models, which I describe in the &lt;a href="https://www.janbrennenstuhl.eu/coding-agent-advisors/"&gt;article on my advisors&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;judge&lt;/code&gt; role runs small typed decisions, such as ranking files for OMP&amp;rsquo;s &lt;code&gt;find&lt;/code&gt; tool and the difficulty classifier behind the &lt;code&gt;auto&lt;/code&gt; thinking level. I use TypeSafe&amp;rsquo;s &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/docs/environment-variables.md" title="Environment variables, Oh-My-Pi docs" class="ext"&gt;Jev 1.14&lt;/a&gt; decision model through OpenRouter for it. Other decision models, such as Liquid AI&amp;rsquo;s d1 or OpenAI&amp;rsquo;s Decisions models, can take the role too.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;auto&lt;/code&gt; level is why many of my roles carry no fixed effort. Before a request, OMP asks the judge &lt;a href="https://github.com/can1357/oh-my-pi/blob/v19.2.1/packages/coding-agent/src/prompts/judge/auto-thinking.json" title="Auto-thinking judge prompt, Oh-My-Pi source" class="ext"&gt;how open-ended the problem is&lt;/a&gt;: a rename with the target given gets &lt;code&gt;low&lt;/code&gt;, a failing test with a few candidate causes &lt;code&gt;medium&lt;/code&gt;, a choice between several designs &lt;code&gt;high&lt;/code&gt;, and flaky, concurrent behaviour &lt;code&gt;xhigh&lt;/code&gt;. For a subagent, the judge reads the delegating agent&amp;rsquo;s description of the problem instead of the prompt. OMP clamps the answer to the levels the model supports, and &lt;code&gt;providers.autoThinkingMaxEffort&lt;/code&gt; caps it at &lt;code&gt;xhigh&lt;/code&gt; by default. The beauty of this is that a rename doesn&amp;rsquo;t pay for the reasoning of a race condition investigation. I keep fixed levels where the work is predictable or where I need behavioural consistency: planning always gets &lt;code&gt;high&lt;/code&gt;, reviews and advisors get &lt;code&gt;medium&lt;/code&gt;, and the security role &lt;code&gt;xhigh&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="custom-roles-such-as-a-security-model"&gt;Custom Roles Such as a Security Model &lt;a class="heading-anchor" href="#custom-roles-such-as-a-security-model" aria-label="Link to section: Custom Roles Such as a Security Model"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;OMP accepts role names of its own in &lt;code&gt;modelRoles&lt;/code&gt;, and &lt;code&gt;security&lt;/code&gt; is one of mine. A custom role becomes more useful when agents use it on their own. The bundled read-only &lt;code&gt;security-reviewer&lt;/code&gt; subagent names no model, so it would run on the &lt;code&gt;task&lt;/code&gt; role. With &lt;code&gt;task.agentModelOverrides&lt;/code&gt; you can assign a model to a subagent by its name, and with this entry every security review my agent delegates goes to my security model:&lt;/p&gt;
&lt;figure class="code" data-lang="yaml"&gt;&lt;figcaption class="code-file"&gt;&lt;span class="sr-only"&gt;File: &lt;/span&gt;~/.omp/agent/config.yml (excerpt)&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" aria-label="~/.omp/agent/config.yml (excerpt)" class="chroma"&gt;&lt;code data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;task&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;agentModelOverrides&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;security-reviewer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;@security&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;p&gt;The same pattern fits any work that a specialized model does better.&lt;/p&gt;
&lt;h2 id="prompt-injection--exfiltration-risks"&gt;Prompt Injection &amp;amp; Exfiltration Risks &lt;a class="heading-anchor" href="#prompt-injection--exfiltration-risks" aria-label="Link to section: Prompt Injection &amp;amp; Exfiltration Risks"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Every Context7 snippet, search result and fetched page enters the agent&amp;rsquo;s context as text that someone else wrote, and the agent acts on it with the tools it has available. A README written for prompt injection reaches the model through the same path as a correct migration guide. That is one more reason why the agent itself &lt;a href="https://www.janbrennenstuhl.eu/agentic-appsec-hu-berlin/#the-agent-itself-needs-a-sandbox"&gt;needs a sandbox&lt;/a&gt; that limits which files and hosts its commands can reach.&lt;/p&gt;
&lt;p&gt;Search queries that my agents send to any of the connected third-party tools can leak code and proprietary knowledge as well. Make sure to add third-party tooling consciously and avoid quiet fallbacks to services you don&amp;rsquo;t want to engage with. In the context of OMP, I suggest setting &lt;code&gt;providers.webKeyless: false&lt;/code&gt;, so it skips public search services.&lt;/p&gt;</description></item></channel></rss>