Skip to content

Loading the guide…

    Configuration

    Updated

    HoundWatch™ reads two optional YAML files:

    • User: ~/.houndwatch/config.yaml, for every project.
    • Project: <project>/.houndwatch/config.yaml, for one project. You can commit it.

    Every key is optional. A project key replaces the user's value, except for the limits below. houndwatch rules validate checks both files. It reports an unknown key, a repeated key or a wrong value with the file and line, such as unknown config key 'notfy'.

    Fix a broken config straight away. A mistake either warns or blocks commits, depending on what it affects:

    • It blocks if HoundWatch can't tell which rules are on. See the list below.
    • It blocks if it is a bad value for a setting the rules use: guide_map, rule_docs, ignore, banned_trailer_tools, architecture_file, spec_dir, plan_dir, global_rules_dir or test_command. If a project config sets a user-only key, HoundWatch ignores it, so a bad value doesn't block. rule_docs is the exception: a bad value always blocks.
    • Anything else only warns. That covers unknown keys, and bad values for other settings, such as nudge_max. You get a config-invalid warning with the file, line and key.

    When a value is bad, the rest of the file still applies. The bad one comes from your user config if that sets it, or from the default. In guide_map, rule_docs and banned_trailer_tools, one bad entry doesn't remove the valid ones.

    HoundWatch can't tell which rules are on when:

    • the file can't be read or parsed, or isn't a list of key: value settings. That includes a broken link, a file that isn't a regular file (such as a named pipe), one larger than 256 KB, and one whose values are nested too deeply;
    • the file is empty. A file with only comments is fine;
    • enabled_rule_sets has a wrong value or no value (write [] for no rule sets), or is set more than once;
    • enabled_rule_sets is misspelled, has a likely other name such as rulesets or rules, or is indented under another key;
    • enabled_rule_sets names a rule set that doesn't exist.

    Set each key once. If a key appears twice at the top level, neither value is used, with two exceptions. guide_map, rule_docs and banned_trailer_tools keep every valid entry, and ignore keeps only what both values list. A repeated key inside a value is reported too. Repeating a key blocks commits for the same settings as a bad value does.

    While commits are blocked, houndwatch check file also fails when you run it by hand. Agents can still edit files, but their edits get a warning. They can't fix the config themselves.

    This message blocks the commit. It names the file and line, the fix, the next command, and who must do it. Once the file is fixed, the same commit works. You don't need to override anything:

    text
    [block] config-invalid: HoundWatch can't tell which rules are on, so commits are blocked; a human must fix the config (agents may not edit it):
      Problem: /Users/you/Projects/myapp/.houndwatch/config.yaml:3: invalid YAML: expected ',' or ']', but got '<stream end>'
        Fix: open /Users/you/Projects/myapp/.houndwatch/config.yaml and correct it at line 3, then commit again
        Next command: houndwatch rules validate
        Who: a human must fix this, in their own editor or terminal; agents may not
      Agents: don't try to get round this. Carry on with other work that doesn't need it, and ask the developer to fix it.

    A broken project config never turns off your user rules or changes your user settings. A broken user config blocks commits in every repository where HoundWatch's commit hooks run, and a project still can't set a user-only key. houndwatch status shows the problem too.

    Keys

    "User only" means a project config can't set the key. houndwatch rules validate reports it and the value is ignored.

    Rules and documents

    KeyDefaultWhat it doesSet where
    enabled_rule_setsnoneexample sets to turn on (Rules)either
    rule_docsnoneyour written rule documents: a list of path and optional read_first (Rules)user only
    global_rules_dirnoneolder setting: one folder of rule documents; fills {global_rules_dir}user only
    guide_mapnonepath globs or import:<module> to the document to read first (The six capabilities)either; a project can only add to the user's entries
    architecture_file.houndwatch/architecture.yamlwhere the declared architecture iseither
    banned_trailer_toolsclaude, anthropic, copilot, cursor, codex, gemini, aider, windsurf, clineAI tool names the banned-trailers preset looks foreither; a project can only add names
    test_commandnonethe default command for command rules with no run, e.g. "pytest -q {tests}"user only
    ignore.git/**, .houndwatch/**, venv/**, .venv/**, node_modules/**, build/**, dist/**, **/__pycache__/**paths to skip, relative to the project root. Setting it replaces the whole list.either; a project's list applies only to project rules

    Specs, plans and progress

    KeyDefaultWhat it doesSet where
    spec_dirdocs/specwhere specs are. The current spec is the most recently modified *-design.md.either
    plan_dirdocs/taskswhere plans (*-todo.md) areeither
    programs_dirnonefolder of program files, for the goal above the planeither
    nudge_max2how many times per session the agent may be sent back at the end of a turneither
    keep_goingfalsesend the agent on to the next open plan task (Day-to-day use)either
    keep_going_max10most keep-going replies per sessioneither
    briefing_notesnoneextra lines for the session briefingeither

    Models

    KeyDefaultWhat it doesSet where
    tier1_modelchosen from your modelsthe small modeleither
    tier2_modelchosen from your modelsthe large modeleither
    routing_threshold5.0complexity score at which an auto rule goes to tier 2either
    llm_context8192context size for each checkeither
    llm_keep_alive"10m"how long Ollama keeps a model loadedeither
    llm_draft_context32768context size for rules drafteither
    ollama_urlhttp://localhost:11434where Ollama is; must be on this machineuser only
    allow_remote_ollamafalseallow an ollama_url on another machine; your code would leave this oneuser only

    llm_context and llm_draft_context must be at least 1. See Local models.

    Watcher, hook guard and notifications

    KeyDefaultWhat it doesSet where
    guard_reinstalltrueput back HoundWatch's hook when it is removed or editedeither; only the user can turn it off
    notifytruedesktop notification when a finding needs youeither; only the user can turn it off
    commit_poll_s3.0seconds between checks for new commits (at most 10)either; a project can only lower it
    debounce_ms300wait after a save before checking the file, in milliseconds (at most 5000)either; a project can only lower it

    A key a project can't set or turn off is reported like this:

    text
    .houndwatch/config.yaml:7: config key 'test_command' is ignored in a project config (it runs code); set it in ~/.houndwatch/config.yaml
    .houndwatch/config.yaml:8: 'notify: false' is ignored in a project config (it stops HoundWatch telling you when a finding needs you); set it in ~/.houndwatch/config.yaml

    An example user config

    yaml
    enabled_rule_sets:
      - starter
    rule_docs:
      - path: ~/rules/global.md
        read_first: true
      - path: ~/rules
    test_command: "pytest -q {tests}"
    tier1_model: llama3.2:3b
    tier2_model: qwen2.5-coder:32b

    An example project config

    yaml
    enabled_rule_sets:
      - tests
    guide_map:
      "src/pay/**": docs/rules/payments.md
    briefing_notes:
      - "Run the tests with make test"
    keep_going: true

    Editing config while the watcher runs

    A hand edit to either file is recorded as a rules-edited finding for you to acknowledge. houndwatch rules enable and disable record their own change instead. Agents can't edit these files: the agent hook refuses it.