<?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: Oz Gomez</title>
    <description>The latest articles on DEV Community by Oz Gomez (@ozforce_1998).</description>
    <link>https://dev.to/ozforce_1998</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3938819%2F7063659b-c0d5-466f-881b-ae37b0ae9ee2.jpg</url>
      <title>DEV Community: Oz Gomez</title>
      <link>https://dev.to/ozforce_1998</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ozforce_1998"/>
    <language>en</language>
    <item>
      <title>I built a file watcher for AI coding agents — would love brutal feedback</title>
      <dc:creator>Oz Gomez</dc:creator>
      <pubDate>Mon, 18 May 2026 19:43:46 +0000</pubDate>
      <link>https://dev.to/ozforce_1998/i-built-a-file-watcher-for-ai-coding-agents-would-love-brutal-feedback-3in6</link>
      <guid>https://dev.to/ozforce_1998/i-built-a-file-watcher-for-ai-coding-agents-would-love-brutal-feedback-3in6</guid>
      <description>&lt;p&gt;I've been using Claude Code for the past few months — heavily. And a lot of the time, I'm running it remotely. I'll kick off a session from my phone via Telegram, leave it working on a project, and come back later to see what it did.&lt;br&gt;
That's when I started noticing something uncomfortable.&lt;br&gt;
The agent would modify files I didn't expect. Overwrite a .env. Delete something it considered "unused". Touch config files while doing something else entirely. When I was sitting at the machine, I'd catch it. When I wasn't — I'd find out later, sometimes much later.&lt;br&gt;
So I built something to watch what it does while I'm away.&lt;br&gt;
AgentGuard is a CLI wrapper and background daemon that monitors your filesystem while AI coding agents work. It detects changes to sensitive files (.env, keys, CI configs, package.json), logs everything to an audit trail, and can send you a Telegram message with rollback buttons if something looks wrong — even when you're not at the machine.&lt;br&gt;
npm install -g agentguard-dev&lt;br&gt;
agentguard init&lt;br&gt;
agentguard claude  # wraps Claude Code&lt;br&gt;
Or run it as a permanent background daemon:&lt;br&gt;
agentguard daemon install  # starts on login via launchd&lt;br&gt;
agentguard daemon status&lt;br&gt;
What it actually does:&lt;/p&gt;

&lt;p&gt;Watches configured directories permanently, even when you're away&lt;br&gt;
Detects mass deletes, env overwrites, CI config changes, credential files&lt;br&gt;
Sends Telegram alerts with ✅ Keep / ↩️ Rollback buttons you can tap from your phone&lt;br&gt;
Writes a full audit log so you can see what the agent touched during a session&lt;/p&gt;

&lt;p&gt;Honest limitations:&lt;/p&gt;

&lt;p&gt;Real-time command interception doesn't work reliably — Codex is a Rust binary that bypasses our hooks, Copilot CLI has a TUI that interferes. The file watcher is the primary defense.&lt;br&gt;
Tested mainly with Claude Code on macOS. Other agents and Linux need more testing.&lt;br&gt;
Nobody has really used this except me.&lt;/p&gt;

&lt;p&gt;That last point is why I'm posting this.&lt;br&gt;
I have a few years of experience in testing and developer support, so I know enough to build something that works — but I built this primarily because I needed it, and Claude Code helped me write most of it, which is a bit meta. The code works, the tests pass, and it's been running as a daemon on my machine for a week watching two real projects.&lt;br&gt;
But I have no idea if it's useful to anyone else, if the UX makes sense, or if I'm solving the wrong problem entirely.&lt;br&gt;
GitHub: github.com/Osva2023/AgentGuard&lt;br&gt;
If you use Claude Code, Codex, or aider — I'd genuinely appreciate you taking a look. Even just "this is pointless because X" would be valuable right now.&lt;br&gt;
leave questions, suggestions, etc, in the comments, thanks DEVs&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>monitoring</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
