HoundWatchby open8arms.dev

Free · Open source · Runs on your machine

Your rules.
Enforced.

HoundWatch is an independent watchdog for AI coding agents. It checks every edit against your rules and guides the agent to do what you asked, not what it decides.

$ pipx install houndwatch
claude code · demo-apphoundwatch on
● Claude Code Edit src/billing/invoice.py
 
houndwatch ✖ BLOCK module-header
Every source file starts with a MODULE HEADER block.
→ Add the MODULE HEADER described in rules/global.md
 
● Claude Code Adding module header… Edit src/billing/invoice.py
 
houndwatch ✔ pass

You wrote the rules. HoundWatch ensures your agent follows them.

Your standards live in AGENTS.md. Over a long session the agent loses hold of them. HoundWatch is the independent watchdog that works against each way that happens, from the first turn to the hundredth:

  • Context drift. The agent wanders off the task. HoundWatch checks its work against your plan and spec, and nudges it back to the next step.
  • Context rot. Your rules get buried under everything since. HoundWatch reads them fresh from your files on every edit, and gives the agent the ones that apply to the file it's touching.
  • Hallucination. The agent invents rules, or says work is done when it isn't. HoundWatch checks against your rules as written, catches tests weakened or skipped to fake a pass, and sends the agent back when tasks are still open.

Your rules, every time.

Every edit is checked against all your rules, global and project, so none get skipped or forgotten.

Tests stay honest.

If a test is edited, skipped or deleted just to get a green result, HoundWatch catches it. Green means the tests really passed.

What you wanted, now gets done.

HoundWatch keeps the agent on the task you set and nudges it through your plan, step by step, until it's done.

HoundWatch protects and enforces your rules, no matter what your coding agent decides.

Built on three promises

01

Your rules win.

Rules are plain files you own. No vendor's rules outrank yours, and HoundWatch forces none of its own.

02

The agent can't switch it off.

HoundWatch runs outside the agent. Only a human at the terminal can turn it off. If an agent removes a hook or skips one with --no-verify, HoundWatch notices, flags it and puts the hook back. If HoundWatch can't check a commit, it blocks it rather than letting it through, and tells you how to fix it.

03

Your code never leaves your machine.

Checks run locally. Judgement calls go to local models through Ollama. No cloud, no account, no telemetry.

How it works

One rulebook, one engine, three ways in.

  • Agent edits a file
  • Agent commits
  • File saved (watcher)
Rules engine
(your rules)
Verdict
block/warn
Back to the agent
+ findings log
  1. 1 · Trigger.An agent hook (Claude Code), a git hook or the watcher starts a check.
  2. 2 · Instant checks first.Pattern and structure checks run in milliseconds on every edit, with no AI involved.
  3. 3 · Judgement when needed.Rules that need judgement, like "stays within the spec", go to the fastest local model that can handle them. They run in the background and report at the next edit or commit.
  4. 4 · Verdict.The agent gets block or warn plus your message telling it what to fix.
  5. 5 · Record.Every finding is saved per project, so you can see which rules get broken and how often.

Rules you can read

Each rule says what it checks, how it's checked, how serious it is and what to tell the agent.

Start from the example rule sets, import the rules you already have, or write your own.

~/.houndwatch/rules/global.yaml
rules:
  - id: module-header
    says: Every source file starts with a MODULE HEADER block
    applies_to:
      subject: file
      paths: ["src/**/*.py"]
    check: pattern        # pattern | structure | llm | command
    pattern:
      must_match: "MODULE HEADER"
      within_lines: 5
    severity: block       # block | warn
    tell_agent: Add the MODULE HEADER described in rules/global.md

  - id: stays-on-spec
    says: Changes stay within the current spec's scope
    applies_to:
      subject: commit
    check: llm
    llm:
      prompt: "Does this diff stay within {spec}? PASS or FAIL, one line why. {diff}"
    severity: warn

What HoundWatch catches

Your ruleWhat the agent didVerdict
Every file has a module headerCreated a file without one✖ Block
No AI attribution in commit messagesAdded a "Co-Authored-By" line✖ Block
Don't weaken or delete testsRemoved a failing test✖ Block
Stay within the current specRefactored an unrelated module⚠ Warn
Keep docs in step with codeChanged a function, left its docs stale⚠ Warn
Follow the planStopped with three tasks still open→ Nudge: "2.4 is next"

What's inside

Architecture rules.

Keep files, folders and structure the way you laid them out.

The right rule at the right time.

The agent gets the rules that apply to the file it's touching, not a wall of text it skims.

Docs that keep up.

Flags documentation that no longer matches the code.

Progress nudges.

Reads your plan and keeps the agent moving through it: "tick task 2.3", "2.4 is next".

Test protection.

Catches tests that have been weakened, skipped or deleted.

Rule import.

Brings in the rules you already have.

Also included: Live codebase inventory agents can query · Pattern memory for repeat offences · Agent hook that refuses risky shell commands · Commit-message rules in every repo on your machine

Works with any agent you choose.

AgentSupport
Claude CodeFull: checks inside the agent on every edit, plus git hooks and the watcher
Any other agent or editorGit hooks and the watcher: every commit and every saved file is checked

HoundWatch watches your files and git, not the agent. So it keeps working when you switch tools.

How HoundWatch compares

HoundWatchClaude Code's own hooksCommand guards (e.g. cc-safety-net)Cloud PR review bots
Checks against your rules✔You write each hook yourselfMostly fixed rulesPartly
Judgement checks with a local LLM✔——Cloud LLM
Runs fully on your machine✔✔✔—
Catches skipped hooks (--no-verify)✔———
Checks work against your plan✔———
When it checksEvery edit and commitEvery editBefore commands runAfter you open a PR
PriceFree, MITFreeFreeUsually paid per seat

What HoundWatch doesn't do

  • It doesn't write code. It checks the code your agent writes.
  • It doesn't send your code anywhere.
  • It isn't a replacement for code review or tests. It catches problems earlier.
  • Visual and design rules aren't enforced yet.

Up and running in a minute

  1. pipx install houndwatch
  2. houndwatch init
  3. houndwatch hooks install houndwatch hooks install --agent claude-code

Needs Python 3.10+ and Ollama for judgement checks. Instant checks work without Ollama.