herdhound
GitHubInstall
New in 0.4.1: a lighter session startRead more
esc

↑↓ move↵ openherdhound.dev

How HerdHound works

The ideas behind HerdHound, in words, before the keys and commands.

HerdHound puts AI coding agents in containers, puts all of those containers one keystroke apart in your terminal, and connects them. Here are the pieces, and the words the rest of the docs use for them.

Agent

An agent is Claude Code doing work on its own: reading files, running commands, editing code. HerdHound doesn’t change how Claude Code works. It changes where it runs, and what it shares.

Session

A session is one Docker container with one agent’s world in it: its files, its tools, its running processes and its Claude history. You open a session in tabs and split panes, like a terminal multiplexer.

  • Why a container: agents are most useful when they can run freely, installing packages and running tests. A container lets them do that without touching your machine, and keeps one agent’s mess away from the next one.
  • Why it persists: a session is a container, not a window. Closing HerdHound leaves it running, and reopening brings back your tabs where you left them.

Server

A server is any machine with Docker that HerdHound can reach: your own (local) or a remote one over SSH. Under the hood, servers are ordinary Docker contexts. Sessions on every server appear side by side, and you can move a session from one server to another.

Knowledge base

The knowledge base is a folder of linked markdown notes. HerdHound keeps it in sync across every session, local and remote.

  • Agents search it before they research, and write down what they learn.
  • A note is one fact, decision or how-to. It links to other notes with [[slug]].
  • The graph shows notes, the sessions that wrote them, and their tags.

This is how the second agent picks up where the first one left off.

Harness

The harness is a set of guardrails around every agent. HerdHound uses Claude Code hooks, small programs Claude Code runs before and after each tool call, to:

  1. recognise what each call is, using your ontologies,
  2. apply your rules: deny it, ask you, or warn the agent,
  3. log what went in and what came out.

The guardrails are written as ontologies and taxonomies: descriptions of the kinds of actions in your domain, arranged from general to specific, with rules on them.

Skills and agents (Claude’s)

Claude Code has two ways to extend an agent. A skill is instructions it loads when they are relevant. A subagent is a helper it can hand work to. HerdHound shares both with every session, and installs a few of its own: how to use the knowledge base, how to work with the harness, and a reviewer that checks plans against your rules.

Putting it together

          your terminal: herdhound
                    │
   ┌────────────────┼────────────────┐
 session api   session worker   session web      ← one container each
 (local)       (prod-vps)       (gpu-box)
   │                │                │
   └──── knowledge base, synced ─────┘           ← what they learn
   └──── harness: hooks + ontologies ┘           ← what they may do