Skip to content

Loading the guide…

    On this page

    Troubleshooting

    Updated

    Most of these problems came up in HoundWatch™'s first live trial, or while testing this guide. Start here:

    houndwatch status
    houndwatch findings
    houndwatch doctor

    houndwatch doctor lists problems that stop HoundWatch checking commits, with the fix for each and who must make it. It looks for missing project files and a damaged set-up marker, and checks your config, rules, architecture files, trusted block command rules and the project's database. It exits with 1 if it finds a problem, or can't check something, and 0 if not. It changes nothing and runs no rule's command, so an agent may run it.

    It can't tell you whether the database is locked or a command is too slow. It doesn't check the hooks (use houndwatch status).

    houndwatch status shows whether the watcher is running and whether git will run the hooks, even when HoundWatch can't use the database. It names the database, but can't show your findings.

    houndwatch doctor --fix offers the few fixes HoundWatch can be sure about. Only you can run it, in your own terminal. It shows each change and asks first, asks for a reason, and saves the old files in ~/.houndwatch/backups/ before changing anything. It can:

    • correct a misspelled name in a rule file, when there is only one close match. A project command rule you change this way needs houndwatch rules trust <rule-id> again.

    • repair a damaged set-up marker, if the project still has its .houndwatch/ folder.

    • replace a damaged database with a new, empty one, with the watcher stopped. Open findings, waivers and the baseline will be lost from the new one. No new baseline is made, so existing problems are reported again. It never replaces a database that is locked, can't be read, is from an old version or belongs to another program.

    • make a new database where the project's is missing or empty, with the watcher stopped. The same things are lost. Any leftover files are saved first, and it never replaces a database you have just put back.

    If the database is missing or empty, commits are blocked in a working copy that had one before. HoundWatch never replaces it by itself, because open findings (including ones that block commits), waivers and the baseline would be lost. Cleaning up with git clean -fdx can delete it. If you have a backup, put it back. If not, run these in your own terminal:

    1. houndwatch off, if the watcher is running. It has paused, but it must be stopped.
    2. houndwatch doctor --fix, which asks first and makes a new, empty database.
    3. houndwatch on, if you use the watcher. Its first check gives one hook-skipped finding for the commits the new database can't vouch for.

    Don't use houndwatch init for this: it stops and changes nothing. It makes a new database only when you have already agreed to rejoin, or to rebuild missing project files. New clones and new linked copies have never had a database, so they get one by themselves.

    HoundWatch keeps two records that a copy had a database: houndwatch/had-database in its own git folder, and a line in ~/.houndwatch/had-databases. Either one is enough. A project outside git only has the second. They are written the first time HoundWatch opens the database, so one deleted before you upgraded isn't noticed. Agents may not change them, but another program running as you could delete both.

    If .houndwatch/ or its config is missing, or the set-up marker is damaged, commits are blocked in a project that was set up. A branch from before the config was committed can cause this too. Agent edits only get a warning. houndwatch doctor shows the fix. Repos that were never set up, or that you left with houndwatch leave, aren't blocked.

    For a missing folder or config, doctor looks for a copy in git. It names the commit and gives the commands to look at the copy and restore it. Look first: the copy may come from any branch. If git has none, use a backup. If there is no backup, run houndwatch init in your own terminal. It says what is lost, asks first, and asks for a reason. An agent can't do this, because a new default config would turn off the project's rule sets. A folder restored from git has no database, so follow the steps above for that next.

    If the watcher is running when .houndwatch/ or its database goes missing, it pauses and never recreates the folder. It still guards your hooks at user level. If the set-up marker is deleted too, it puts the marker back, unless guard_reinstall is off. houndwatch status shows it as paused. Before copying the folder back from a backup, stop the watcher with houndwatch off, then start it again with houndwatch on. If you leave it running, it carries on by itself soon after the folder is back. Either way, the next time it runs it records a hook-tampered finding and re-checks the commits made while the folder was missing.

    --fix never turns off a rule. It leaves everything else to you, with the steps from doctor.

    The watcher's log is .houndwatch/watcher.log in the project.

    Hooks

    My commit-message rules never run

    Run houndwatch hooks status. Look for this:

    text
    commit-msg  installed     WILL NOT RUN installed in .../.git/hooks but core.hooksPath (global-config) points to /Users/you/.config/git/hooks, so git never runs it (...)

    Your global git config sets core.hooksPath, so git ignores .git/hooks. Run houndwatch hooks install in a terminal and approve the global folder (Your first project). In the trial, an agent thought there was no commit-msg hook because it looked only in .git/hooks. The session briefing now lists the active hooks and where they are.

    HoundWatch™ can't run this check

    The hook couldn't get an answer from HoundWatch, so it blocked the commit. Either the Python it was installed with is missing (HoundWatch was moved, reinstalled in another place, or uninstalled), HoundWatch can't load (a file in it is broken, or something it needs is missing; it prints "HoundWatch can't load" and the broken file), or it didn't start or stopped partway through. This only blocks in a project that was set up; elsewhere the check is skipped with a message. To fix it, in your own terminal:

    1. Reinstall HoundWatch the way you installed it (with pipx, pipx reinstall houndwatch), then commit again.
    2. If the message comes back, run houndwatch hooks install in the project, then commit again. If that says the project isn't set up, run houndwatch doctor first.

    To stop using HoundWatch there, reinstall it first, then follow Uninstall.

    As a last resort, you can commit or merge with --no-verify, in your own terminal. Agents may not. It also skips every other git hook for that commit, including any secret scan, so scan the staged changes first. With gitleaks, that is gitleaks git --pre-commit --staged.

    "houndwatch: ... check skipped"

    A hook couldn't get an answer from HoundWatch, or HoundWatch can't load, but the hook didn't block: the project was never set up, you have left it, the hook runs after a commit, or an earlier version installed it. Reinstall HoundWatch if needed, then run houndwatch hooks install again (and for your agent, if you use its hook).

    "git runs hooks from ..., outside this repository"

    Your hooks are in a folder every repository shares. HoundWatch asks before it writes there. Run houndwatch hooks install in your own terminal, read the plan and answer y.

    husky or pre-commit manages my hooks

    houndwatch hooks install prints manual: lines and writes nothing. Add those lines yourself.

    If HoundWatch can't give an answer, these lines block the commit and print the same way forward as above, naming the file to update. Lines added before this version also block, but show only husky's or pre-commit's own error. houndwatch hooks status marks each of those with "no way forward". To update one, run houndwatch hooks install and replace the line with the one it prints. Unlike HoundWatch's own hooks, these lines block when HoundWatch can't answer even in a project you have left or never set up, because they're only there if someone added them. To stop using HoundWatch there, remove them.

    A hook-skipped finding appeared

    A commit didn't go through HoundWatch's checks. Common causes are --no-verify, a low-level command that moved the branch, or missing hooks. The watcher has checked the commit; fix what it found in a new commit, then acknowledge the finding. If the hooks are missing, install them again. In the trial, a --no-verify commit was reported within 4 seconds. If the finding says the commit was let through with allow-once, look through it once that problem is fixed.

    If the finding says HoundWatch can't tell whether some commits passed its checks, its database is new or was replaced, or the commits it had accepted are gone. The watcher covers all of those commits with one finding, and hasn't checked them. Commits on a remote aren't included. It still checks later commits, and reports any that skip the hooks one by one. Look through the commits with the command in the finding, fix any problems in a new commit, then acknowledge it.

    A hook-tampered finding appeared

    A hook or agent-hook entry was changed or removed outside HoundWatch. By default, HoundWatch puts its own back. If you made the change on purpose, acknowledge the finding. To remove hooks for good, use houndwatch hooks uninstall. To stop using HoundWatch in a project, use houndwatch leave as well (Uninstall).

    It also appears after .houndwatch/ or its database is deleted while the watcher is running, and when a project's set-up marker is deleted or changed. The watcher puts back a missing one, but never replaces a changed one. If you didn't change it, delete the file it names, and HoundWatch writes it again.

    Agents

    The agent's first edit is refused until it reads something

    A rule such as owner-global-rules-read-first or owner-spec-before-code is working. The message names the files to read. The agent must use its Read tool, or run one simple read such as cat docs/spec/x-design.md. A read in a pipe or chained with other commands doesn't count.

    owner-spec-before-code blocks every edit

    There is no *-design.md in spec_dir (default docs/spec), so there is nothing the agent could read. Write a spec, set spec_dir in your project config, or don't use owner-standard in that project.

    The agent couldn't tell what header or comment to write

    Enable the agent hook: it gives the agent a session briefing with the text each marker needs, and refuses a file that is missing it. In the trial, messages didn't give the exact text, so the agent read HoundWatch's source code to find it. They now do, with an example.

    One file with many missing comments gave hundreds of findings

    It now gives one finding per rule per file, with the names and lines. The fix is the same: add the comment above each function it names.

    The agent can't write a skeleton file and fill it in later

    That is on purpose. A new file must follow your rules the first time it is written. Write the whole file in one go. See The layers.

    A shell command is refused: "HoundWatch can't see what this script will run"

    The command runs code that HoundWatch can't read first, such as curl ... | sh. Save the file, look at it, then run it in a separate command.

    keep_going doesn't do anything

    An open finding needs you, so HoundWatch is waiting. Run houndwatch findings and acknowledge or waive what needs you. houndwatch status names the findings it is waiting for. One hook-skipped or watcher-down finding is enough. Also check that the plan is a *-todo.md in plan_dir with an open task, and that your last prompt didn't contain a word like "stop", "pause", "hold" or "wait". See Day-to-day use.

    Rules and findings

    init recorded no baseline, then my old files blocked commits

    The first init records the baseline for rules that are active when it runs. After you enable rule sets, run houndwatch init --baseline in your own terminal. Plain init never changes the baseline in a project that was set up before, even if its database was replaced. To check, run houndwatch findings --baseline.

    I changed a rule, but its old finding still shows

    A finding follows its rule as it is now. A rule you changed to warn, or removed, stops blocking at the next check. The finding stays listed until it is resolved, waived or acknowledged. In the trial, an old finding kept blocking after its rule changed. That is fixed.

    tests-pass says it is not trusted

    It is a command rule, and one from a project needs your approval because it runs code. Read the rule, then run houndwatch rules trust tests-pass in your terminal. You get one warning for each version of the rule, not one for every commit.

    A command rule blocks my commit because it can't run

    A trusted block command rule, such as tests-pass, blocks the commit when its command can't run. The message names the rule and its file. Fix the cause, then commit again:

    • No command: set test_command in ~/.houndwatch/config.yaml, or add run to the rule.
    • Could not start: install the missing program (for tests-pass, pytest must be on your PATH), or correct the command.
    • Timed out: find out why it is slow, or raise the rule's timeout.

    If you changed a project rule, run houndwatch rules trust <rule-id> in your terminal before you commit. Until then it only warns, and its command doesn't run.

    The test rule wants test_<module>.py, but my standards say something else

    tests-file-exists only accepts pytest's test_<module>.py. In the trial, the owner's rule document asked for <name>.test.py, which pytest doesn't collect by default. Run houndwatch rules lint to find this kind of conflict. Change the document, or write your own rule with the same id (Rules).

    My rule never fires

    1. Run houndwatch rules list. If it isn't listed, its set isn't enabled or the file has an error. Run houndwatch rules validate.
    2. Try it: houndwatch rules test <rule-id> <path>.
    3. A misspelled structure check or a bad value blocks commits, and the rule is skipped until it's fixed. rules validate shows the file and line. For a misspelled name, it suggests the right one if it can.

    The fix can't wait

    If HoundWatch blocks a commit because it can't run a check, fix the problem it names. If that can't wait, you can let that one commit through. Only you can do this, in your own terminal:

    1. Run git commit, so HoundWatch notes what is wrong. Its message offers houndwatch allow-once when that can help.
    2. Run houndwatch allow-once. It shows what is staged, the problems and what won't be checked, then asks you to confirm and give a reason. Look through the changes first: git diff --cached.
    3. Within 10 minutes, run plain git commit. Don't use -a or name files, because that commits something else.

    It covers only that exact commit, once, and only the problems you were shown. It stops working if you stage anything else, or if HEAD or the branch moves (git reset counts, even to unstage a file). If a new problem appears, commit again to see it, then run allow-once again.

    It never lifts a block from a rule, and your other git hooks still run. The commit is recorded as not checked: houndwatch status lists it, and it gets a hook-skipped finding that stays open until you acknowledge it. If HoundWatch can't write to the project's database, the watcher adds the finding when it next finds the commit. Check the commit once the problem is fixed.

    It can't help when HoundWatch can't start. The hook's own message says what to do then (HoundWatch can't run this check). Agents may not run allow-once or change its files, but another program running as you could.

    A config mistake switched rules off

    A mistake that could turn rules off now blocks commits until a human fixes it. Any other mistake gives a config-invalid warning. Run houndwatch rules validate to see all the problems it finds in config and rule files. Fix the files it names, then make the same commit again. See Configuration.

    If the message names the database, run the command it gives. For a damaged database, one from version 0.1, or one that belongs to another program, that is houndwatch doctor, which gives the steps. If it is locked or can't be opened, it is houndwatch status: let other HoundWatch work finish, or fix the file's permissions, then commit again. A check never replaces a database that it can't use. You can still use houndwatch off, houndwatch off --login and houndwatch hooks uninstall: your reason goes to ~/.houndwatch/control-journal.jsonl instead. If the message describes an internal error, run the command it gives, which usually shows ~/.houndwatch/errors.log. If the error is in HoundWatch itself, reinstall HoundWatch the way you installed it, then commit again.

    houndwatch rules enable and disable won't change a config with mistakes in it, unless the only mistakes are unknown keys. They show each problem with its line and leave the file as it is.

    HoundWatch™ ignores my project's test_command or notify: false

    Some settings only work in ~/.houndwatch/config.yaml. houndwatch rules validate lists any in your project config. See Configuration.

    Files git ignores are not checked

    That is on purpose. File checks and change tracking skip files that git ignores. If an agent edits .gitignore or .git/info/exclude, HoundWatch records ignore-rules-edited.

    Models

    Model checks are slow or time out

    Look at ollama ps. In the trial, Ollama was using a 128k context, so a 3B model took 18 GB and swapping with the 32B model took minutes. HoundWatch now sends its own context size, but other programs that use Ollama still use the app's setting. Lower it. See Install HoundWatch™.

    llm-check-skipped

    Ollama didn't answer after three tries, so the check didn't run. It never blocks. Check that Ollama is running and has a chat model, then look at .houndwatch/watcher.log. See Local models.

    A model check hasn't run

    Model checks run only while the watcher is running. Run houndwatch status, then houndwatch on.

    A model says my change is outside the spec, but there is no spec

    warn rules that use {spec} don't run when there is no spec. An older warning can stay open in houndwatch findings. Waive it if it no longer applies. If you get a new warning from one of these rules, look for a *-design.md file in spec_dir: HoundWatch found a spec. block rules are still asked without a spec. To stop a project-level one, add a spec, or a human can change or remove the rule.

    A warning names files that aren't in this commit

    At commit, a model's warning about a staged change now appears only when you try to commit that same change again. A "stays on spec" warning can also reach the agent once, as a plan reminder at the end of a turn. The warning stays in houndwatch findings until it is resolved or you waive it.

    A model's block is different. It stops the next commit, whatever files that commit contains, until it is resolved, waived or successfully appealed. If its rule is now warn or no longer on, the old block shows as a warning on later commits.

    A model blocked my commit and it is wrong

    Appeal the finding once with houndwatch appeal <id> --reason "why", while the watcher is running. If the appeal is rejected, fix it or waive it. In the trial, the small model wrongly blocked commits that only added tests. A small model's block is now confirmed by the larger model before it counts. See Day-to-day use.

    The watcher

    A watcher-down finding appeared

    Usually, the watcher stopped without houndwatch off: it crashed, was killed, was stopped with Ctrl-C, or stopped in a reboot. HoundWatch re-checks the commits made in the gap when the watcher next starts. Acknowledge it. Use houndwatch off to stop the watcher on purpose.

    If it says the marker was deleted, something removed .houndwatch/watcher.expected while the watcher was running, and the watcher put it back. If that wasn't you, find out what did it before you acknowledge it.

    The watcher doesn't start after a reboot

    It doesn't start by itself. Run houndwatch on, or set up the login agent (Your first project). houndwatch on --login writes the agent's file but doesn't load it. Run the command it prints to load it now; otherwise it starts at your next login.

    My own edit to rules or config gave a rules-edited finding

    HoundWatch can't tell your edit from an agent's, so it records every edit made outside its own commands. If it was you, acknowledge it. houndwatch rules enable and disable don't give these findings.

    houndwatch off (or another command) says it needs an interactive terminal

    Type it into your own terminal. These commands refuse to run from scripts, from agents, and inside an AI agent's session (Day-to-day use). A terminal that an agent started also counts as its session.

    Times in findings are hours off

    Times in findings and in houndwatch inventory changed are in UTC.

    Commands say there's a .codehound folder

    You have a setup from before the rename. See Upgrading.