Architecture Decision Records
An Architecture Decision Record (ADR) is a short note of one choice: what was decided, what else was considered, and what the code does with that choice today.
| ADR | Title | Status | Date |
|---|---|---|---|
| 001 | One long-running process, clients that only attach | accepted | 2026-10-05 |
| 002 | The graph library only runs graphs | accepted | 2026-10-05 |
| 003 | One Python model, generated TypeScript | accepted | 2026-10-05 |
| 004 | A flock on the pid file owns the socket | accepted | 2026-10-06 |
| 005 | One TypeScript client, and that client owns the golem command | accepted | 2026-10-06 |
| 006 | The checkpoint is the chat's memory | accepted | 2026-10-07 |
| 007 | A connection sees only the sessions it attached | accepted | 2026-10-14 |
| 008 | A cancelled run keeps what it said | accepted | 2026-10-14 |
| 009 | The session list has its own notification | accepted | 2026-10-15 |
| 010 | A fork is cut from the checkpoint history | accepted | 2026-10-15 |
| 011 | Tools run in golem's own node, inside the session folder | accepted | 2026-10-19 |
| 012 | Tool rules: first match wins, and a project cannot allow itself | accepted | 2026-10-19 |
| 013 | An approval is an interrupt, and the waiting run has no task | accepted | 2026-10-19 |
| 014 | The shell runs under sandbox-exec, or not at all | accepted | 2026-10-19 |
| 015 | A file change is planned, shown as a diff, and applied only as shown | accepted | 2026-10-20 |
| 016 | Big tool output is an artifact in golem.db, and the model reads it in pages | accepted | 2026-10-20 |
| 017 | web_fetch asks per host, refuses private addresses, and returns data | accepted | 2026-10-20 |
| 018 | A tool returns a state update, and the node applies only the keys it allows | accepted | 2026-10-20 |
| 019 | The golem command is one bun binary | accepted | 2026-10-20 |
| 020 | An upgrade copies a database first, and a newer one is refused with a way back | accepted | 2026-10-21 |
| 021 | Releases are signed with one self-signed certificate, and published only after a clean runner checks them | accepted | 2026-10-21 |
| 022 | Homebrew installs the signed release unchanged, from a tap the release workflow keeps up to date | accepted | 2026-10-22 |
| 023 | MCP servers run under golem's own small client, and their tools ask first | accepted | 2026-10-23 |
| 024 | Conventional commits reach main as squashed pull requests, and git-cliff turns them into the release notes | accepted | 2026-10-23 |
| 025 | Skills come from the project, then the user, then golem, and a broken one never wins a name | accepted | 2026-10-25 |
| 026 | golem starts a local Ollama when it needs one, and stops only the one it started | accepted | 2026-10-27 |
| 027 | The tab shows golem's state with escape sequences, and iTerm2 gets its own | accepted | 2026-10-28 |
| 028 | A browser reaches the daemon only through a strict gateway in the golem binary | accepted, amended 2026-11-12 | 2026-10-31 |
| 029 | The web UI is React and Vite, styled only through golem's own Tailwind tokens | accepted | 2026-10-31 |
| 030 | The folder of a skill the session ran is a read root, never a write root | accepted | 2026-10-31 |
| 031 | The system prompt is built for each model call, and never stored | accepted | 2026-11-01 |
| 032 | Pinned skills live in the session record, not in graph state | accepted | 2026-11-01 |
| 033 | golem offers to start the service when nothing answers, and launchd still owns it | accepted | 2026-11-01 |
| 034 | The docs are a VitePress site over docs/, published to GitHub Pages | accepted | 2026-11-01 |
| 035 | The daemon installs Ollama, Node, and uv, and checks a key before it stores it | accepted | 2026-11-03 |
| 036 | The setup window asks for the service, inside the chat screen | accepted | 2026-11-03 |
| 037 | The browser manages MCP servers and config.toml, but cannot move a secret or widen trust | accepted | 2026-11-05 |
| 038 | A command you approve may run outside the sandbox, as a tool of its own | accepted | 2026-11-06 |
| 039 | The browser sets up golem on pages, not in a dialog | accepted | 2026-11-06 |
| 040 | The browser may list folders under your home | accepted | 2026-11-06 |
| 041 | golem records a trace of each session and shows it in the browser | accepted | 2026-11-07 |
| 042 | The plan lives in GitHub issues and Project 1, not in a file | accepted | 2026-11-09 |
| 043 | golem finds the context window of a local model from what Ollama says, and never sends a num_ctx nobody asked for | accepted | 2026-11-09 |
| 044 | golem recovers tool calls a model writes as text | accepted | 2026-11-10 |
| 045 | golem keeps a model's thinking, shows it as one line, and never sends it back | accepted | 2026-11-10 |
| 046 | web_search asks DuckDuckGo's HTML page first, behind a provider setting | accepted | 2026-11-10 |
| 047 | Permission modes change only the built-in defaults: careful, balanced, and autopilot | accepted | 2026-11-11 |
| 048 | An MCP server's read-only tools can run without asking, if you trust that server | accepted | 2026-11-11 |
| 049 | A hosted MCP server signs in with OAuth, through a loopback listener in the daemon | accepted | 2026-11-08 |
| 050 | A routine fires a headless session; runs stay agent turns, routine_runs are firings | accepted, amended 2026-11-13 | 2026-11-13 |
| 051 | A phone reaches the Mac through a relay that sees only ciphertext | accepted | 2026-11-13 |
| 052 | The iPhone app is SwiftUI on iOS 17 over a shared GolemKit package, and may save "Always allow" with Face ID | accepted | 2026-11-13 |
| 053 | golem opens the web UI, and golem tui opens the terminal chat | accepted | 2026-11-14 |
| 054 | The browser edits user skills, and project skills only in a trusted project; writing a skill never trusts it | accepted | 2026-11-14 |
| 055 | golem picks a model by fixed rules: three tiers, a route mode per session, and caps on spending | accepted | 2026-11-14 |
| 056 | golem plans the window of a local model, and sends a view of the history, never a shorter history | accepted | 2026-11-14 |
| 057 | golem keeps a snapshot of every file it changes, and undo is a new change | accepted | 2026-11-15 |
| 058 | A helper is a child run on its own thread, with its steps in the parent's log | superseded by 059 | 2026-11-15 |
| 059 | A helper is a headless session with a parent, started for a reason, never by habit | accepted | 2026-11-19 |
| 060 | One dispatcher decides how many model calls run at once, and every wait has a named reason | proposed | 2026-11-19 |
| 061 | golem keeps long-term memory in memory.db, recalls it inside a small budget, and never sends it somewhere less private than the chat | proposed | 2026-11-19 |
| 062 | Workflows on golem.workflow: your code decides the order, golem keeps every step | proposed | 2026-11-24 |
| 063 | SQL over your files runs in DuckDB in a worker process, read-only by construction, with its extensions installed once | proposed | 2026-11-26 |
| 064 | Serve mode: one app per deployment, runs before chat, and an HTTP API that is a profile of existing standards | proposed | 2026-11-29 |
How the running code fits together is in ../architecture.md.
New records use template.md. Number the next file 065-….md and add a row here.