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 pty::pty_output_snapshot;
pub use pty::PtyOutputSnapshot;
pub use session::start_reaper;
pub use session::SendResult;
pub use session::SessionManager;
pub use session::SessionOpts;

Modules§

config
Shell session configuration: the fixed limits interactive shell sessions run with. Not configurable (the shell.* config keys were removed in 0.12.0; they were never read).
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