Skip to content

Core concepts

Host and threads

The local host owns durable state. Threads, agent runs, and the event journal survive window closes, restarts, and recovery.

  • 3 min read
  • 7 sections

Host and threads ​

Octant separates the thing that owns state from the thing that shows it. The host is a local server; the desktop window is a renderer. That split is why work survives a closed window, why a phone can see the same threads, and why recovery is a server operation rather than a UI trick.

The host ​

The host owns:

  • Projects and their bound folders.
  • Threads, turns, and their transcripts.
  • Project and person memory.
  • Approvals, questions, and decisions.
  • Provider instances and credentials.
  • The event journal and every projection built from it.

The window sends commands and renders state. It does not hold the only copy of anything. Closing it does not cancel a running turn; reopening it re-reads the host's state.

The journal ​

State is recorded in an append-only SQLite journal. Projections — the sidebar, boards, transcripts, counts — are rebuilt by replay. This is what makes recovery honest: Octant can replay, rebuild, verify, and back up through a defined boundary instead of guessing at a partial write.

The practical consequences:

  • A crash does not silently drop the record of a turn.
  • A projection that looks wrong can be rebuilt from the journal.
  • Backup and restore are explicit operations with verification, not file copies.
  • Recovery can explain what happened rather than only that something did.

Threads ​

A thread is the durable unit of work. It holds:

  • its kind and Project,
  • its provider and model,
  • its access posture,
  • its transcript and tool activity,
  • its open tools in the dock,
  • its approvals and their outcomes,
  • its checkpoints and artifacts.

Two threads in one Project share memory and the root, but not their conversation or their posture. A Code thread on its own managed worktree also has its own branch and folder.

Threads are not tabs. Closing a dock tool, putting a thread away, or switching Projects does not delete the thread; it changes what the window is showing.

Turns and agent runs ​

A turn is one request to a provider and everything it does in response. An agent run is one execution of a provider session, including:

  • Subagents, which inherit the parent's authority or a narrower subset and report into the same thread.
  • Routines, which run on a schedule or trigger and appear as their own threads.
  • Side tasks, which start a new thread from an offer inside a conversation.

Every run records what it was allowed to do and what it actually did. A subagent cannot exceed its parent, and a routine cannot quietly acquire authority its definition does not have.

What survives what ​

EventEffect
Window closedNothing stops; the host keeps running
App quit (Quit)Running turns are held; the next start says Octant was quit while threads were working
Crash, force quit, or Mac restartRunning turns continue on the next start unless Continue after restart is off; see After a restart
RestartThreads, memory, approvals, and history reload from the host
Provider changeThe thread keeps its history and environment; the next turn uses the new provider
Project relinkThe root is re-pointed; durable history is not rewritten
Host recoveryProjections are replayed and verified from the journal

Remote windows ​

An optional authenticated remote connection lets another window — a browser or a paired phone — talk to the same host. It sees the same threads and the same state, subject to the host's policy: a remote device can lower a thread's posture but cannot raise one to Full access, and some actions are only available at the computer itself.

Remote access is opt-in, paired, and revocable. Remote access covers the setup and the security boundary.

Next ​

Octant documentation · local-first by design