Skip to content

Overview

Sessions that outlive the process that started them: each runs in its own host process, and any process can reattach to it by session id.

import {
HostSpec,
HostProtocol,
DetachedAgent,
SessionHost,
} from "@jpowersdev/effect-agent/host"
  • HostSpec: What a host process is started with, and where hosts live on disk.
  • HostProtocol: The RPC group a host serves over its unix socket (effect/rpc, NDJSON).
  • DetachedAgent: Sessions that outlive the process that started them.
  • SessionHost: The program a session host process runs.