pub fn prefix_script(args: &[OsString]) -> Option<String>Expand description
The script, when this process was started as the CLI’s shell prefix: exactly one argument, which is neither a subcommand nor a flag.
The CLI puts the prefix in front of more than Bash calls: hook commands,
and every stdio MCP server, whose command and arguments it joins into
that one argument. So a lone word is a prefix call too: the agentmux
MCP server arrives as just agentmux-mcp, and refusing it as an unknown
subcommand left agents without their AgentMux tools
(docs/reports/REPORT_AGENT_MCP_DOWN_THROUGH_SHELL_PREFIX_2026_10_11.md).