System boundary

The daemon owns state; UIs are clients. Sessions, goal runs, tasks, threads, approvals, memory, transcripts, and telemetry do not belong to any browser window or terminal tab.

Operator
  +-- Electron / React UI
  +-- TUI
  +-- CLI
  +-- MCP clients
  +-- Chat gateways


           tamux daemon

       state + execution + memory

Runtime components

Daemon

Owns PTY sessions, workspace state, agent threads, task queue, goal runs, approvals, persistence, telemetry, memory.

Clients

Electron, TUI, CLI, MCP, gateways — alternate operator surfaces over the same daemon-owned runtime.

Session manager

PTY lifecycle, terminal I/O, history, transcript indexing, mission events, snapshot metadata.

Agent runtime

Threaded conversations, tool execution, background tasks, goal planning, memory maintenance, health supervision, learning loops.

Thread, task, and goal relationships

tamux separates conversational turns from durable execution:

  • Threads: persisted conversations and tool messages
  • Tasks: daemon-owned units with status, priority, dependencies, retries, session affinity
  • Goal runs: durable autonomy layer that plans, dispatches, monitors, replans, reflects
Rule: goal runs sit above the queue. They use it, not replace it.

Execution hot path

  1. User or external client sends message into daemon thread
  2. Daemon persists message immediately
  3. Runtime builds prompt from system, SOUL/MEMORY/USER, skills, operator model, context, recall
  4. Agent executes bounded loop of model and tool calls
  5. Tool results persisted back into thread
  6. Assistant result stored and broadcast to clients
  7. Background learning, provenance, health updated around the turn

Self-orchestrating layers

Layer 3: Learning
  traces · patterns · heuristics · effectiveness
Layer 2: Meta-cognition
  self-assessment · replanning · escalation · resources
Layer 1: Liveness & monitoring
  checkpoints · health · stuck detection · recovery
Layer 0: Execution
  agent loop · dispatcher · tools · goal planner

Layer 0 — Execution

LLM streaming, tool calls, child-task dispatch, goal-step progression, direct runtime work.

Layer 1 — Liveness

Checkpointing, health monitoring, stuck detection, recovery. Makes long-running work durable.

Layer 2 — Meta-cognition

Self-assessment, dynamic replanning, escalation, resource management.

Layer 3 — Learning

Execution traces, pattern mining, heuristics, tool-effectiveness tracking.

Agent subsystems

SubsystemPurposeWhy it matters
Goal plannerPlans, replans, reflections, goal-step lifecycleTurns objectives into durable structured work
Tool executorRoutes tool calls to subsystemsMakes tool use a persisted runtime path
CheckpointingSaves pre/post-step state and contextEnables recovery and honest long-lived state
Health monitorAssesses degradation, stuck behavior, crashesPrevents silent failure in autonomous work
EscalationMoves from self-correction to operator to external noticeLets autonomy fail safely
Learning tracesCaptures tool and execution patternsSupports future optimization

Daemon ownership advantage

  • Long-running work survives UI disconnects
  • Multiple clients attach to same execution state
  • Memory and tasks stay coherent across surfaces
  • Approvals, audit trails, run history stay central
  • Plugins and gateways extend the same runtime

Without this ownership, tamux would collapse into a fancy prompt shell. The daemon makes it an operating environment.

Next steps

For implementation, read Goal Runners, Memory & Security, and Plugins. These explain how the execution substrate surfaces to operators and extension authors.