How kebbie fits together

This page explains kebbie's parts and how they talk, so you can run many Claude Code sessions at once without losing track of them.

herdr already holds the terminals and the agents. kebbie adds what herdr does not know: that a session works on a task, in a branch, in a repo, and that the task ends with commits on the default branch.

One binary does the work

The kebbie binary. One Rust program starts tasks, keeps the worktree pool, draws the board, carries messages and questions, decides who may push, runs the reviewer and updates itself. Everything else calls it by name.

The keeper. One kebbie keeper process per machine runs kebbie's routines in the background, so they go on while no board is open. See The keeper.

The herdr plugin installs and starts kebbie

herdr installs kebbie from its repo and runs scripts/build.sh, which downloads the release's prebuilt binary for a release tag and builds with cargo otherwise. The plugin gives herdr:

  • its actions: kebbie.lead, kebbie.focus, kebbie.chat, kebbie.board, kebbie.update,
  • the board and update popups,
  • a startup script that links ~/.local/share/kebbie/current to wherever herdr put the code, starts the board again in a restored lead Space, and starts the keeper.

That link gives configs, hooks and your PATH one stable address across updates. The plugin also keeps the lead Space at the top whenever Spaces are created or moved.

The Claude Code plugin carries the skills

The Claude Code plugin carries kebbie's skills (worktree setup, commit rules, the reviewer's instructions, the review split) and the hook that opens the review split. You add its marketplace from the same current folder, so the skills Claude loads are always the same code as the binary that runs them.

The vault and the hub are optional

The vault. A vault command, such as mindin, keeps notes in a vault. With it in vault.command, kebbie runs it for every task, whatever agent runs the task: each task gets a note as its memory, and pushes are logged. Without it, kebbie keeps its own state and loses nothing it needs to run. See The vault.

The hub. A kebbie hub relays each machine's board, sealed to the account that connected it, to any phone or browser signed in with that account's passkey. It also takes kebbie's error signals and bug reports for its maintainers. The phone only reads: the hub cannot start anything on the machine. Notifications through the hub are not available in this version. See See your board on your phone and What goes to the hub.

A task is a worktree, a Space and a Claude

kebbie keeps three things together under one task name:

  • a branch in a git worktree from the repo's pool,
  • a herdr Space labelled with the task's name,
  • a Claude session running in that Space with the task role, in a tab with the task's name.

The role tells Claude which task and repo it is, which skill to run first, which rules to commit by, who its peers are, and how to report. kebbie also gives the session its own settings: hooks that collect a report at the end of each turn, and rules that keep it from pushing.

Git is the source of truth for the pool, so kebbie needs no database of tasks: a worktree on a task branch is a task. The rest of kebbie's state (reports, messages, questions, verdicts, permissions) lives in files in one private state directory.

You talk to the lead

The lead is a Claude in the lead Space next to the board, in a tab named kebbie, with a role that makes it responsible for the whole picture. It starts tasks, reads their reports, checks their commits when the reviewer's rules check gives no verdict, and relays what one task needs to know from another. See The lead and away mode.

Tasks talk through kebbie

Tasks never type into each other's terminals. They talk through kebbie:

  • kebbie report at the end of every turn says where the task stands and what you should do next. The board groups tasks by it.
  • kebbie ask puts a question to you. It waits on the board until you answer, and every other message to that task is held meanwhile.
  • kebbie tell messages another session. Each message is logged and shown on the board, and the lead gets a copy. Any other session on the machine, a Claude or a shell, can tell a task or the lead too, and its message says where it came from.

So you see every message on the board, and the lead sees it without the messages crowding its chat.

The keeper

Some of kebbie's work runs on a clock rather than on a command. The keeper runs each job on its own interval and sleeps in between. A job that fails is retried later each time, up to every 15 minutes, and its error is logged once.

Messages and prompts move within seconds

Every The keeper
3 seconds Delivers held messages once their receiver is free, and a new task's prompt that waited for your answer to Claude's trust prompt.
3 seconds Checks prompts kebbie typed for delivery, and tells the board when one was not taken.
3 seconds Runs the sidebar sync, so the board sees a running dev server or worker even when herdr is attached from another machine, whose tab bar never runs it here. See Show task state in herdr's sidebar.
5 seconds Sends the lead a prompt a task's Claude waits on in its own pane. See Claude's own prompts in a task.
5 seconds Gives a ready task's rules check its read-only reviewer. See The review gate.

Pushes and queues move every 15 seconds

