Open SourcePythonv0.1 Β· Active Development

ForgedWatchdog

A filesystem watchdog built for AI agent environments. Monitors write activity, classifies risk, enforces path boundaries, and auto-pauses runaway processes β€” without being tied to any specific framework or toolchain.

The Problem

AI agents write files. That's fine β€” until they don't stop. Runaway writes, out-of-bounds file creation, and cascading side effects are real failure modes in multi-agent systems. Most monitoring tools aren't built for this.

ForgedWatchdog was built out of a real need: monitoring a local AI infrastructure stack without being locked into a specific framework. It watches the filesystem, classifies what it sees, and reacts β€” automatically.

Features

πŸ‘οΈLayer 1

Real-Time Detection

Watches configured paths with sub-second latency. Create, modify, delete, and move events are captured and queued for classification.

🧠Layer 2

Smart Classification

Events are scored against a risk model β€” routine writes score low, out-of-bounds operations score high. Configurable thresholds, no hardcoded rules.

⏸️Layer 4

Auto-Pause

When high-risk activity is detected, ForgedWatchdog can pause the responsible process, fire a webhook, or write a kill file β€” your choice.

🚧Layer 6

Boundary Enforcement

Define read-only zones, output-only zones, and fully restricted paths. The watchdog enforces them and logs every violation.

πŸ“‹Audit

Structured Audit Logs

Every event written to JSONL. Timestamp, path, event type, risk score, agent ID (if configured), and action taken. Grep-friendly.

πŸ”ŒPortable

Works Outside Any Framework

Designed to be generic β€” not tied to any specific AI framework, orchestration system, or toolchain. Point it at paths and go.

Quick Start

01Install
pip install forgedwatchdog
02Configure
# watchdog.yml
watch_paths:
  - ~/ai-workspace
  - /var/agents/outputs

readonly_paths:
  - ~/ai-workspace/config

alert:
  webhook: https://your-endpoint/alert
  kill_file: /tmp/.agent-pause
03Run
forgedwatchdog --config watchdog.yml

Tech Stack

Python 3.10+Runtime
watchdogFS Events
PyYAMLConfig
JSONLAudit Log Format
ClickCLI Interface
psutilProcess Control

Development Status

βœ“Layer 1: FS Event Detection
βœ“Layer 2: Risk Classification
βœ“Layer 4: Auto-Pause
βœ“Layer 6: Boundary Enforcement
βœ“CLI Interface
β—‹PyPI Package
β—‹Web Dashboard
β—‹Multi-agent Session Tracking

Read the Blog Post

How ForgedWatchdog was designed β€” the problem, the architecture, the decisions.

Read the Story β†’

Need Something Custom?

ForgedWatchdog is a starting point. If you need tailored monitoring for your systems, let's talk.

Work With Me β†’