pai
    Preparing search index...

    Function setupAgents

    • Installs the phantom-ai skill for one agent, or for every agent found (see SETUP_AGENTS). With mcp, also adds the MCP server to Claude Code, Codex (through their CLIs) or Cursor (~/.cursor/mcp.json). With provider, also runs claudeProvider.

      Parameters

      • env: Env
      • opts: {
            agent?: string;
            exec?: (cmd: string, args: string[]) => void;
            mcp?: boolean;
            model?: string;
            onPath?: (bin: string) => boolean;
            provider?: boolean | "off";
        } = {}

      Returns SetupResult

      CliError when no agent is found, the agent is unknown, or provider is set without claude.