Skip to main content

Module shell

Module shell 

Source

Re-exports§

pub use compress::compress_if_beneficial_pub;
pub use exec::shell_timeout_with_override;
pub use exec::STDERR_LABEL;
pub use exec::combine_streams;
pub use exec::ShellDispatchObservation;
pub use exec::execute_prepared;
pub use exec::prepare_exec;
pub use exec::prepare_exec_argv;
pub use exec::exec;
pub use exec::exec_argv;
pub use output_policy::OutputPolicy;
pub use output_policy::classify as classify_output;
pub use platform::decode_output;
pub use platform::is_container;
pub use platform::is_non_interactive;
pub use platform::join_command;
pub use platform::join_command_for;
pub use platform::resolve_carriage_returns;
pub use platform::shell_and_flag;
pub use platform::shell_name;

Modules§

command_text
Pure command/output text predicates shared by the shell executor, the compression engine and ctx_shell. Moved down from tools/ctx_shell.rs.
compress
containment
Process containment for agent-tool calls and SDK sessions (Unix).
exec
exit_status
Exit-status mapping shared by every path that runs a child command (#1881).
output_policy
platform
process_tree
Whole-tree ownership of a spawned command (#1920).
reentry
Re-entrancy markers that stop nested lean-ctx invocations from double-compressing — decoupled from the user-facing activation flag.
tee_policy
Single source of truth for the shell “tee” decision — whether the full, pre-compression output is saved to a recovery file so the agent can retrieve it instead of re-running the command.

Functions§

interactive
save_tee