Commands
Every herdhound command-line command, for you and for agents in containers.
herdhound with no arguments starts the terminal UI. Everything else is a command. The same binary is installed in every container, so agents use these commands too.
Program
| Command | Does |
|---|---|
herdhound |
start the terminal UI in the current folder |
herdhound --version |
version and source build id |
herdhound --default-config |
print every setting with its default |
herdhound --help |
usage and the config file path |
Knowledge base: herdhound kb
| Command | Does |
|---|---|
herdhound kb read <slug> |
print a note |
herdhound kb write <slug> [--name N] [--type T] [--tags a,b] [--session S] |
create or replace a note, body from stdin; options left out keep their old values |
herdhound kb delete <slug> |
delete a note everywhere |
herdhound kb links <slug> |
links out (missing targets marked) and backlinks |
herdhound kb manage list [--type T] [--tag X] [--session S] |
list notes |
herdhound kb manage search <words> |
full-text search |
herdhound kb manage rename <old> <new> |
rename and fix every [[old]] link |
herdhound kb manage retag <slug> [--name N] [--type T] [--tags a,b] |
change metadata, keep the body |
herdhound kb manage lint |
dangling links, orphans, notes without a type; exits 1 when it finds any |
herdhound kb manage reindex |
rebuild the search index |
herdhound kb manage gc [--days N] |
remove delete markers older than N days (default 30) |
Harness: herdhound harness
| Command | Does |
|---|---|
herdhound harness concepts |
the taxonomy as a tree, with matchers and rules |
herdhound harness explain <concept> |
definition, parents, narrower concepts, matchers, rules |
herdhound harness rules |
every rule with its severity |
herdhound harness classify <tool> '<json>' |
what a call would match, and the decision, without running it |
herdhound harness check |
syntax errors and rules that can never fire; exits 1 when it finds any |
herdhound harness log [--session S] [-n N] |
recent events |
herdhound harness hook <start|pre|post|prompt> |
the Claude Code hook itself; reads the hook input on stdin |
Environment
| Variable | Does |
|---|---|
HERDHOUND_KB |
use another folder for the knowledge base |
HERDHOUND_HARNESS |
use another folder for the harness (ontologies, skills, agents, log) |