Skip to main content

Module shell

Module shell 

Source
Expand description

Interactive PTY-based shell sessions for agents.

Provides three tools: shell_start, shell_send, shell_end that let agents drive persistent interactive terminal sessions (SSH, REPLs, debuggers, etc).

Re-exports§

pub use config::ShellConfig;
pub use session::SessionManager;
pub use session::SessionOpts;
pub use session::SendResult;
pub use session::start_reaper;

Modules§

config
Shell session configuration — parsed from ~/.synaps-cli/config shell.* keys.
pty
PTY abstraction — spawn processes on a pseudo-terminal, async read/write.
readiness
Output readiness detection — determines when a shell is waiting for input.
session
Session manager — owns and manages active shell sessions.

Structs§

ShellEndTool
ShellSendTool
ShellStartTool