Skip to main content

Crate hird

Crate hird 

Source
Expand description

hird — a cross-harness agent work queue and shared assertion memory.

Several AI coding agents, each in its own harness (Claude Code, Codex CLI, Copilot, …), coordinate through one local SQLite database: a work queue with atomic claiming and lease-based liveness, and an assertion store carrying provenance. A human drives both from a ratatui TUI or the CLI.

Layering:

  • model — domain types and the task status machine
  • db — connection setup and schema migrations
  • repo — the only place SQL is written
  • witness — the only place the working tree is read
  • exhibit — reading back the versions the witness kept: diffs of uncommitted work, and salvage of what was written over
  • footing — the second reader of it, on memory’s behalf: what an assertion was learned against, and whether that has moved since
  • plan — a dependency graph as a file, which repo turns into rows
  • graph — the board as one value, which every picture is drawn from
  • digest — the trail folded into news, for a human coming back to it
  • herald — the one push in a pull design: a configured command told when a task becomes claimable, so idle agents can be summoned
  • mcp, cli, tui, web — the front ends, which call repo

Re-exports§

pub use config::Config;
pub use db::Db;
pub use error::Error;
pub use error::Result;

Modules§

capability
Capability labels shared by task requirements and MCP sessions.
cli
The command line: hird add, ls, show, cancel, reopen, mem ….
config
Configuration: ~/.config/hird/config.toml plus environment overrides.
db
Database handle: connection setup, pragmas and schema migrations.
digest
The digest: what happened on the board while nobody was looking.
error
Error type shared by the repository layer.
exhibit
The exhibit: reading back what the witness kept.
fmt
Short human-readable renderings shared by the CLI and the TUI.
footing
Reading the working tree on memory’s behalf.
gate
The gate: a policy the process serving a connection may put in front of the queue’s own transitions.
glob
Path patterns: matching, and whether two patterns can ever name the same file.
graph
The graph as data: one snapshot of the board that every picture is drawn from.
hash
SHA-256, for deciding whether a file is the same file it was.
herald
The herald: the queue announcing work that is waiting for hands.
identity
Who is acting, and on which project.
install
Self-installation helpers for the hird binary and agent skill.
mcp
The MCP server: hird mcp.
model
Core domain types: task status machine, tasks, events and assertions.
plan
Plan files: a whole dependency graph, written down before it is filed.
register
hird register: write this binary’s MCP registration into a harness’s config file.
repo
Typed repository layer. All SQL in hird lives here.
tui
The terminal UI: hird tui.
web
hird web: the board in a browser — a viewer, not a transport.
witness
The witness: what the working tree says actually happened.