Vocabulary
HerdHound harness vocabulary
The terms HerdHound adds to your ontologies: matchers that tie concepts to Claude Code tool calls, and the rules that guard them. Everything else is standard RDFS, OWL and SKOS.
- Namespace
https://herdhound.dev/ns#- Prefix
@prefix hh: <https://herdhound.dev/ns#> .- Turtle
- /ns.ttl, also served for
Accept: text/turtle - Guide
- Writing ontologies for the harness
Terms
hh:RuleClass
A guardrail. It fires for a tool call that is an instance of a concept it applies to, and its severity decides what happens.
- IRI
https://herdhound.dev/ns#Rule
:NoDestroy a hh:Rule ; hh:appliesTo :Destructive ; hh:severity "deny" .hh:matchToolProperty
A regular expression that must match the whole tool name, such as Bash, Read|Write|Edit or mcp__.*. A concept with only this matcher matches every call of those tools.
- IRI
https://herdhound.dev/ns#matchTool- Value
- xsd:string (regex)
:Shell hh:matchTool "Bash" .hh:matchInputProperty
A regular expression searched in the Bash command, or in the tool input as JSON for other tools. Backslashes are doubled in Turtle strings. Patterns use ASCII rules ((?i), \w, \s and \b ignore non-ASCII letters); start one with (?u) for full Unicode.
- IRI
https://herdhound.dev/ns#matchInput- Value
- xsd:string (regex)
:Destructive hh:matchTool "Bash" ; hh:matchInput "rm\\s+-rf" .hh:matchPathProperty
A glob matched against file_path, path or notebook_path: * stays within a folder, ** crosses folders, ? is one character. It matches the whole path or its tail.
- IRI
https://herdhound.dev/ns#matchPath- Value
- xsd:string (glob)
:SecretFile hh:matchTool "Read|Write|Edit" ; hh:matchPath "**/.env" .hh:appliesToProperty
The concept a rule guards. The rule fires for calls that are that concept or anything below it in the taxonomy.
- IRI
https://herdhound.dev/ns#appliesTo- Used on
hh:Rule- Value
- a concept (rdfs:Class or skos:Concept)
:CareWithRisk a hh:Rule ; hh:appliesTo :RiskyAction .hh:requiresProperty
The rule fires only while no earlier call in the session was this concept: "do X before Y".
- IRI
https://herdhound.dev/ns#requires- Used on
hh:Rule- Value
- a concept
:TestFirst a hh:Rule ; hh:appliesTo :Commit ; hh:requires :Testing .hh:severityProperty
"deny" blocks the call, "ask" asks the user, "warn" (the default) tells the agent and lets the call run. When several rules fire, the strictest wins.
- IRI
https://herdhound.dev/ns#severity- Used on
hh:Rule- Value
- "deny" | "ask" | "warn"
:NoDestroy hh:severity "deny" .hh:messageProperty
What the agent reads when the rule fires. Say what to do instead.
- IRI
https://herdhound.dev/ns#message- Used on
hh:Rule- Value
- xsd:string
:NoDestroy hh:message "Never delete recursively; ask the user." .hh:seeAlsoProperty
A concept the agent should look up next, named in the message it gets.
- IRI
https://herdhound.dev/ns#seeAlso- Used on
hh:Rule- Value
- a concept
:NoDestroy hh:seeAlso :RiskyAction .Standard terms HerdHound reads
| Term | Used for |
|---|---|
rdfs:subClassOf, skos:broader, skos:narrower | the taxonomy: a call that is a concept is also every concept above it |
owl:Class, rdfs:Class, skos:Concept | declaring concepts |
rdfs:label, skos:prefLabel | names shown in HerdHound and to agents |
rdfs:comment, skos:definition | definitions, shown by herdhound harness explain |