Skip to content

Deterministic repository factory

Bob has one job.

Turn a small bob.yaml into a reviewable repository (early alpha) — a packaged CLI scaffold (Go, Rust, Python, TypeScript, Java, or C#), seed-once hygiene on 27 existing language and infrastructure stacks, or a file tree you declare. Bob plans before it writes, proves it owns every file it touches, and refuses to guess. No model. No magic. A ledger.

Model-freeLocal-firstMITDeterministic — same plan, every runSafety pinned by terminal behavior specsEarly alpha — read the plan. Bob insists.

  1. bob planPlan

    Read-only. Compares recipe, lock, and working tree.

  2. bob applyApply

    Explicit. Writes only files with proven ownership.

  3. bob checkCheck

    CI gate. Non-zero exit the moment anything drifts.

  4. bob removeTeardown

    Deletes only proven lock-owned files. bob.yaml survives.

  5. bob upgradeUpgrade

    Migrates bob.lock to the current recipe version.

  6. no-opConverge

    Run apply twice. The second run does nothing. That is the feature.

blue — read-only authorityorange — explicit mutationstart: bob new / bob init · evolve: bob upgrade · teardown: bob remove · every command speaks --json

What you actually get

Thirty-four recipes in three shapes. Pick one; Bob renders it under the same plan, lock, and refusal rules.

FACTORY · 6

Public CLI scaffolds

go-agent-tool, rust-tool, python-tool, ts-tool, java-tool, csharp-tool. A thin entry point over a tested pure function, human and JSON output, tests, CI, and release plumbing in one command. The living files (README, AGENTS.md, CHANGELOG, the language manifest) seed once and stay yours — Go also seeds CLAUDE.md and go.sum.

HYGIENE · 27

Seed-once stack hygiene

Go, TypeScript, JavaScript, Vue, Nuxt, Deno, Python, Ruby, PHP, Java, Kotlin, .NET, Rust, Swift, Elixir, Dart, Zig, Scala, Lua, C/C++, plus Docker, Terraform, Nix, Ansible, Helm, Kubernetes, and static web. Seeds README, AGENTS, SECURITY, ignores, and a CI stub only when missing — never updated by Bob, and never owning src/. (Delete a seed and the next apply recreates it.)

FILES · 1

A tree you declare

recipe: files. Write the paths in bob.yaml; Bob materializes them under the same plan, apply, and lock rules — existence, mode, and byte-for-byte convergence, not a template engine in disguise.

The spec sheet

PLAN

Plan before mutation

Every create, update, adoption, and conflict lands on paper before a single byte lands on disk. Review the plan like a diff, because it is one.

LOCK

Ownership you can audit

bob.lock records a content hash for every file Bob manages. A managed file updates only when its current hash matches the lock. No hash, no touch.

HALT

Conflicts stop the line

One conflict means zero writes: Bob preflights the complete plan and refuses before it writes anything. (Multi-file apply is not one global transaction — a crash can leave a partial publish, and the next plan reports it honestly.)

DRIFT

Drift detection for CI

bob check exits non-zero the moment generated infrastructure wanders from the contract — and emits --sarif for code scanning or --junit for CI test reporting. Your pipeline finds out before your users do.

DIGEST

Reviewed, then refused unless it matches

bob apply, bob upgrade, and bob remove accept an optional expect digest (the MCP bob_apply tool requires one). Bob fresh-plans while holding the lock and, when a digest is given, writes nothing unless the fresh result equals the plan you reviewed. A removal digest never authorizes an apply, and a plan digest never authorizes a removal. One mutation per workspace at a time — a second concurrent one fails fast as workspace_busy.

AGENT

Agent-native surfaces

Versioned JSON envelopes on every command, a one-shot bob learn briefing, and an MCP server whose read tools never write and whose one apply tool is opt-in and digest-gated. Machines are first-class readers here.

SCOPE

Honest boundaries

No LLM inside. No secret management. No verification theater. Bob builds the repository; proving your feature works is your job.

The mechanism, not the motto.

  1. bob.yamlIntent

    Your recipe and product identity, in one small, strict file.

  2. bob.lockOwnership

    A SHA-256 digest of every whole file Bob manages.

  3. hash matchProof to update

    A managed file changes only while its current hash still matches the lock.

  4. atomicAtomic per file

    Each file is staged as a temp sibling and published by atomic rename; bob.lock is written last.

Hand-edit a managed file and it becomes a conflict, not a silent overwrite.One conflict blocks the entire apply; a symlink or special file at an owned destination is a conflict (a seed-once destination treats any existing path as satisfied).

Two ownership classes: seed-once files (created if missing, never in the lock, never a conflict) and managed files (hash-owned, so Bob can prove what is safe to change). Mark a recipe-owned path ownership.release and Bob seeds it once and leaves it to you — your hand-edit is never a permanent apply block. When a recipe stops declaring a file, Bob calls it retired: delete it deliberately with --allow-retire, or leave it as a conflict. It never silently discards ownership. More on ownership & safety

Your pipeline finds out first.

bob check is the gate: it exits non-zero the moment generated infrastructure drifts from the contract. The same plan also renders as a SARIF 2.1.0 log for code scanning or a JUnit XML report for your test reporter — no adapter, no wrapper.

exit 0   bob check: clean (bob plan is a report, not a gate; invalid input is 4)
exit 2   an ownership conflict · apply would refuse
exit 3   drift, no conflict · apply would proceed
exit 4   invalid input or manifest
exit 5   fresh plan ≠ reviewed digest · nothing written

Two flags, done.

$ bob check --sarif    # SARIF 2.1.0 → GitHub code scanning
$ bob check --junit    # JUnit XML → your CI test reporter
$ bob check --conflicts-only --json  # just the blockers

A code-scanning upload fails the build exactly as a plain bob check would: same exit code, same answer. Local-only and model-free — the sole exception is the opt-in bob inspect --probe-integrations, which runs Codemap/Vecgrep status commands you explicitly asked for.

Your agent can read the manual.
It is one command long.

bob learn --json emits a versioned, machine-clean brief: the lifecycle, every command, the JSON envelope, and the safety invariants an agent can rely on. Run it once at session start and your agent knows exactly what Bob will and will not do. Every plan action carries a stable conflict code, too — branch on that, not the prose next to it.

$ bob learn --json
{
  "schema_version": 1,
  "ok": true,
  "command": "learn",
  "data": { "product": "deterministic repository factory, contract compiler, guidance provider, and lifecycle reconciler", … }
}

Ten MCP tools.
One can write, only if you say so.

bob mcp serve exposes nine read-only tools over stdio, plus bob_apply: off unless you pass --allow-apply-workspace, and gated on the exact reviewed plan digest. Diagnostics go to stderr; stdout stays JSON-RPC-clean.

The read side is the point. bob context --json describes the one repository you are standing in — recipe, capabilities, ownership, and the current plan digest — with a --profile from compact to full. Before editing, bob path internal/cli/root.go answers will_conflict or outside_bob_ownership, and --batch checks seven paths at once. Closed bob playbook procedures (add-cli-command, resolve-ownership-conflict, …) come with typed inputs, never prose to parse.

$ claude mcp add bob -- bob mcp serve .
# the one write, only when you say so:
$ bob mcp serve . --allow-apply-workspace "$(pwd)"
  • bob_context
  • bob_path
  • bob_playbook
  • bob_inspect
  • bob_plan
  • bob_check
  • bob_validate_manifest
  • bob_recipe_describe
  • bob_stats
  • bob_apply (opt-in)

All nine stamped READ-ONLY. bob_apply is opt-in and digest-gated.

Things Bob will not do

  • Run a model or call a network (the one opt-in exception is bob inspect --probe-integrations).
  • Overwrite a file it cannot prove it owns.
  • Generate your Next.js, FastAPI, or Cargo app. Hygiene, not the product.
  • Let a recipe own .git, bob.yaml, bob.lock, or anything outside the workspace.
  • Apply a conflicted plan. One conflict, zero writes.
  • Manage your secrets.
  • Declare your feature “verified.” Bob builds; evidence tools judge.

This list is load-bearing.

Why not just a generator

RECONCILE

Generators spray. Bob reconciles.

A generator writes a tree once and forgets. Bob records bob.lock and reports drift on every later run, for the life of the repo.

REFUSE

Generators guess. Bob refuses.

Where cookiecutter or copier overwrite whatever is in the way, Bob stops at the first file it cannot prove it owns.

CONVERGE

Generators exit. Bob converges.

Run bob apply twice; the second is a no-op. That is the contract, not a side effect.

Put on the hard hat.

One manifest, one plan, one explicit apply. Review the diff like a professional. Already have a TypeScript or Python repo? Seed hygiene — do not ask Bob to invent the app.

$ brew tap abdul-hamid-achik/tap
$ brew install --cask bob
# or
$ go install github.com/abdul-hamid-achik/bob/cmd/bob@latest
# then, in one motion:
$ bob new acme-tool --recipe go-agent-tool --module github.com/acme/acme-tool --write
$ bob check
# existing repo instead:
$ bob init . --write
$ bob plan && bob apply && bob check

Deterministic plans · Explicit authority · Honest integration boundaries

Proven, not asserted — CI runs the full Go test suite with -race, and the safety behavior is pinned by Glyphrun terminal-behavior specs (task specs).

Deterministic plans. Explicit authority. Honest integration boundaries.