pub fn headless_command(
agent: Agent,
quoted_task: &str,
mode: AgentPermissionMode,
) -> StringExpand description
The headless command for one task, already shell-quoted.
task is single-quoted for sh by the caller through super::sh_single_quote;
this function receives the quoted form so the two agents’ templates read as the
literal command lines they are.