Expand description
CLI subcommand entry points. Each subcommand owns its arg struct and its
execute function; bin/outrig.rs stays a thin dispatch table.
Modules§
- app
- build
outrig build: pre-warm one (or every) image-config image.- clean
outrig clean– bulk-remove old session records.- design_
prompt outrig design prompt– print a one-shot AI design prompt or MCP setup snippets for OutRig’s self-description server.- discard
outrig discard– delete a session’s on-disk record.- env_arg
- Parse and validate
--envCLI entries foroutrig runandoutrig mcp. - logs
outrig logs– print ortail -Fan MCP server’s captured stderr.- ls
outrig ls– list sessions newest-first under the session root.- mcp
outrig mcporchestrator: wire the sharedSessionSetupbootstrap to aProxyServerserved over rmcp’s stdio transport by default, or Streamable HTTP when--listenis set. Runs as a server (not a REPL): the external stdio client speaks JSON-RPC on the binary’s stdout, and everything else (banner, tracing) goes to stderr.- mcp_
self - CLI entry point for
outrig mcp self. - run
outrig runorchestrator: wire every subsystem into a working REPL.- session_
setup - Shared bootstrap for
outrig runand (future)outrig mcp. Lifts the sequence of “load + merge config -> resolve container -> ensure image -> start + bootstrap container -> session row + log dir” out ofrunso both subcommands hit the same code path. - volume_
arg - Parse
--volumeCLI entries foroutrig runandoutrig mcp.
Functions§
- resolve_
session_ arg - Resolve the user’s
<session>argument (which may be a substring) to a concrete session. CLI policy, not store policy: substring matching is an ergonomic affordance for the user typingoutrig logs 1419 fs, but the store’s contract stays “exact id or path.”