continuum

module
v0.1.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0

README

Continuum

One Go daemon per machine that owns your terminals and coding agents — durable history, explicit control, a CLI — so work outlives the client that started it. The runtime under Menagerie.

Public alpha 0.1.0-alpha.2, AGPL-3.0. macOS and Linux; one static binary.

Install

brew install naklitechie/tap/continuum

or the checked installer (downloads the release archive for your OS/arch, verifies SHA256SUMS, installs to ~/.local/bin; read it first if you like — it is 40 lines):

curl -fsSL https://raw.githubusercontent.com/NakliTechie/continuum/main/scripts/install.sh | sh

or from source with Go 1.26.8: go build -o bin/continuum ./cmd/continuum.

First run

continuum serve                 # leave this running; prints the Menagerie endpoint
continuum open -- /bin/sh       # in another terminal
continuum status
continuum events --block BLOCK_ID --follow --text

Always-on (launchd on macOS, systemd --user on Linux):

continuum service install --listen 127.0.0.1:7878
continuum service status

Already running menagerie-relay? continuum service cutover --adopt-relay ~/.menagerie/relay.toml replaces it in place — same port, token, origins and agents. The unit embeds the absolute path of the binary that installed it, so after brew upgrade continuum run service install again.

With Menagerie

Add the ws:// address serve prints as a relay in Menagerie, with operator.token from the state directory as the registration token. The same binary answers as menagerie-relay and as continuum legacy …, so an existing Menagerie setup keeps working.

What it does

  • Work survives the client. Close the tab, drop the network, kill -9 the daemon: the process keeps running under a per-block holder and is re-adopted on restart. Gaps are marked, never hidden.
  • Two doors, one core. Menagerie's protocol and a versioned /v1 contract (continuum contract) over one journal and one lease model.
  • Observe without stealing. Many viewers per block; control is a 60-second explicit lease.
  • Honest history. Per-block recording policy, explicit retention, replay from any cursor, asciicast export.
  • Experimental: SSH clients, composed streams, durable cross-host waits, managed workspaces, scoped grants — see the architecture doc.

Status

Alpha. Structured (ACP) sessions do not survive a daemon restart yet; the gate has run on macOS/arm64, the WAN drill on two Linux/amd64 hosts, nothing yet on a Linux systemd install or an arm64 remote host. Details and what each check covers: docs/architecture.md.

Docs

docs/architecture.md · CHANGELOG.md · SPEC.md · docs/v1-contract.md · docs/service.md · DEFERRED.md

Licensed AGPL-3.0 — see LICENSE and NOTICE for the Menagerie relay lineage.

Directories

Path Synopsis
Package api defines the versioned Continuum local-alpha contract.
Package api defines the versioned Continuum local-alpha contract.
cmd
continuum command
menagerie-relay command
Package fleet is the single ingress for a fleet spec (D6): every path into materialisation parses and validates here first, so no other package needs to re-check the shape of what it was handed.
Package fleet is the single ingress for a fleet spec (D6): every path into materialisation parses and validates here first, so no other package needs to re-check the shape of what it was handed.
checkcli
fleetcheck validates fleet specs from the command line.
fleetcheck validates fleet specs from the command line.
cmd/fleetcheck command
internal
acp
Package acp runs structured-session children that speak the pinned Agent Client Protocol (JSON-RPC 2.0, newline-delimited) over stdio.
Package acp runs structured-session children that speak the pinned Agent Client Protocol (JSON-RPC 2.0, newline-delimited) over stdio.
asciicast
Package asciicast writes an asciicast v3 stream from Continuum's journaled PTY output.
Package asciicast writes an asciicast v3 stream from Continuum's journaled PTY output.
cli
Package cli is the human and machine client of the same authorized host API.
Package cli is the human and machine client of the same authorized host API.
config
Package config loads and writes the relay's TOML configuration.
Package config loads and writes the relay's TOML configuration.
holder
Package holder keeps a PTY block alive across daemon restarts.
Package holder keeps a PTY block alive across daemon restarts.
ipc
Package ipc names and opens the daemon's local API socket.
Package ipc names and opens the daemon's local API socket.
journal
Package journal owns Continuum's single-writer durable metadata and event log.
Package journal owns Continuum's single-writer durable metadata and event log.
jsonwire
Package jsonwire encodes standalone JSON transport/storage documents.
Package jsonwire encodes standalone JSON transport/storage documents.
protocol
Package protocol defines the Menagerie relay protocol message types.
Package protocol defines the Menagerie relay protocol message types.
pty
Package pty manages a single agent attached to a pseudo-terminal.
Package pty manages a single agent attached to a pseudo-terminal.
server
Package server implements the relay's WebSocket server.
Package server implements the relay's WebSocket server.
shims
Package shims adapts specific coding agents to the relay's PTY model.
Package shims adapts specific coding agents to the relay's PTY model.
terminal
Package terminal owns an experimental, headless terminal screen.
Package terminal owns an experimental, headless terminal screen.
tmux
Package tmux backs relay sessions with tmux so an agent survives the relay process restarting: the agent runs inside a detached `menagerie-<id>` tmux session (owned by the persistent tmux server), and the relay merely attaches a PTY to it.
Package tmux backs relay sessions with tmux so an agent survives the relay process restarting: the agent runs inside a detached `menagerie-<id>` tmux session (owned by the persistent tmux server), and the relay merely attaches a PTY to it.
Command menagerie-relay runs a Menagerie relay: it exposes a WebSocket the browser (or a supervisor agent) connects to and, from P3 on, manages PTYs for spawned coding agents.
Command menagerie-relay runs a Menagerie relay: it exposes a WebSocket the browser (or a supervisor agent) connects to and, from P3 on, manages PTYs for spawned coding agents.
Package materialise executes a spec's materialise block against a provisioned workspace, in the one fixed order the handoff specifies:
Package materialise executes a spec's materialise block against a provisioned workspace, in the one fixed order the handoff specifies:
Package workspace provisions one agent's working copy: the git worktree, the ports it may bind, and the variable set every later materialisation stage interpolates against.
Package workspace provisions one agent's working copy: the git worktree, the ports it may bind, and the variable set every later materialisation stage interpolates against.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL