pai
    Preparing search index...

    Function planSetup

    • Works out what setup would change, and writes nothing: the skill for each agent (SETUP_AGENTS), the MCP server with mcp, each agent's model settings with provider (SetupAgentSpec.provider), and the shell block (shellBlock) for agents that read the key from the environment. A config file setup can't edit safely is left out and listed in skipped.

      Parameters

      Returns SetupPlan

      CliError when no agent is found, the agent is unknown, the model is not a plain id, provider is set without an agent that supports it, or there is no key for provider.