Set up scribe — human and coding-agent runbook
This is the zero-to-running setup guide for scribe. It is deliberately procedural: choose one recipe, run the commands in order, and finish with the verification checklist. It covers personal Anthropic, local Ollama, hosted providers, team owners and members, multiple KBs, and Linux scheduling.
Public URL: https://getscribe.dev/setup.md
Give this guide to Claude Code, Codex, or another coding agent
Paste this prompt:
Read https://getscribe.dev/setup.md and set up scribe on this machine. Before changing anything, ask me for the setup profile, KB path, and LLM provider. For a team setup, also ask whether I am creating or joining the KB and ask for the private git remote. Inspect existing state before changing it. Execute the applicable steps; do not only explain them. Never use --force. Never print or commit secrets. Ask before the first real scribe sync because it may call an LLM and incur cost. Finish with the runbook's verification checklist and report what passed and what still needs human action.
The agent should stop and ask the human for actions it cannot safely perform, such as signing into Claude, creating a private git repository, granting macOS Full Disk Access, adding a hosted-provider API key, or installing Linux crontab entries.
Choose one profile
| Goal | Recipe |
|---|---|
| Your first personal KB, Anthropic-backed | Personal KB with
--provider anthropic |
| Your first personal KB, no API spend | Personal KB with
--provider ollama |
Use Together, Groq, Fireworks, Hugging Face, or another
/v1 endpoint |
Hosted provider |
| Create and publish a KB for a team | Team owner |
| Join an existing team KB | Team member |
| Sync your own KB from a second machine (desktop + laptop) | One KB on several machines |
| Add a team KB while keeping a personal KB as default | A second KB on one machine |
| Linux scheduling | Use the same recipe, then follow Linux cron |
| Not sure which applies, or want the conflict details | Topologies reference |
Before you pick, know what each profile costs.
--provider ollama bills nothing and runs at your hardware's
speed. A hosted /v1 endpoint ran a full week of one KB's
work for well under a dollar. The Anthropic path is the expensive one
and scales with how much you actually mine — set a spend
ceiling before you let cron loose on it.
The deciding question is how many machines write to one KB, not how many people. Two machines owned by one person need the same coordination as a five-person team; Topologies explains what is coordinated and what is not.
Before changing anything
An agent should inspect, not guess:
uname -s
command -v scribe || true
command -v git || true
command -v sqlite3 || true
command -v ccrider || true
command -v qmd || true
command -v claude || true
command -v ollama || true
scribe --version 2>/dev/null || true
If the intended KB directory already contains
scribe.yaml, treat it as an existing KB. Do not run a fresh
scribe init --path … over it and do not use
--force. For an existing checkout, cd into it
and run scribe init --check or the team-member recipe
below.
Do not paste API keys into a prompt, command history, committed
scribe.yaml, or a team repository. Hosted-provider keys
belong in the per-machine ~/.config/scribe/config.yaml
(restrict it with chmod 600) or an environment
variable.
Install the CLI and required tools
Homebrew (macOS or Linuxbrew)
brew tap oliver-kriska/scribe
brew install oliver-kriska/scribe/scribe
The formula installs git and sqlite.
ccrider ships as a cask, which a formula cannot depend on,
so install it with the remaining required tools:
brew install --cask neilberkman/tap/ccrider
curl -fsSL https://claude.ai/install.sh | bash
npm install -g @tobilu/qmd
Use claude once and complete its normal sign-in when the
Anthropic provider will be used. The Ollama profile does not spend
Anthropic tokens, but the current dependency check still expects the
Claude CLI to be present.
For fully local inference, also install and start Ollama:
brew install --cask ollama-app
Use the cask, not the ollama formula.
The formula is now built MLX-only (it depends on mlx-c) and
no longer ships the GGUF/llama-server backend the local pipeline needs —
a formula install looks successful and then fails to run the recommended
models.
Plan for RAM before you pick models.
scribe init --provider ollama scaffolds
gemma3:4b for every op, which fits 16 GB. With 32 GB or
more, the higher-quality pair is gemma3:12b as the cross-op
default (roughly 10 GB resident) and qwen3:30b-a3b at 4-bit
for contextualize and pass 2 (roughly 20 GB). Switch to it
by editing scribe.yaml after init:
llm:
model: gemma3:12b
absorb:
pass2_model: qwen3:30b-a3b
contextualize:
model: qwen3:30b-a3b
Below 16 GB, use a hosted /v1 endpoint instead — the
local path will swap and every cron job will overrun its window.
On macOS the cask registers a launchd service, so the server is
normally already running; do not start a second one if
ollama list works. When it is not running, start
ollama serve in a dedicated terminal or OS service; a setup
agent should not leave an uncontrolled foreground server attached to its
command session.
Shell installer
curl -fsSL https://raw.githubusercontent.com/oliver-kriska/scribe/main/install.sh | bash
The binary lands in $HOME/.local/bin by default. Ensure
that directory is on PATH, then install git,
sqlite3, ccrider, qmd, and the
selected LLM provider using their upstream instructions. Check the
result:
scribe --version
Personal KB
Set the target once so later commands are copy-safe:
KB="$HOME/my-kb"
Anthropic
scribe init --path "$KB" --bind --provider anthropic
Local Ollama
scribe init --path "$KB" --bind --provider ollama
--bind matters: it makes this KB the machine default and
installs the scribe handshake into ~/.claude/CLAUDE.md,
~/.codex/AGENTS.md, and
~/.config/amp/AGENTS.md. Without it, init may deliberately
leave machine-global state untouched, especially when another KB is
already configured.
Register the KB with qmd once per machine. scribe reindexes qmd but
does not create the collection. Name it after the KB's
kb_name (the directory name unless you passed
--kb-name):
qmd collection add "$KB" --name "$(basename "$KB")"
Then add ignore: ["output/**"] under that collection in
~/.config/qmd/index.yml, so drop-file staging and absorb
chunks stay out of search. scribe doctor warns while no
collection covers the KB or output/ is indexed.
Set a spend ceiling (Anthropic and hosted providers)
cron install starts unattended runs over every approved
project. On a paid provider, cap them in scribe.yaml
first:
sync:
daily_output_token_ceiling: 2000000
When today's metered output tokens cross the ceiling, further paid
calls abort and the run exits 0. Local Ollama calls are exempt.
scribe doctor warns while no ceiling is set. A machine-wide
ceiling summed across every registered KB goes in
~/.config/scribe/config.yaml as
daily_output_token_ceiling.
Continue with either provider:
cd "$KB"
scribe skill install
scribe sync --discover
scribe projects review
scribe sync --dry-run --estimate
scribe cron install
scribe doctor
What these steps do:
scribe skill installadds the operational agent skills inside the KB. It does not replace install/init; it is useful after the binary and KB exist.sync --discoverrecords candidate repositories without extracting them.projects reviewis the consent gate. Approve only repositories this KB is allowed to read. It is interactive; an agent that cannot drive the prompt runsscribe projects list --pending, confirms the list with the human, thenscribe projects approve <name>….sync --dry-run --estimateprints a token estimate for the run without writes or LLM calls: project extraction (up to--max, default 3), session mining when you add--sessions, and the queued raw-article work (contextualize and absorb). Extraction and mining are priced at this KB's median per call fromoutput/costs/, or a labeled default before there is any history.scribe sync --dry-runon its own lists the projects and changed files a run would extract. A realscribe synccan spend tokens; run it only after reviewing both.cron installinstalls macOS LaunchAgents or prints Linux crontab entries.doctorchecks dependencies, configuration, scheduling, qmd, and local Ollama health when selected. A new empty KB can have freshness warnings; hard failures must be fixed.
Optional: add a private git remote so the markdown KB is backed up:
git -C "$KB" remote add origin git@github.com:you/my-kb.git
git -C "$KB" push -u origin main
Non-interactive personal init
Supply every value that should not use a default:
scribe init \
--path "$KB" \
--bind \
--provider anthropic \
--owner-name "Alice" \
--owner-context "Platform engineer working on the API and infrastructure." \
--domains platform,infra \
--yes
Use --provider ollama for local mode. Omit
--handle to leave optional iMessage capture disabled.
Hosted OpenAI-compatible provider
There is no --provider together.
scribe init accepts only anthropic or
ollama; every other OpenAI-compatible endpoint is
configured by editing scribe.yaml after scaffolding.
Scaffold with the closest profile, then replace the llm:
block before you publish the config. A personal user starts with the
Anthropic personal recipe above. A team owner starts with the team-owner
recipe below. In either case, replace the generated top-level
llm: block with the chosen provider's real model and
endpoint policy before publishing the configuration, and delete the
provider: anthropic and model: haiku lines
under absorb.contextualize. The Anthropic scaffold sets
them explicitly, and an explicit per-op provider wins over
llm:, so contextualize would keep calling Claude.
Example:
llm:
provider: together
model: MiniMaxAI/MiniMax-M3
api_key_env: TOGETHER_API_KEY
pricing:
"together/MiniMaxAI/MiniMax-M3":
input: 0.30
output: 1.20
sync:
daily_output_token_ceiling: 2000000
Named providers (together, groq,
fireworks, huggingface) have built-in base
URLs. Use provider: openai-compat plus
base_url for another compatible
/v1/chat/completions endpoint; base_url must
be https:// unless it points at this machine, and redirects
to another host are refused. Confirm the exact serverless model ID and
current pricing with the provider; catalog names and rates change.
The key must stay outside the KB. Have the human place it in an
environment variable or add llm_api_key / provider-specific
llm_api_keys to ~/.config/scribe/config.yaml,
then restrict the file:
chmod 600 ~/.config/scribe/config.yaml
scribe doctor
scribe sync --dry-run --estimate
doctor validates the parsed routing and budget
configuration but does not send a hosted-provider probe. The endpoint,
key, and model are fully validated only by an approved real LLM call,
which can incur cost. The final sync in this guide is that end-to-end
check.
For a team KB, the routing block is shared and trust-locked, but
every member supplies their own key locally. Never commit a key to
scribe.yaml or ask a member to paste one into an agent
prompt.
Team owner: create and publish
One person creates the KB. Everyone else clones it; teammates must
not run scribe init --team --path …
independently.
Before init, choose a checkout convention shared by the team. The
example uses ~/work; the quotes are important because they
preserve ~ in committed scribe.yaml, allowing
scribe to expand it separately on every machine.
KB="$HOME/team-kb"
scribe init \
--path "$KB" \
--bind \
--team \
--kb-name acme-kb \
--allow '~/work' \
--provider anthropic \
--owner-name "Alice Example" \
--owner-context "Shared knowledge base for Acme's engineering repositories." \
--domains platform,infra \
--yes
cd "$KB"
scribe skill install
qmd collection add "$KB" --name acme-kb
--yes keeps init non-interactive. Without it, init
prompts for an iMessage handle, and anything typed there lands in the
committed scribe.yaml.
Use --provider ollama only if every participating
machine will run the chosen Ollama model. If teammates keep repositories
in different directory layouts, prefer a git-identity allowlist. Before
pushing, edit the generated scribe.yaml:
sources:
include:
- ~/work
allowed_remotes:
- github.com/acme
allowed_remotes rejects repositories without a matching
origin, regardless of checkout location. Keep
personal/client repositories out with shared
sources.exclude rules, or add per-person
sources.exclude entries in the gitignored
scribe.local.yaml. Local source lists are unioned with the
shared ones, so a local file can add exclusions but never remove a
shared one.
Init creates the scaffold commit before skills or later config edits, so commit those additions and publish the private repository:
git add scribe.yaml .claude/skills .agents/skills
git commit -m "chore: configure team KB"
git remote add origin git@github.com:acme/team-kb.git
git push -u origin main
Then onboard the owner's machine like any other member:
scribe config trust
scribe sync --discover
scribe projects review
scribe sync --dry-run --estimate
scribe cron install
scribe doctor
Do not place a personal iMessage handle, API key, personal source
path, or NDA stop word in committed scribe.yaml. Put
per-person values in scribe.local.yaml or
~/.config/scribe/config.yaml.
Team member: clone and onboard
Every member installs the CLI and dependencies first. Use the same scribe release and LLM provider policy as the rest of the team, then:
If this machine already has a personal KB and it should remain the
default agent handshake, follow A
second KB on one machine instead of running --bind. If
the team KB should become the default, the bind below changes the global
handshake, but the previous personal KB is preserved as an explicit
registry entry so it stays in the machine-level schedule.
KB="$HOME/team-kb"
git clone git@github.com:acme/team-kb.git "$KB"
cd "$KB"
git config user.name "Alice Example"
git config user.email "alice@example.com"
scribe init --bind --yes
qmd collection add "$KB" --name acme-kb # the kb_name in scribe.yaml
scribe config trust
scribe skill install --check
scribe sync --discover
scribe projects review
scribe sync --dry-run --estimate
scribe cron install
scribe doctor
The member command is scribe init --bind --yes
inside the clone. Do not pass --path,
--team, --kb-name, --allow, or
--provider: those are team-owner choices already committed
in scribe.yaml. This init invocation checks the checkout
and installs that member's machine-local default and agent handshakes
without recreating the KB.
On a fresh clone there is no trust snapshot yet, so
scribe config diff has nothing to compare against. Read the
committed scribe.yaml instead (sources,
llm.base_url and ollama_url, every per-op
provider) before running scribe config trust, which accepts
the cloned sensitive settings on that machine. From then on,
config diff shows what a teammate's push changed.
skill install --check ensures the committed skills match
the member's binary. If it reports drift, coordinate one skill update
through the shared repository instead of having every member create
competing updates.
Each member has their own gitignored
scripts/projects.json, so each must run discovery and
approve repositories. Those approvals and absolute paths are not shared.
The shared commands/flags live in committed scribe.yaml;
the local manifest, credentials, subscriptions, capture handles, and
additional source filters remain per-machine.
One KB on several machines
A desktop and a laptop, both yours, both writing into one KB. Despite
the name, this is the team recipe: team: true is
scribe's multi-writer switch, not a headcount. One person with two
machines needs every guarantee a team needs.
Skipping the flag is the most common way to break a second-machine setup, because nothing fails loudly:
Gated on team: true |
Without it |
|---|---|
scripts/projects.json gitignored |
Committed, but holds machine-local absolute paths, extracted SHAs,
and approval decisions. Every sync --discover rewrites it
with the other machine's view. |
scripts/dream-lease.json |
Both run the weekly dream cycle at once. lock_dir is
machine-local and cannot see across machines. |
| Config trust lock | A pushed change to sensitive keys applies everywhere silently. |
| Secret-scan commit gate | Credential-shaped values commit into shared history. |
Extraction dedup via scripts/extraction-ledger.json is
not gated — it works the same on a solo KB. Budget for
one exception: a machine that has never extracted a repository lists it
through git — tracked and untracked files, with .gitignore
honored — then extracts it once at full model cost, because the
never-extracted case is decided before the ledger is consulted. Run
scribe sync --dry-run before the first real sync on a new
machine to see that list. --estimate prices those
extractions at the KB's median per call, which comes from incremental
runs, so expect a first full pass to cost more. Topologies is the
canonical reference for what is and is not coordinated.
Step 1 — prepare the KB (once, on the machine that has it)
A KB created with scribe init --team is already
prepared; skip to step 2. To convert a KB you have been running
solo:
cd ~/your-kb
# add `team: true` to scribe.yaml, then:
git rm --cached scripts/projects.json # the file stays on disk
printf 'scripts/projects.json\n' >> .gitignore
scribe config trust # re-record the now-enforcing snapshot
scribe doctor # expect: "team KB — sensitive keys locked, no drift"
git commit -am "chore: go multi-writer" && git push
Turning the flag on hard-disables iMessage capture and pull
integrations from the repo config — they are personal sources,
and a pushed enabled: true must not switch them on for
every machine reading the repo. The trusted snapshot does not restore
them either. Move both blocks verbatim into the gitignored
scribe.local.yaml of the machine that should keep running
them:
# scribe.local.yaml — this machine only, always wins over scribe.yaml
capture:
self_chat_handles:
- "+15551234567"
integrations:
pinboard:
enabled: true
Give capture to exactly one machine. Messages is iCloud-synced, so
every Mac on the same Apple ID sees identical messages; capturing on two
ingests a URL twice whenever both capture between pulls, and makes them
fight over the committed scripts/imessage-state.json. The
per-machine Full Disk Access grant is a useful forcing function — simply
never run scribe fda on the second machine.
Turning the flag on also activates the secret gate, which adds a
whole-KB audit to scribe doctor. Pre-existing
credential-shaped strings in old articles surface as a new warning; they
are historical, not a regression. New articles containing one are held
back from the commit — watch for SECRET HELD: in sync
logs.
Step 2 — onboard the second machine
Identical to Team
member: clone the same repository and run
scribe init --bind --yes inside it. Do not pass
--path, --team, --kb-name,
--allow, or --provider — those choices are
committed.
git clone git@github.com:you/your-kb.git ~/your-kb
cd ~/your-kb
git config user.name "Your Name" && git config user.email "you@example.com"
scribe init --bind --yes
qmd collection add ~/your-kb --name "$(basename ~/your-kb)" # use the kb_name in scribe.yaml if it differs
scribe config trust
scribe sync --discover
scribe projects review
scribe cron install
scribe doctor
Add your provider key to ~/.config/scribe/config.yaml on
this machine — credentials live in user config or the environment, never
in a KB.
Step 3 — stop the second machine fighting the first
scribe cron install lays down the same
schedule on every machine. Only two things are coordinated across
machines: dream (through the lease) and project extraction
(through the ledger). These jobs mutate shared KB state with neither,
and will fire simultaneously on both machines:
lint --fix, lint --duplicates,
lint --resolve, lint --identities,
lint --apply-identities
scribe sync additionally drains the committed
ingest.inbox_path (default raw/inbox) on every
machine with no dedup, so two machines that pull the same queued file
before either drains it will both convert it. There is no separate job
to disable — queue files on the maintenance machine, or accept the
occasional duplicate article.
scribe cron has no per-job disable — only
install, status, uninstall. The
per-machine lever is each.cadence, which is read from the
gitignored scribe.local.yaml and applied after trust
enforcement, so it always wins. Let one machine own KB maintenance and
throttle those jobs on every other machine:
# scribe.local.yaml — secondary machine
each:
cadence:
"lint --fix": "3650d"
"lint --duplicates": "3650d"
"lint --resolve": "3650d"
"lint --identities": "3650d"
"lint --apply-identities": "3650d"
This is a throttle used as an off switch. It is reversible and
survives scribe cron install re-running, with one wrinkle:
cadence is measured from the job's last run on that machine —
clean or degraded — and run records are machine-local. A job with no
record yet fails open, so each throttled job still fires
once on the secondary after cron install.
A degraded run counts as proof the job fired while still surfacing the
partial failure in scribe status and
scribe doctor --section errors.
Do not throttle ingest drain. It processes
output/inbox, which is gitignored and machine-local, so it
never collides. The inbox that is shared —
ingest.inbox_path, default raw/inbox — is
drained by scribe sync itself and has no separate job to
disable.
Leave dream and dream --hot
enabled everywhere: the lease makes them safe, and the
weekly cycle still runs when your main machine is asleep. Keep
sync, sync --sessions, commit,
and watch too — that is the contribution path.
Expected on a fresh second machine
Two readings look like failures and are not:
scripts/projects.json — 0 projects. Discovery only enrolls a path that exists on disk. A new machine has the session history but not the repositories, so every candidate is skipped. Clone the repositories you will work on there, re-runscribe sync --discover, thenscribe projects review— new projects arrive as pending.scribe projects add <path> --localenrolls one directly; without--localit widens the committedsources.include, which every other machine then sees as config drift. Session mining stays at0 pendinguntil projects exist.- A lower qmd file count than the first machine.
Derived artifacts are gitignored and do not clone. Compare against
git ls-files '*.md' | wc -l, not against the other machine's total.
Freshness warnings reading never run clear themselves
once cron has fired once on the new machine.
A second KB on one machine
The scheduler supports multiple registered KBs, but the global
Claude/Codex/Amp handshake and kb_dir default point to one
KB at a time.
To keep an existing personal KB as the default while adding a team KB:
KB="$HOME/team-kb"
git clone git@github.com:acme/team-kb.git "$KB"
cd "$KB"
scribe init --check
qmd collection add "$KB" --name acme-kb # the kb_name in scribe.yaml
scribe config trust
scribe kb add "$KB"
scribe sync --discover
scribe projects review
scribe cron install
scribe doctor
Do not use --bind in this profile: it would repoint the
one global handshake. Target the team KB by running inside it or
explicitly:
scribe -C "$KB" status
scribe -C "$KB" sync --dry-run --estimate
To intentionally make the team KB the new default, bind the team
checkout. Rebinding preserves the previous default as an explicit
registry entry, so the personal KB keeps its place in the machine-level
schedule; scribe kb list confirms it:
cd "$KB"
scribe init --bind --yes
scribe kb list
One KB-agnostic LaunchAgent set runs scribe each across
the registry; a second KB does not require a second set of plists.
Configure per-KB pacing with each.cadence in that KB's
scribe.yaml if needed.
Linux cron
On Linux, scribe cron install prints crontab lines
instead of installing them. Review the output, paste the block into
crontab -e, then verify:
crontab -l
scribe cron status
scribe kb list
scribe cron status reports whether the scribe block is
actually present in the user crontab. Do not claim scheduling is
installed merely because scribe printed the block; the user must
actually save it.
Optional macOS iMessage capture
Personal KB: add the self-chat handle during interactive init or
later in scribe.yaml. Team KB: place it only in the
gitignored scribe.local.yaml. Then grant Full Disk Access
to the exact scribe binary:
scribe fda
scribe fda --verify
Official macOS release binaries are Developer ID signed and
notarized, so a signed replacement at the same registered path keeps the
grant. Homebrew moves the raw executable to a new versioned Cellar path,
which TCC records separately, and an unsigned local
make install changes the code identity. Re-run
scribe fda after brew upgrade or an unsigned
rebuild to verify and re-grant.
Verification checklist
Use -C so every check names the intended KB
explicitly:
scribe --version
scribe -C "$KB" init --check
scribe -C "$KB" doctor
scribe kb list
scribe -C "$KB" projects list
scribe -C "$KB" sync --dry-run --estimate
scribe -C "$KB" skill install --check
git -C "$KB" status --short
init --check is read-only; never pair it with
--yes, which without --check repoints the KB
binding in your global agent files. Verify scheduling —
cron status covers both platforms (LaunchAgents on macOS,
the crontab block on Linux):
scribe cron status
# Linux, to see the block itself
crontab -l
For a team KB, also run:
scribe -C "$KB" config diff
git -C "$KB" remote -v
Setup is complete when:
scriberesolves to the expected binary and reports a version.init --checkfinds the intended KB without prompts or writes.doctorhas no unexplained hard failures; qmd is healthy, and Ollama is reachable with the chosen local model when that provider is selected.- The KB appears in
scribe kb list, and cron is installed (or its Linux block has actually been added). - Only intended repositories are approved.
scribe sync --dry-runlists only intended projects, and a paid-provider KB has a daily token ceiling before its first real sync.- Agent skills match, and team config has no unreviewed drift.
- The KB git remote is private and the worktree contains no accidental secret or machine-local file.
For a hosted provider, the checklist proves local configuration but deliberately does not spend tokens on a probe. A successful first real sync below is the endpoint/key/model verification.
Only then, and with the user's approval when inference may cost money, run the first real pipeline pass:
scribe -C "$KB" sync
What
init, the handshake, and skills each do
scribe init --bindcreates or checks the KB and wires the one machine-global Claude Code/Codex/Amp handshake. That handshake makes agents in other project directories query the KB and write reusable drop files.scribe skill installwritesscribe-kb,scribe-kb-tidy, andscribe-cliinto the KB's agent-skill directories. Those skills help an agent operate and maintain an existing KB when a session is opened where the skills are discoverable.- Therefore the skills command is useful, but it is not a bootstrap
mechanism: it requires an installed binary and a KB, does not install
dependencies, does not choose personal versus team mode, and does not
replace
init --bind, source approval, cron setup, ordoctorverification.