Skip to content

Loading the guide…

    The six capabilities

    Updated

    Each capability is a family of rules, plus what those rules need to work. Each comes with an example rule set, except the guide map and rule import, which need only config or a command. Nothing is active until you turn it on. Rules lists the sets.

    1. Architecture

    Declare how the project should be laid out, and HoundWatch™ checks files against it as they change:

    • modules, and which modules each may import;
    • paths that must exist, and paths that must not, with what to use instead;
    • folder conventions, such as "every page sits inside a route group";
    • the dependencies a manifest may list.

    Put the declaration in .houndwatch/architecture.yaml (change the path with architecture_file), or in the rule itself under declare. A user-level ~/.houndwatch/architecture.yaml is the floor: a project can only narrow what it allows.

    Python imports are parsed. JavaScript and TypeScript imports are read with a regex.

    See Rules for a working example. Example set: architecture-nextjs.

    2. Right rule at the right time

    Map parts of the project to the document that covers them. Before the agent edits a file in that area, it must have read the document. Put guide_map in either config:

    yaml
    guide_map:
      "src/pay/**": docs/rules/payments.md
      "import:stripe": docs/rules/payments.md

    A key is a path glob, or import:<module> for files that import a module. What the agent sees:

    text
    HoundWatch refused this edit:
    [block] guide:docs/rules/payments.md: Read docs/rules/payments.md first: it is the rule for src/pay/charge.py

    With no agent hook, the watcher records a warn finding when a mapped file is saved. A project can add entries to your user-level guide_map, but can't remove them. Agents can't edit the documents the map names.

    3. Docs in step with code

    "If these paths change, those must change too." A changed_together rule can check each commit or a whole agent session. For example, a change to API routes must update the OpenAPI file. A session that changed code must update today's work log before the agent stops:

    text
    Before you stop:
    [block] docs-in-step-work-log: Before you finish: this session changed code (src/sub.py); add what it did to docs/work-log-2026-11-29.md

    See Rules for a rule of your own. Example set: docs-in-step.

    4. Progress

    HoundWatch reads your plan and keeps the agent moving along it:

    • The plan is a *-todo.md file in plan_dir (default docs/tasks): the one the current spec names, otherwise the most recently modified.
    • Tasks are - [ ] and - [x] lines.
    • The agent is told where the plan stands at session start, and reminded at the end of a turn.
    text
    [warn] progress-plan-end-of-turn: Keep the plan in step with the work: 2 task(s) still open; next is 2: 2. Add sub() (docs/tasks/2026-11-29-calc-todo.md:6)

    Reminders are warn. The agent is told to keep going on its own only if you turn on keep_going (Day-to-day use).

    Example sets: progress, and progress-program, which needs a model and also compares the work with a larger program's target (programs_dir).

    5. Tests

    Checks that tests keep up with code:

    • a new Python module has a test file in the mirrored tests/ location;
    • test functions say which task or spec they cover;
    • large mock data lives in tests/fixtures/;
    • a commit whose message says "fix" changes a test;
    • the tests for the changed files pass before a commit (a command rule, so a project-level copy needs houndwatch rules trust tests-pass);
    • tests are not deleted, skipped or loosened (a model rule), and no new skip or xfail markers are added (an instant rule).

    Example sets: tests and judgement. The last point is in judgement.

    6. Rule import

    houndwatch rules draft <file> asks the tier 2 model to turn a written rule document (your standards, a CLAUDE.md, an AGENTS.md) into draft rules. Each draft cites the line it came from. Drafts do nothing until you review them and accept them in your terminal. See Rules.

    Also: pattern memory

    HoundWatch remembers rules that keep being broken. houndwatch status shows them, and the agent hears about them at session start.

    Also: the inventory

    HoundWatch keeps a map of the project's files, functions and classes, and their change history. You and your agent can query it. Add --json to the first three commands for output an agent can parse:

    houndwatch inventory files 'src/**/*.py'
    houndwatch inventory symbols sub --json
    houndwatch inventory changed --since 2026-11-28T09:00:00Z
    houndwatch inventory scan
    text
    src/app/calc.py  [code, 32 bytes]
    src/app/ops.py  [code, 157 bytes]

    Times are in UTC. scan refreshes the inventory. A running watcher keeps it current.