change_model
Switch the AI model for coding agents in OpenCode, Claude Code, or Codex CLI. Set a per-session model or update the global default for future sessions.
Instructions
Change the AI model for a harness. For OpenCode: per-session or global. For Claude/Codex: updates default for future sessions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"harness": "<harness>",
"model": "<model>"
},
"name": "change_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name (e.g. 'claude-sonnet-4-20250514', 'gpt-4o', 'o4-mini') | |
| harness | Yes | Target harness | |
| sessionId | No | Session ID (omit for global default) |