Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Terminal hosting

spt-core can own agent sessions in its own terminal layer: the daemon’s broker holds a real PTY per hosted session, which is what makes sessions supervisable, attachable from other machines, and immune to self-update.

What the broker holding the PTY buys

  • spt-hosted startup — spt-core spawns sessions itself from the manifest’s [session.self] template and binds them (api bind), instead of waiting inside someone else’s process tree.
  • Remote attach — a byte-stream viewport onto a live session from any paired node (compute and files stay on the hosting node). Restart-safe: reconnects resume the stream without gaps or duplicates.
  • Input injectionsend-keys/send-line style injection per the adapter’s declared [inject] methods, respecting activity state (never disrupt a working agent).
  • The live digest — with adapter-supplied [pty_digest] patterns, spt digest <id> shows an at-a-glance parsed view of what a session is doing now (--follow streams changes). Raw bytes and parsed digest are two channels over the same session surface.
  • Update immunity — PTYs live in the broker, logic in the brain; a self-update swaps the brain while every hosted process and byte stream stays intact.

Activity and idleness are always reported (api state busy|idle), never inferred from terminal quiescence — quiet terminals lie.

Commands

spt digest · the attach surface · spt api injection-adjacent calls.

Deeper tutorial coming with the docs’ next tier.