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

↑↓ move↵ openherdhound.dev

Knowledge base

Linked markdown notes, synced to every session, that agents search before they research.

Every container has /kb, a folder of linked markdown notes that HerdHound keeps in sync across all sessions, local and remote. Agents use the herdhound kb command (installed in every container) to search before they research and to record what they learn. A skill, loaded at the start of every session, tells Claude how.

Where notes live

  • On your machine the notes are in kb next to the config file (%APPDATA%\herdhound\kb on Windows, ~/.config/herdhound/kb elsewhere).
  • In each container they are in /kb.
  • HerdHound copies notes both ways every 5 seconds. When a note changed in two places, the newer one wins.

A note is one .md file with a little frontmatter (name, type, tags, session) and [[slug]] links to other notes. HerdHound also writes INDEX.md: every note with its links and backlinks, for agents to read first.

Commands

Command Does
herdhound kb read <slug> print a note
herdhound kb write <slug> [--name N] [--type T] [--tags a,b] create or replace a note, body from stdin
herdhound kb delete <slug> delete a note everywhere
herdhound kb links <slug> links out 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 lint dangling links, orphans, notes without a type

The graph

Press ctrl+b g for the graph of notes, the sessions that wrote them and their tags.

Key Does
h j k l, click select the nearest node in that direction
Tab step through every node
Enter open the note in a new tab
/ search note text
f focus on the selected node and what is within 2 links
t / s hide or show tags / sessions

Limits

  • Every session can read every note, so notes must never hold secrets.
  • A delete leaves a small marker file so it reaches every session. Deleting a file by hand (rm) does not spread; use herdhound kb delete.
  • The Linux herdhound for containers is built from HerdHound’s own source, once per CPU type and version. It needs a glibc image as new as Debian bookworm.