Skip to main content

run_agent_subcommand

Function run_agent_subcommand 

Source
pub fn run_agent_subcommand(
    spec: &ToolSpec,
    env: &ProcessEnv,
    command: &AgentSubcommand,
) -> i32
Expand description

Dispatch an AgentSubcommand for the given tool.

Refuses to run when agent mode is active (see [AgentModeContext]). Skill generation is a human-initiated, dev-time action; under supervision the surface is blocked to avoid leaking declared capabilities to a worker process or letting a worker write artifacts into the host’s skill registry.