Two ways to run Claude: one you watch, one you don’t
Our first written decision split Otto’s work between a live terminal and a plain API call.
Otto began as a home for Claude Code sessions running in terminals. Git’s first commit, on 2026-03-20, calls it “Claude Colony”, an Electron app for managing Claude CLI instances. Some of the work around those sessions needs no one watching, though: a chat about the workspace, or a question asked from a GitHub page.
So the decision splits the work in two. Sessions you watch and step into run in a PTY (a pseudo-terminal, the kind a real terminal window uses), owned by Otto’s daemon, a background process that holds the terminals. Automated work calls the Anthropic SDK directly from the app’s main process.
We wrote down what the SDK gives that a terminal does not. It sends a clean signal when a step ends, returns structured output with no ANSI escape codes to parse, reports the cost of each call, and can be cancelled with a standard AbortController. The terminal stays for the work a person wants to watch and step into.
The price was visibility. An SDK step never shows up as terminal output; it appears in the interface as a finished result.
We wrote this down after living with it. The SDK first appears in git on 2026-04-16, with the workspace chat (6c640b2c). The decision arrived on 2026-05-05 together with ten others, in a commit called “wip: plan mode + scf-5b infrastructure” with no message. We didn’t record what else we considered.
Git also shows a slip. Two hours before that commit, earlier the same day, another one (d99123f9) deleted Otto’s GitHub panel and its ask-bar. So the decision used as an example a feature that was already gone. We didn’t write down why the panel went.
Later, on 2026-06-11, we checked every decision against the code. This one still held. The check pointed to src/main/anthropic-client.ts, a shared way to reach the SDK added on 2026-05-26, and the split had become part of our notes for agents as the “Hybrid execution model”. The check noted that the ask-bar “was since removed”; git puts that removal on the day the decision was written.
Decision D001 · 2026-05-05 · ba6e1975, 9399ca23 (moved to its own file in 94a000a6, wording unchanged)