Directories
¶
| Path | Synopsis |
|---|---|
|
Package bridge terminates the app protocol (PROTOCOL.md) on the stdin and stdout of `stagent bridge`, which the app runs over an SSH exec channel.
|
Package bridge terminates the app protocol (PROTOCOL.md) on the stdin and stdout of `stagent bridge`, which the app runs over an SSH exec channel. |
|
Package daemon is `stagent daemon`: the per-user session registry, event log, hook integration (state, notifications, blocking approvals), push notifications, transcript access and scrollback retention.
|
Package daemon is `stagent daemon`: the per-user session registry, event log, hook integration (state, notifications, blocking approvals), push notifications, transcript access and scrollback retention. |
|
Package daemonclient connects to the stagent daemon, starting it on demand.
|
Package daemonclient connects to the stagent daemon, starting it on demand. |
|
Package detect derives a session state from its terminal output alone: desktop-notification escapes (OSC 9, OSC 777;notify, OSC 99) and BEL mean the program wants the user, output means it is working, and silence for IdleAfter means it is idle.
|
Package detect derives a session state from its terminal output alone: desktop-notification escapes (OSC 9, OSC 777;notify, OSC 99) and BEL mean the program wants the user, output means it is working, and silence for IdleAfter means it is idle. |
|
Package eventlog is the daemon's append-only event log: one JSON event per line in segment files (events.log, events.log.1, … newest first), a monotonically increasing seq that survives restarts, and an in-memory ring of the latest events that answers `since` queries without touching disk.
|
Package eventlog is the daemon's append-only event log: one JSON event per line in segment files (events.log, events.log.1, … newest first), a monotonically increasing seq that survives restarts, and an in-memory ring of the latest events that answers `since` queries without touching disk. |
|
Package follow is `stagent follow`: it finds the coding agent running in the terminal that shares its SSH connection — in the terminal's shell, or in the tmux / zellij / screen / herdr pane that terminal shows — and streams the agent's transcript to the app as JSON lines on stdout until stdin closes.
|
Package follow is `stagent follow`: it finds the coding agent running in the terminal that shares its SSH connection — in the terminal's shell, or in the tmux / zellij / screen / herdr pane that terminal shows — and streams the agent's transcript to the app as JSON lines on stdout until stdin closes. |
|
Package holder implements `stagent run`: it starts a program on a PTY and owns everything derived from its output — the VT screen, the on-disk scrollback and the output-based state — while serving attach/input requests from the bridge on its own local IPC endpoint and reporting state changes (never output) to the daemon.
|
Package holder implements `stagent run`: it starts a program on a PTY and owns everything derived from its output — the VT screen, the on-disk scrollback and the output-based state — while serving attach/input requests from the bridge on its own local IPC endpoint and reporting state changes (never output) to the daemon. |
|
Package hook is `stagent hook <harness> [event] [json]`, the command harness hooks run.
|
Package hook is `stagent hook <harness> [event] [json]`, the command harness hooks run. |
|
Package install implements stagent's ledger-based installer: `install` (layout + manifest), `integrate` (harness hooks, shell wrappers, login service; planned as unified diffs before anything is written), `doctor` (state report, orphans) and `uninstall` (stop / unhook / purge).
|
Package install implements stagent's ledger-based installer: `install` (layout + manifest), `integrate` (harness hooks, shell wrappers, login service; planned as unified diffs before anything is written), `doctor` (state report, orphans) and `uninstall` (stop / unhook / purge). |
|
Package ipc provides the local, same-user-only transport between stagent processes: Unix domain sockets on Linux/macOS and named pipes on Windows.
|
Package ipc provides the local, same-user-only transport between stagent processes: Unix domain sockets on Linux/macOS and named pipes on Windows. |
|
Package notify sends notifications to offline push channels: an ntfy topic and/or a generic webhook.
|
Package notify sends notifications to offline push channels: an ntfy topic and/or a generic webhook. |
|
Package paths resolves where stagent keeps its binary, state, sockets and scrollback on the current host.
|
Package paths resolves where stagent keeps its binary, state, sockets and scrollback on the current host. |
|
Package proc starts stagent processes that must outlive their caller: the daemon (auto-started by whoever needs it first) and detached holders.
|
Package proc starts stagent processes that must outlive their caller: the daemon (auto-started by whoever needs it first) and detached holders. |
|
Package ptable takes snapshots of the host's process table: pid, parent, name, process group and terminal foreground group (unix) and start time of every process.
|
Package ptable takes snapshots of the host's process table: pid, parent, name, process group and terminal foreground group (unix) and start time of every process. |
|
Package pty runs a program on a pseudo terminal: openpty (creack/pty) on Linux and macOS, ConPTY on Windows 10 1809 and later.
|
Package pty runs a program on a pseudo terminal: openpty (creack/pty) on Linux and macOS, ConPTY on Windows 10 1809 and later. |
|
Package rpc runs request/response/notification exchanges over a wire.Codec: a Client for the calling side and Serve for the serving side.
|
Package rpc runs request/response/notification exchanges over a wire.Codec: a Client for the calling side and Serve for the serving side. |
|
Package screen keeps the visible terminal screen of a session in a VT emulator (charmbracelet/x/vt) and renders it for attached clients: a full ANSI snapshot to resynchronize a client, and per-client diffs that redraw only the rows changed since that client's previous frame.
|
Package screen keeps the visible terminal screen of a session in a VT emulator (charmbracelet/x/vt) and renders it for attached clients: a full ANSI snapshot to resynchronize a client, and per-client diffs that redraw only the rows changed since that client's previous frame. |
|
Package scrollback keeps a session's raw PTY output on disk: append-only segment files of SegmentSize bytes under the session's data directory, oldest segments deleted once the per-session cap is reached.
|
Package scrollback keeps a session's raw PTY output on disk: append-only segment files of SegmentSize bytes under the session's data directory, oldest segments deleted once the per-session cap is reached. |
|
Package transcript reads the conversation files coding agents write — Claude Code, Codex and omp JSONL — and normalizes them to wire.Message.
|
Package transcript reads the conversation files coding agents write — Claude Code, Codex and omp JSONL — and normalizes them to wire.Message. |
|
Package version holds the stagent release and wire protocol versions.
|
Package version holds the stagent release and wire protocol versions. |
|
Package wire is the message envelope and codec shared by every stagent connection: app ↔ bridge (over the SSH exec channel) and the local IPC links (holder, daemon, hook, bridge).
|
Package wire is the message envelope and codec shared by every stagent connection: app ↔ bridge (over the SSH exec channel) and the local IPC links (holder, daemon, hook, bridge). |
Click to show internal directories.
Click to hide internal directories.