Configuration
Updated
HoundWatch™ reads two optional YAML files:
- User:
~/.houndwatch/, for every project.config.yaml - Project:
<project>/, for one project. You can commit it..houndwatch/ config.yaml
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_dirortest_command. If a project config sets a user-only key, HoundWatch ignores it, so a bad value doesn't block.rule_docsis 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 aconfig-invalidwarning 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: valuesettings. 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_setshas a wrong value or no value (write[]for no rule sets), or is set more than once;enabled_rule_setsis misspelled, has a likely other name such asrulesetsorrules, or is indented under another key;enabled_rule_setsnames 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:
[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.
"User only" means a project config can't set the key. houndwatch rules validate reports it and
the value is ignored.
| Key | Default | What it does | Set where |
|---|---|---|---|
enabled_rule_sets | none | example sets to turn on (Rules) | either |
rule_docs | none | your written rule documents: a list of path and optional read_first (Rules) | user only |
global_rules_dir | none | older setting: one folder of rule documents; fills {global_rules_dir} | user only |
guide_map | none | path 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/ | where the declared architecture is | either |
banned_trailer_tools | claude, anthropic, copilot, cursor, codex, gemini, aider, windsurf, cline | AI tool names the banned-trailers preset looks for | either; a project can only add names |
test_command | none | the 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 |
| Key | Default | What it does | Set where |
|---|---|---|---|
spec_dir | docs/spec | where specs are. The current spec is the most recently modified *-design.md. | either |
plan_dir | docs/tasks | where plans (*-todo.md) are | either |
programs_dir | none | folder of program files, for the goal above the plan | either |
nudge_max | 2 | how many times per session the agent may be sent back at the end of a turn | either |
keep_going | false | send the agent on to the next open plan task (Day-to-day use) | either |
keep_going_max | 10 | most keep-going replies per session | either |
briefing_notes | none | extra lines for the session briefing | either |
| Key | Default | What it does | Set where |
|---|---|---|---|
tier1_model | chosen from your models | the small model | either |
tier2_model | chosen from your models | the large model | either |
routing_threshold | 5.0 | complexity score at which an auto rule goes to tier 2 | either |
llm_context | 8192 | context size for each check | either |
llm_keep_alive | "10m" | how long Ollama keeps a model loaded | either |
llm_draft_context | 32768 | context size for rules draft | either |
ollama_url | http://localhost:11434 | where Ollama is; must be on this machine | user only |
allow_remote_ollama | false | allow an ollama_url on another machine; your code would leave this one | user only |
llm_context and llm_draft_context must be at least 1. See Local models.
| Key | Default | What it does | Set where |
|---|---|---|---|
guard_reinstall | true | put back HoundWatch's hook when it is removed or edited | either; only the user can turn it off |
notify | true | desktop notification when a finding needs you | either; only the user can turn it off |
commit_poll_s | 3.0 | seconds between checks for new commits (at most 10) | either; a project can only lower it |
debounce_ms | 300 | wait 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:
.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.yamlenabled_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:32benabled_rule_sets:
- tests
guide_map:
"src/pay/**": docs/rules/payments.md
briefing_notes:
- "Run the tests with make test"
keep_going: trueA 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.