Skip to main content

Module cli

Module cli 

Source
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 --env CLI entries for outrig run and outrig mcp.
logs
outrig logs – print or tail -F an MCP server’s captured stderr.
ls
outrig ls – list sessions newest-first under the session root.
mcp
outrig mcp orchestrator: wire the shared SessionSetup bootstrap to a ProxyServer served over rmcp’s stdio transport by default, or Streamable HTTP when --listen is 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 run orchestrator: wire every subsystem into a working REPL.
session_setup
Shared bootstrap for outrig run and (future) outrig mcp. Lifts the sequence of “load + merge config -> resolve container -> ensure image -> start + bootstrap container -> session row + log dir” out of run so both subcommands hit the same code path.
volume_arg
Parse --volume CLI entries for outrig run and outrig 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 typing outrig logs 1419 fs, but the store’s contract stays “exact id or path.”