Every The keeper
15 seconds Completes a push that waits for a task's Claude to test the files the default branch changed under it, once the task reports ready with the same commits.
15 seconds Puts a staged task whose stage conflicted back on local main once its Claude reports ready, and stops counting a staged task as staged once its commits reached origin. See kebbie try.
15 seconds Starts the test run of each unpushed commit of a task that reported ready, one commit at a time; with no task waiting it reads one folder. See Test each commit on its own.
15 seconds Starts queued tasks once every task they wait for has ended as done. See kebbie after.
15 seconds, and at least once a minute With a hub connected from its link, sends the board to the hub sealed to your account when it changes. See See your board on your phone.

CI, API errors and issue rechecks every 30 seconds

Every The keeper
30 seconds Checks pushed tasks' CI watches. See kebbie ci.
30 seconds Resumes tasks an API error stopped. See When the API stops a task.
30 seconds After an update, rechecks each open kebbie issue filed on older code against the new commits. See Bugs you ran into in kebbie.

Restarts, landings and routines every minute

Every The keeper
minute Restarts stale Claude sessions and Codex tasks once idle.
minute Closes tasks whose commits are on the default branch as done. See kebbie done --landed.
minute Starts due routines' runs as tasks.
minute Rebases tasks that follow main when it moves. See kebbie follow.
minute With [report] text = "always" armed, sends the bugs and wishes about kebbie saved here to kebbie's maintainers.

Updates and reports on a slower clock

Every The keeper
10 minutes Reads the update check's cache, and fetches when the last fetch is 6 hours old.
10 minutes With [report] inbox_token set, on a maintainer's machine, files the reports the issues endpoint let through, and the error signals three installs share, as kebbie issues; a report signed with this install's own key is acked and not filed. With the fault watcher on, each filed report goes to it for its cause and fix.
hour, sent at most once a day Sends the error signals counted since the last send to kebbie's maintainers. See Error signals.
hour, sent at most once a UTC day Sends the install signal, so the maintainers can count active installs. See The install signal.

A remote that never answers

A dead connection never holds the keeper's other jobs or the push line. A fetch is stopped after 4 minutes and a push after 30, and ssh gives up on a connection that stays silent for 45 seconds. A clone you watch has no limit of its own, only ssh's, and a job's fetch on a worker ends with its job. A fetch or push never asks for a password or passphrase: it fails instead, and your own ssh command keeps its options. A stopped fetch counts as failed: the board's header says fetch failed: <repo>, and a push whose fetch was stopped leaves the line with the reason, so the next push goes on.

One keeper per machine, with no terminal

The keeper logs to keeper.log in the state directory. A lock file there keeps it to one per machine. The kernel releases the lock when the keeper exits, so a crashed one never blocks the next.

herdr's startup hook starts the keeper in its own session, so it outlives the hook and any pane. See Updates and stale sessions for how it follows an update.

The board reads what the keeper wrote

While [keeper] enabled is on, the keeper alone runs these jobs. The board only reads what the keeper wrote: the stale count from keeper.json, the update notice from the update check's cache, and messages and questions from the message log. Each board starts a keeper when none runs, and checks again every minute.

With [keeper] enabled = false no keeper runs, and an open board runs the jobs itself.

The keeper keeps the board's rules

The keeper calls the same functions the board did, with the same rules:

  • It never types into a session whose input box holds a draft.
  • It never restarts the pane you are in or a session mid-turn.
  • It asks about a session with background work once, as a question on the board. Your answer reaches it through the same file.

When herdr was started without them, it imports the login shell's SSH agent and PATH, as the board does.

Claude Code and Codex sit behind one seam

Everything kebbie knows about Claude Code and Codex sits behind the Agent type in src/agent, one adapter for each:

  • the settings, plugin and start flags a task's agent gets,
  • the start-up questions it answers or leaves to you, such as the folder's trust,
  • how its screen is read: its input box, and the marks of its own menus, so the lead hears a prompt in a task's pane from either agent,
  • how it is ended, where its conversation is kept and which messages in it are yours,
  • how a running session is resumed with its own flags.

The rest of kebbie, from the pool and the worktrees to the push block, the messages, the questions, the board and the routines, asks the seam and knows nothing of either CLI.

Two things stay outside the seam: the staleness checks, which read Claude Code's binary, plugins and MCP config and Codex's binary on PATH, and the read-only reviewer, which runs Claude whatever the profile says.

A task keeps its agent across restarts

A task's profile names its agent, and the task's session record keeps it, so a restart reaches the same one.

Configuration lives in your home only

kebbie reads its settings only from your home directory: one machine config, one optional file per repo, and one file per profile. It never reads a file inside a repo.

A repo's collaborators may use kebbie or not, and cloning a repo can never change how kebbie behaves on your machine. A team that wants a shared setup keeps it in a team repo and links the files in. See Share a team setup.