Skip to main content

Module agent_runtime_pick

Module agent_runtime_pick 

Source
Expand description

model and effort of Agents update for a Claude agent that is not on a model route: the same runtime choice the pane’s picker makes (the Runtime menu, /model, /effort; frontend/app/view/agent/runtime-apply.ts), by an agent, on this machine or on another (host).

It writes what the picker writes: agent:runtime on each of the agent’s panes, cmd:args without its own --model and --effort (the next launch builds them from the runtime: agent_runtime::with_runtime_flags), and the agent’s remembered runtime, so a closed agent opens on it. Then the agent’s persistent panes restart at the end of their turn, with their conversation; a one-shot pane (a container agent’s) takes it at its next turn.

What it does not do: change a model the definition’s own provider flags fix (the operator’s, in My Agents), or an agent pointed at a model server of its own (its model is ANTHROPIC_MODEL in its environment, Agents env_set).

Structs§

Picked 🔒
What a pick did, for the answer.

Constants§

OWN_SERVER 🔒
PINNED 🔒

Functions§

bad 🔒
check_harness 🔒
Why this agent cannot be given the pick: only a Claude agent takes it (Codex’s model is its pane’s picker’s, and its remembered runtime is not read at launch).
check_model 🔒
Whether model can be given to a Claude agent, by name.
definition_points_at_own_server 🔒
Whether the definition itself points the agent at a server of its own, with a pane open or not: its saved environment and its structured model vendor URL are what the next launch builds from.
pane_refusal 🔒
Why this pane cannot take the pick, or none.
pick 🔒
Make the pick. Everything is checked before anything is written.
remembered_with 🔒
The agent’s remembered runtime with model and effort laid over it.