otto as the core of a software factory

What otto should become

A recommendation on form factor, language, hosting and integration, grounded in what the executors expose in 2026 and in what the navigation build needed. Short version: keep the contract, replace the engine with a single-binary service and CLI on your own box, keep every executor a subscription-backed CLI behind a config-driven adapter routed per story by model and effort, and skip the desktop app.

26 September 2026, revised the same day after one constraint from Stevan: no dependency on a vendor SDK, subscriptions stay the fuel. For Stevan. Companion to the retrospective, the P1 and P2 brief and the concept.
Port away from shell?Yes, the engineThe contract (PRD JSON, story anatomy, evidence files, worktrees) stays. The 2,200-line loop is replaced behind the same CLI.
LanguageGoA static binary with no runtime, the strongest language for a daemon that supervises processes. TypeScript on Bun is the equally valid alternative if one language for UI and bot matters more.
ExecutorsSubscription CLIsclaude and codex as today, driven through their JSON event streams, model and effort chosen per story, accounts pooled per vendor. No vendor SDK in the engine.
Form factorService + CLI + webA daemon on the box that holds the repos and credentials, a thin CLI, a web command centre, a Slack bot for the two gates.
Desktop app?NoOperators are remote and the driver is on a phone. A web page over Tailscale is the desktop app. Tauri is a later shell if ever wanted, and the only place Rust would appear.
Hosted centrally?Yes, on your own boxSingle-tenant, where git, Docker and the executor logins live. Not a SaaS. A second box runs a second daemon.

Executors stay subscription CLIs

The constraint that shaped this: no lock-in to a vendor SDK, and the existing subscriptions remain the fuel, with each story sent to the right model at the right effort. The good news is that the CLIs already give the engine everything it needs for that, and the usage endpoint your account tooling reads exposes the meters that matter.

What this removes and what it keeps. It removes the argument for TypeScript that rested on the in-process Claude SDK, and with it the idea of enforcing the fence through SDK hooks. The fence stays where it already is: worktree isolation, local containers, no production credentials in the run, and the vendor CLI's own sandbox flags. It keeps every routing choice in your hands and every token on a subscription. If a vendor SDK ever became worth it, it would be one more adapter spec, never a dependency of the engine.

Options compared

CriterionBash, hardenedGoTypeScript on BunRustPython
Driving CLIs through JSON event streams (claude, codex, others)scrapenativenativenativenative
Static binary, no runtime to install, cross-compiles for a Mac CLIyesyesyes, bundles the runtimeyesweak
Process control: groups, signals, stall watchdogs, parallel lanesfragileexcellentgoodexcellentgood
Durable runs (SQLite event log, resume, timers)filesyesyes, DBOS availableyesyes, DBOS available
Web command centre, Slack socket mode, MCP server in the same codenoyes, official MCP SDKyes, most naturalyes, sloweryes
How well the agents write, test and review itpoorly at 2k+ linesvery well, simple to reviewvery wellwell, slowervery well
Time to parity with the current loopn/aweeksweekslongerweeks

With the SDK question gone, the choice is between Go and TypeScript and it is close. Go wins on the axis that a factory is judged by: a long-running daemon that spawns and supervises processes, restarts cleanly, ships as one static file and reads plainly in review. That is what gh, docker and k9s are made of. TypeScript on Bun wins if one language for the web UI, the Slack bot and the engine matters more, and it would not be a mistake. Python is what OpenHands chose and would work, but packaging a service and a second stack for web and Slack count against it. Rust would be chosen for performance or memory safety, and the engine needs neither; it orchestrates processes and waits.

The shape

People Phil: Slack or phone cards (two gates, exceptions) Stevan: web command centre, CLI, Claude Code skills │ │ Surfaces Slack bot (socket mode, no inbound) web UI served by the daemon otto CLI (JSON out) MCP server └───────────────────────────────┬─────────────────────────┘ Engine ottod one process per box, systemd user service run state machine · append-only event log (SQLite) · scheduler and lanes · budget and routing account pool and meters · environment claims · gates and approvals · notify · profiles per repo │ Adapters config specs, one per executor: claude -p (stream-json, --model, --effort) · codex exec (--json, -m, effort) · kimi, gemini, next │ Ground git worktrees · local containers and probe servers · staging by sha · release adapter per profile Artefacts PRD JSON (contract, unchanged plus new fields) · progress and evidence · boards and packs on Pages · HLDD export

What does not change

The contract is the asset the nav build proved, and it is untouched: the PRD JSON with its story anatomy and the new fields already proposed, the evidence-quoting acceptance criteria, the progress log, the spec index, worktree isolation, the two gates, and the CLI surface. The existing smoke suite is black-box, fake executor binaries and a PRD file, so the new engine has to pass the same 44 tests before it replaces the old one, and the nav PRD can be replayed through both.

Durable execution: how far to go

The factory's runs are long, wait on people, need timers and must survive interruption. That is the domain of durable-workflow engines, and the 2026 market has moved to "durable by default": Temporal, Restate, DBOS, and hosted options from the cloud vendors. Two of them are not for us. Temporal is an external server and a rearchitecture; Cloudflare Workflows and similar run in the cloud, and our steps run on a box with repos and Docker. DBOS is the interesting one: a library, not a server, with SQLite or Postgres behind it, in TypeScript and Python.

The recommendation is an own event-sourced state machine on SQLite for the first version, because the scale is one box and a handful of concurrent runs, and adopting DBOS later if the timers and retries grow beyond what a few hundred lines handle cleanly. The design rule that keeps that door open: every step is idempotent and every wait is a recorded event with a deadline.

Why not a desktop app, and what Rust would be for

A desktop app answers a question nobody here asks. The operator works over SSH from wherever they are, the driver is on a phone, and the state lives on the box. A web page served by the daemon gives both of them the same screen and needs no installation. If a native window were ever wanted, Tauri 2 wraps the same web UI in a few megabytes with a Rust shell, and that is the one place Rust would appear. Electron would be the wrong trade for a JavaScript-only wrapper this small.

The path from here

  1. P1 in bash, now. Loud auth failure, safe block reasons, honest counts, exit codes, backups, notify, the spend gate. Hours each, and they protect the next feature and the navigation HLDD story while the engine is built.
  2. ottod reaches parity. The Go engine passes the 44 black-box tests and replays the navigation PRD with fake executors. It implements P2 natively rather than in bash: the event log, resume, otto resolve, approvals, the account pool on the session and weekly meters, profiles, environment claims.
  3. Swap. The otto symlink moves to the new binary; the tag from today is the way back.
  4. Adapters. Specs for claude and codex driven through stream-json and --json, with model and effort per story from the routing table. Usage per story becomes a number in the event log.
  5. Front door and release as planned: the skill and the cards, then profiles and release adapters per repository.

One change to the brief. P2 should be built in the new engine, not in bash. The brief's P1 list stands as the bash work; its P2 list becomes the first milestone of ottod. The dogfooding plan holds either way: otto builds it, in a worktree, with the smoke suite as the loop.

Estimate and honesty

Parity plus P2 in Go is on the order of six to ten thousand lines with tests, which otto can build in a worktree over a few days of runs, with review between milestones; call it two to three weeks of calendar time. The risk is not the code, it is scope creep into a platform. The guard against that is the factory metric list: first-pass yield, blocks and time to resolve, escaped defects, cost, resumability. Anything that does not move one of those waits.