A socket that outlives the app
How Otto’s terminals and its window talk, and how old that choice was when we wrote it down.
Otto’s terminals don’t belong to the app window. They belong to the daemon, a separate background process, so the two need a way to talk.
The decision records the plainest choice we could make. Every message is one line of JSON (newline-delimited JSON, or NDJSON), sent over a Unix domain socket, a file called daemon.sock in Otto’s folder in your home directory.
We wrote down four reasons. It is simple. You can debug it by hand with nc. A new kind of message is just a new type value, so older parsers keep working. And the daemon survives an app restart, so when the window goes away, the sessions are still there when it comes back.
The protocol is much older than the note. The daemon arrived on 2026-03-21, the second day in git, in a commit called “wip: add PTY daemon and protocol for persistent instances” (19a5e1a2), followed the same day by “persistent PTY daemon with reconnection support” (12bc359d). Its client already wrote each request as one JSON line, to a socket in a folder named after the app’s first name, Claude Colony. The decision came 45 days later, on 2026-05-05, in one commit with ten other decisions and no message.
We didn’t record what else we considered, or what this choice cost us. The entry has no consequences at all.
Later, on 2026-06-11, our check against the code found the decision in force and wrote the socket’s place more exactly. It sits in Otto’s home folder, which is .otto for the installed app and .otto-dev for a development copy. The note says the path “is now” that. Git shows the daemon already chose its folder this way on the day the decision was written, so the entry had given only the default.
Decision D002 · 2026-05-05 · ba6e1975, 9399ca23 (moved to its own file in 94a000a6, wording unchanged)