set_delegate_config
Change Forge-delegate runtime settings such as default model, agent, profiles, and timeout without reinstalling. Only supplied keys update; null clears fields.
Instructions
Change forge-delegate configuration at runtime — no reinstall. Only change settings when the user asks; never raise defaultModel to a premium tier on your own. Pass any subset of {defaultModel, defaultAgent, defaultVariant, autoApprove, timeoutMs, defaultDirectory, profiles}. Set a field to null to clear it. To edit a profile, pass the whole profiles object (e.g. profiles: {tests: {model: "..."}}); set a profile to null to delete it. Only provided keys change; others are preserved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profiles | No | The whole profiles object: { name: { model, agent, variant, autoApprove, directory } }. A profile set to null is deleted | |
| timeoutMs | No | Per-delegation timeout in milliseconds (default 900000, 15 minutes) | |
| autoApprove | No | Let delegated agents edit files and run commands without asking | |
| defaultAgent | No | opencode agent used when a call omits agent | |
| defaultModel | No | provider/model used when a call omits model | |
| defaultVariant | No | Reasoning-effort variant, sent to opencode as provider/model#variant | |
| defaultDirectory | No | Absolute project path used when a call omits directory |