# Requirements

What kebbie needs on a machine and in a repo, and what `kebbie doctor` checks. kebbie runs on macOS and Linux, inside herdr 0.9.0 or later.

## Tools

| Tool | Needed for | macOS | Linux |
| --- | --- | --- | --- |
| `git` | everything | `xcode-select --install` | `sudo apt install git` |
| `herdr` 0.9.0+ | everything | `brew install herdr` | `curl -fsSL https://herdr.dev/install.sh \| sh` |
| `claude` (Claude Code) | everything | `curl -fsSL https://claude.ai/install.sh \| bash` | the same |
| `jq` | the sidebar sync and the review hook | `brew install jq` | `sudo apt install jq` |
| `cargo` | building kebbie on the `main` channel or from `kebbie update --from` | `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \| sh` | the same |
| `nvim` 0.10+ | the review split's diffs | `brew install neovim` | a [release](https://github.com/neovim/neovim/releases) |
| `curl` | downloading a release's prebuilt binary | `brew install curl` | `sudo apt install curl` |
| `gh`, logged in | verifying a downloaded binary's build attestation | `brew install gh` | [cli.github.com](https://github.com/cli/cli#installation) |
| `tig` | the history split | `brew install tig` | `sudo apt install tig` |

- Without rustup, `rustc` must be at least the `rust-version` in `Cargo.toml`.
- Distro packages of `nvim` are often older than 0.10.
- Rust is only needed where kebbie is built from source. A release tag installs a prebuilt binary on macOS on Apple silicon and on Linux with glibc (x86_64 and arm64); an Intel Mac builds from source; see [Prebuilt binaries](/docs/explanation/updates-and-restarts.md#prebuilt-binaries).
- Plan usage on the board needs a Claude.ai plan; an API key gives no usage numbers.

The task sandbox (`task.sandbox`, on by default) needs Claude Code 2.1.285 or later. macOS needs nothing more. On Linux it also needs:

```
sudo apt install bubblewrap socat
```

and the seccomp filter that blocks Unix sockets:

```
npm install -g @anthropic-ai/sandbox-runtime
```

Without them kebbie refuses to start tasks until they are installed or `task.sandbox = false`.

A task whose profile runs Codex needs Codex CLI 0.163.0 or later and kebbie's plugin in it (`kebbie setup codex`). Install Codex with one of:

```
curl -fsSL https://chatgpt.com/codex/install.sh | sh
```

```
brew install --cask codex
```

```
npm install -g @openai/codex
```

## What `kebbie doctor` checks

In a terminal, `kebbie doctor` opens with its count, then **Needs you**: each check marked `!` (warn), `✗` (fail) or `?` (not checked), with its text and each fix as `→ …`. One line per group follows, `✓` when every check in it is ok, else its worst mark, with what the ok checks found:

```text
kebbie doctor                                                       45 ok · 2 to look at

 Needs you
  ! codex approvals  ~/.codex/rules/kebbie.rules is not the file this kebbie writes
                     → kebbie setup codex
  ! sandbox          off (task.sandbox = false): a task's shell commands run unsandboxed
                     and can pass as you to kebbie's user-only commands
                     → set task.sandbox = true (now from the machine config)

 kebbie        ✓ main @ 1a2b3c4 · built from source · keeper running · on PATH
 Claude Code   ✓ claude · signed in · plugin current · status line
 Vault         ✓ mindin 0.13.0 · server · task notes · claims as laptop · backlog
 Tools         ✓ git · jq · curl · nvim · tig · cargo

 kebbie doctor --all shows every check
```

`kebbie doctor --all` lists every check under the same groups. The groups:

| Group | Checks |
| --- | --- |
| kebbie | `updates`, `plugin binary`, `keeper`, `board` (each running board, warned when it started before the installed binary), `kebbie on PATH`, `current link`, `herdr link` |
| Claude Code | `claude`, `claude login`, `claude plugin`, `claude plugin source`, `status line`, `claude model` |
| Codex | every `codex …` check |
| Vault | `vault`, `machine`, `backlog vault` |
| herdr | `herdr`, `herdr plugin` |
| Tools | `git`, `jq`, `curl`, `nvim`, `tig`, `cargo` |
| Files | `config`, `repo config`, `state dir`, `task hooks`, `setup skill` |
| Tasks | `sandbox`, `push block`, `setup command`, `task profile`, `profile`, `reviewer`, `docs`, `tests`, `comments`, `backlog`, `backlog local`, `backlog linear` |
| Signals | `maintainers`, `reports`, `hub`, `clock`, `notify` |

With `--plain`, without a terminal or with `NO_COLOR` set, each line is `ok`, `skip`, `warn` or `fail`, the check's name and its text; `skip` is a check that got no answer, counted apart as not checked. Every `warn` and `fail` carries a `fix:` line for macOS and Linux. `kebbie doctor` exits non-zero when any check fails.

| Check | Looks at |
| --- | --- |
| `git`, `herdr`, `claude`, `jq`, `nvim`, `tig`, `curl`, `cargo` | Present on `PATH`, at the versions above. A missing `cargo` is fine on the release channel with a downloaded binary. |
| `herdr plugin` | kebbie installed and enabled in herdr. |
| `herdr link` | The folder herdr links kebbie from, for a local link, still holds a kebbie checkout. One that is gone fails, with `kebbie doctor --fix` as the fix. |
| `plugin binary` | The plugin's binary is in place, and whether it was downloaded for a release tag or built from source. A download whose attestation `gh` did not verify warns, `its origin not verified`. |
| `claude plugin` | The Claude Code plugin is installed, and the copy Claude Code runs matches the checkout. |
| `claude login` | `claude auth status` says Claude Code is logged in. A `warn` names `claude auth login`; no answer reads `skip`, `login not checked`. |
| `claude plugin source` | The plugin's marketplace matches the update channel. |
| `status line` | The status line for plan usage. |
| `current link` | `~/.local/share/kebbie/current` points at the plugin. |
| `kebbie on PATH` | `kebbie` on `PATH` is the `current` link's binary. |
| `updates` | The last update check, without fetching. |
| `keeper` | Whether the keeper runs, with its pid and uptime, or that `[keeper] enabled = false` turns it off. |
| `state dir` | The state directories. |
| `config`, `repo config` | config.toml and every file in the repos folder parse, with no unknown or misplaced keys and no broken links. |
| `task profile` | Each `task.profile` in config.toml and the repo configs names a profile there is; a warning lists the profiles. Shown only when a file sets it. |
| `push block` | Inside a repo: whether its task worktrees get the push block. |
| `task hooks` | Open tasks and the lead whose hooks run a kebbie binary that is gone, so their test runs and edits go unrecorded (`kebbie restart` gives each its settings again, a busy one once it is idle). |
| `docs` | Inside a repo: whether `docs.required` is on. |
| `tests` | Inside a repo: which tests a ready report waits on, `tests.before_push` and its `tests.full_command`. |
| `test commands` | Inside a repo: a test script of the repo's own (`script/test`, `bin/test`, `scripts/test`, `script/spec`, `bin/spec`) that `task.test_commands` leaves out, so no task's run of it is recorded. |
| `deploy window` | Inside a repo: a deploy of its was cancelled (a watch that ended cancelled, or a cancelled run you dismissed on a task still open) and `ci.deploy_window` is unset, so the cancel went to Needs you; naming the repo's deploy hours keeps such a run under CI running and re-runs it once they open. |
| `comments` | Inside a repo: whether kebbie reads comments on the commits it pushes there, and for how many days, and those on your own commits and that mention you, or why not. |
| `setup skill` | The setup skill's plugin is installed and enabled. |
| `hub` | Whether the machine joined a kebbie hub, and how its board posts go. |
| `clock` | With a hub joined only: this machine's clock against the hub's. |
| `maintainers` | Where error signals and kebbie's own bug reports go. |
| `reports` | With `report.inbox_token` set only: the reports endpoint and the reports and signals it filed here. |
| `machine` | With the vault on or a hub connected only: the name the phone and the other machines on the vault see. |
| `notify` | Whether `notify.command` is set. It is never run. |
| `sandbox` | Whether tasks run in the sandbox. |
| `vault` | The vault command kebbie runs, asked with `about --json` at each run: its name, version and capabilities; none set (fine, it is optional), failing, lacking a capability, or renamed, with the `vault.command` line to set. `kebbie doctor --fix` writes that line after your `y`. |
| `codex`, `codex plugin`, `codex hooks`, `codex login` | Codex at 0.163.0 or later, kebbie's plugin in it, its hooks on, and `codex login status` logged in. |
| `codex model` | The model in Codex's `config.toml`, which a Codex profile without `model` runs. Shown only when the file names one. |
| `codex old plugin` | An unused copy under `kebbie@kebbie`, which Codex installed from a repo's marketplace named kebbie and nothing turns on; the fix removes it. |
| `backlog …` | Each backlog source can be read, and an installed source not in use. |

- `docs` suggests turning `docs.required` on when `gh` says the repo is public on GitHub. Without `gh` or a GitHub remote the line is left out.
- `tests` suggests `tests.before_push = "full"`, with the command, when the repo's tasks ran a whole suite green in five minutes or less (the median of kebbie's recorded runs). It warns when `"full"` is set without `tests.full_command`. A repo on related tests with no short run recorded has no line.
- `hub`: when the machine has joined, it shows the hub's address and the machine's name, whether it pinned an account key and when the board last went out. It warns when the hub does not answer, the machine holds no account key (so no browser can read its board) or the last post failed. It fails, naming the file, when the machine's hub identity cannot be read.
- `clock` reads the time in the hub's `Date` header and warns when this machine's clock is more than a minute off, behind or ahead, and says what that risks: more than 5 minutes behind, the phone's commands are refused as expired; less, they are refused once it drifts that far; ahead, they expire early by as much. When the hub does not answer, the line reads `skip`, not compared. Its fix sets the clock: `sudo chronyc makestep` on Linux, `sudo sntp -sS time.apple.com` on macOS.
- `maintainers`: whether error signals go to kebbie's maintainers (`report.signals`, `not asked` until it is set), when they last went and whether that failed, and what happens to the bugs and wishes about kebbie saved here (`report.text`). It warns while `"always"` is set but not armed.
- `reports`: how many reports were filed here, the last fetch and its error, and how many reports wait in quarantine on the issues endpoint.
- `comments` warns when `comments.watch` is on but origin is not on GitHub or `gh` is missing or logged out, with the same reason `kebbie ci` gives. With `comments.watch = false` it says it is off.
- `machine` warns while `machine.name` is unset.
- `sandbox` is on and ready; on with what is missing on Linux, a `fail` since tasks then do not start; or off with `task.sandbox = false`, a `warn` that says a task's shell can pass as you.
- `codex` looks for Codex on `PATH`, kebbie's plugin in its cache and current, and nothing in Codex's `config.toml` that turns kebbie's hooks off (`[features] hooks = false`, or one of them turned off in `/hooks`). Only `codex` shows until a profile runs Codex or Codex is on `PATH`. A gap is a `warn` until a profile runs Codex, and a `fail` after. `codex login` shows once kebbie's plugin is installed or a profile runs Codex; its fix is `codex login`.
- The login checks only read: they run `claude auth status` and `codex login status` for at most five seconds each and never log you in. A CLI too old for the command, or one that does not answer in time, reads as `login not checked`, never as logged out.

## Repos

A repo needs a remote named `origin` with a default branch: `origin/HEAD`, else `origin/main` or `origin/master`. Without one, kebbie says to run `git remote set-head origin -a`.

The push block uses git's per-worktree config. A repo whose shared git config sets `core.worktree` or `core.bare = true` gets no push block until those are moved; `kebbie start` and `kebbie doctor` say so.
