<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alan Fu</title>
    <description>The latest articles on DEV Community by Alan Fu (@doberman).</description>
    <link>https://dev.to/doberman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4107353%2F22ccf416-5d07-4ad6-b079-b4e82f3e4462.png</url>
      <title>DEV Community: Alan Fu</title>
      <link>https://dev.to/doberman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/doberman"/>
    <language>en</language>
    <item>
      <title>Doberman: Stops your AI before it goes rogue</title>
      <dc:creator>Alan Fu</dc:creator>
      <pubDate>Thu, 03 Sep 2026 06:09:56 +0000</pubDate>
      <link>https://dev.to/doberman/doberman-stops-your-ai-when-it-goes-rogue-2c69</link>
      <guid>https://dev.to/doberman/doberman-stops-your-ai-when-it-goes-rogue-2c69</guid>
      <description>&lt;p&gt;I built Doberman because a Claude code made me lose a hackathon. It got stuck on a bug and decided the best fix was just deleting the entire database, 5 minutes before demo time, and there was nothing standing between "the agent decided" and "the agent did it." I didn't win that hackathon.&lt;/p&gt;

&lt;p&gt;Doberman is local-first, open-source (Apache-2.0), and it sits on the execution path between your coding agent and its tools. Every shell command, every file write, every MCP call gets exactly one verdict before it's allowed to run: PASS, AUTH, or BLOCK. Here's the whole setup, in two commands, and what it actually looks like when it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;doberman-core
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the package. Python 3.11+, and it ships as &lt;code&gt;doberman-core&lt;/code&gt; on PyPI (the bare &lt;code&gt;doberman&lt;/code&gt; name belongs to an unrelated, abandoned project; the CLI command is still &lt;code&gt;doberman&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Wire it up
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;doberman setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the wizard. It detects which agents you have installed (Claude Code via hooks, Codex CLI experimentally, Claude Desktop/Cursor/any MCP client via a transparent proxy, and OpenClaw natively), asks which ones you want guarded, picks a strictness mode, tunes the guardrails, wires the hooks, and then asks about telemetry. It finishes with a health-check pass and, if you wired a hooks-based host, offers to run a scripted attack right there so you can watch it work.&lt;/p&gt;

&lt;p&gt;For Claude Code specifically, this is the recommended path: it wires a &lt;code&gt;PreToolUse&lt;/code&gt; hook that gates every built-in and MCP tool call before it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What PASS / AUTH / BLOCK actually mean
&lt;/h2&gt;

&lt;p&gt;Every action out of your agent resolves to one of three verdicts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PASS&lt;/strong&gt; - routine work, straight through, no friction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AUTH&lt;/strong&gt; - sensitive enough to pause and ask you. Repeat the exact same action within five minutes and it re-prompts with a one-click confirm instead of the full challenge (never for anything destructive).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BLOCK&lt;/strong&gt; - dangerous, stopped cold before it reaches the tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last part is the whole point. This isn't a prompt filter reading what the model said it would do: it's on the execution path, so a blocked call literally never runs, no matter how the model was talked into requesting it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch it happen
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;doberman demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This replays a scripted rogue-agent sequence through the real decision engine: a secret exfiltration, an &lt;code&gt;rm -rf&lt;/code&gt;, a force push to a protected branch, a smuggled-token egress, and a &lt;code&gt;.env&lt;/code&gt; read, all blocked. Then it hands you a pending approval for a high-risk SSH-trust-file write and waits for a human to deny it. Nothing here touches a real tool or downstream server: it's the same engine your actual traffic runs through, just fed a script. &lt;code&gt;--fast&lt;/code&gt; skips the pacing, &lt;code&gt;--mode &amp;lt;name&amp;gt;&lt;/code&gt; runs it under a different strictness setting, &lt;code&gt;--quiet&lt;/code&gt;/&lt;code&gt;-q&lt;/code&gt; keeps the summary but drops the narration.&lt;/p&gt;

&lt;p&gt;If you've also got the dashboard installed (&lt;code&gt;pip install 'doberman-core[dash]'&lt;/code&gt;, then &lt;code&gt;doberman dash&lt;/code&gt;), run the demo next to it and watch the same five blocks land in a live feed as they happen.&lt;/p&gt;

&lt;h2&gt;
  
  
  When something gets blocked and you want to know why
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;doberman log &lt;span class="nt"&gt;--why&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The decision log is local SQLite, redacted: verdicts, reason codes, and HMAC-SHA256 fingerprints, never raw secrets or full payloads. &lt;code&gt;--why&lt;/code&gt; turns the reason codes into a plain-language explanation. If you'd rather browse interactively, &lt;code&gt;pip install "doberman-core[tui]"&lt;/code&gt; then &lt;code&gt;doberman tui&lt;/code&gt; gives you the same rows with a keyboard-driven why panel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning telemetry off
&lt;/h2&gt;

&lt;p&gt;Anonymous usage counts (command names and daily totals, never paths, prompts, or secrets) are on by default. Turn them off with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;doberman telemetry off
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or set &lt;code&gt;DO_NOT_TRACK=1&lt;/code&gt; in your environment before you ever run a command, if you'd rather it never mint an id in the first place.&lt;/p&gt;

&lt;p&gt;It's alpha software with a real test suite behind it (2,000+ tests in CI as of v0.18.5), so if you hit a rough edge, submit an issue and I'll get to it within a week. I'd genuinely like to know what breaks it.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/DobermanCore/Doberman-Core" rel="noopener noreferrer"&gt;https://github.com/DobermanCore/Doberman-Core&lt;/a&gt;&lt;br&gt;
Docs: &lt;a href="https://docs.trydoberman.dev" rel="noopener noreferrer"&gt;https://docs.trydoberman.dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>opensource</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
