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 injection —
send-keys/send-linestyle injection per the adapter’s declared[inject]methods, respecting activity state (never disrupt a working agent). - The live digest —
spt endpoint digest <id>shows an at-a-glance view of what a session is doing now (--followstreams changes), projected from the endpoint’s normalized session logs (the digest-record contract over[history]), never the PTY byte stream. Topology-independent — it works for a harness-hosted endpoint with no broker PTY. - 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 endpoint digest · the attach surface · spt api injection-adjacent calls.
Deeper tutorial coming with the docs’ next tier.