Repository navigation
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFD file: docs/rfds/model-info.mdx. The full text follows.
Model details on model config option values
Author(s): alex09x
Elevator pitch
Let an Agent say a few facts about each model it offers, on the value it already sends in the
modelconfig option, so that a Client knows them before the user picks the model:vendor),contextWindow),inputModalities),thoughtLevels,recommendedThoughtLevel).It also asks Agents to fill the
descriptionthat model and effort values already have.Every new field is optional. An Agent sends only what it knows, and a Client never reads an absent field as zero or as "none". Selecting a model or an effort does not change.
Status quo
The model picker of an ACP session is a select option of category
model, and the effort picker is a select option of categorythought_level. Each value (SessionConfigSelectOption, the same in v1 and v2) has avalue, anameand an optionaldescription. A Client learns nothing else about a model before it uses it.What three Agents send today
We started three current Agents and read their
session/newresponse:modeloptiondescriptionon modelsdescriptionon effortsdefault,opus,sonnet, and full ids)sonnet: "Most efficient for simpler tasks"gpt-6.2-sol: "Fast, go-to model for coding and everyday work."high: "Greater reasoning depth for complex problems"agy acp)Context window. It reaches a Client only as
usage_update.size, for the current model, once a session runs. In one session each, after a short prompt, claude-agent-acp reportedsize: 1000000and codex-acpsize: 828400; the Antigravity CLI sendssize: 1048576for its current model at session start. OpenCode sends it after a prompt, when it knows the model's context size. No Agent says it for the other values in the list.Efforts. The efforts a model offers depend on the model, but a session has one effort option, which holds the current model's efforts. An Agent replaces its values when the model changes. In OpenCode the effort option is present only for models that have variants. So a Client cannot know the efforts of a model it has not selected.
codex-acp already works around this for JetBrains AIR clients: it puts each model's efforts and recommended effort on the model's value, under a vendor
_metakey (reasoningEfforts), from the Codex app-server model list (supportedReasoningEfforts,defaultReasoningEffort). Other Clients do not get it.Problems this causes
maxand another onlylowandmedium. A Client that picks a model and an effort as one pair has to switch models to find out what the pair can be.sonnetin one,anthropic/claude-sonnet-5-5in another). A Client we build, which picks the model and effort of each run and asks a model of another publisher to review the result, keeps exactly such a hand-written table today.What we propose to do about it
An optional
modelDetailsobject on each value of a select option whosecategoryismodel. A v1 example (in v2 the option'sidisconfigId):{ "id": "model", "name": "Model", "category": "model", "type": "select", "currentValue": "gpt-6.2-sol", "options": [ { "value": "gpt-6.2-sol", "name": "6.2 Sol", "description": "Fast, go-to model for coding and everyday work.", "modelDetails": { "vendor": "openai", "contextWindow": 400000, "inputModalities": ["image"], "thoughtLevels": [ { "value": "low", "name": "Low", "description": "Fast responses with lighter reasoning" }, { "value": "medium", "name": "Medium", "description": "Balances speed and reasoning depth for everyday tasks" }, { "value": "high", "name": "High", "description": "Greater reasoning depth for complex problems" } ], "recommendedThoughtLevel": "medium" } } ] }(The model value and the names and descriptions of the model and its efforts are what codex-acp 2.12.1 sends; the other details are illustrative.)
Fields
ModelDetails:vendorcontextWindowusage_update.size.inputModalitiesimage,audio.thoughtLevelsThoughtLevel[]recommendedThoughtLevelvalueof the effort the Agent recommends for this model._metaThoughtLevel:value(required),name(required),description(optional),_meta, the same shape as a select value. Thevalueis what the Client sets on thethought_leveloption once this model is selected.Rules
modelDetailsitself included, is optional. Omitted andnullmean "not reported". An empty list is not valid; an Agent omits the field instead.contextWindowis the limit that would apply if the user selected this value now, with the session's account, plan and other options (for example a separate context-size option of categorymodel_config). If that would give 200K of a model that can do 1M, the Agent sends 200000. When another option changes the limit, the Agent sends the updated values.usage_update.sizestays the live figure for the current model.inputModalitieslists the content kinds, named as ACP content blocks, that this model receives as such. It is bounded by the prompt capabilities the Agent advertises (v1agentCapabilities.promptCapabilities, v2capabilities.session.prompt). When present, the list is complete. If the Agent would turn an image into text before the model sees it,imageis not in the list. A Client may then warn the user or turn off image attachment for that model. Text is always accepted and is not listed. A Client ignores values it does not know.thoughtLevelslists the efforts of this model, each with its name and description, so a Client can show them before the model is selected. When present, the list is complete. After the user selects the model, the Agent'sthought_leveloption holds the same values.recommendedThoughtLevelis one of them; it is a recommendation, not a promise of what the Agent selects. If the current effort is not offered by the newly selected model, the Agent selects another effort as it does today, and the Client reads the result from the returned options before it sets an effort. Where the effort is part of the model value (such asgpt-oss-120b-medium), or the Agent has nothought_leveloption, the Agent omits both fields. If an Agent has more than one option of categorythought_level,thoughtLevelsrefers to the one whose values change with the model.default,opus), the Agent describes the model it resolves to now, and sendsconfig_option_updatewhen that changes. For a value that can resolve to different models from turn to turn (anautorouter), the Agent reports a field only if it holds for every model the value can reach, and omits it otherwise.modelDetailsand keeps the value, as it does for a malformeddescription. For example,"modelDetails": {"contextWindow": "1M"}gives a value with no details.Descriptions of models and efforts
The protocol already has a
descriptionon every select value. This RFD asks Agents to use it for the two options a user chooses a model by:descriptionon each value of itsmodeloption: what the model is good for, in a short phrase.descriptionon each value of itsthought_leveloption, and on eachThoughtLevel: the trade-off of that effort.codex-acp does all of this today. claude-agent-acp describes its models but sends effort names only, and the Antigravity CLI sends names only for both. A Client shows the name where a description is absent.
Vendor values
vendoris an open set of lowercase identifiers. An Agent SHOULD use these values for these publishers:anthropic,openai,google,meta,mistral,deepseek,alibaba,xai,moonshot,zhipu. For another publisher it uses the publisher's short name, lowercase. A publisher that renames itself keeps its first identifier.vendoris the publisher of the model weights. A fine-tune or distillation published by another organization has that organization as its vendor. Open weights served by a third party keep their publisher: gpt-oss served by Google isopenai.vendorsays who made the model, not who serves it or which account pays for it.Shiny future
A model picker shows "6.2 Sol · OpenAI · 400K context" for every Agent that knows it, and the name and description alone for one that does not. It shows each model's efforts with their descriptions before the user switches to it, can group a flat list by publisher, and dims image attachment before the user sends an image to a model that would not see it.
A Client that picks models itself reads these facts from the Agents instead of keeping its own table. It chooses a model and an effort as one pair, and it can ask a model of another publisher for a second opinion without guessing from names.
Implementation details and plan
Schema
SessionConfigSelectOptiongets one optional, nullable property,modelDetailsof a new typeModelDetails, in both protocol versions, with a new typeThoughtLevelfor its efforts. In Rust,SessionConfigSelectOption::model_details: Option<ModelDetails>; in TypeScript,modelDetails?: ModelDetails | null. Likedescription, it is marked so that the SDKs decode a malformed value as absent.The property is meaningful on the leaf values of an option whose
categoryismodel, also when the values are grouped. Agents do not send it on other options, and Clients ignore it there.No capability is needed. The property is additive, and a Client that does not know it ignores it.
Where it travels
modelDetailstravels with the config options:session/new,session/load,session/resumeand, where supported,session/fork, the response ofsession/set_config_option, andconfig_option_update.session/set_config_option, andconfig_option_update.Each of these sends the full option list, so a list that changes drops the details of values it no longer has. In the response of
session/options, where supported, the details are a preview: they may change before the session starts, and the setup response replaces them. The alias rule's update applies only to a live session.Where Agents get the data
thoughtLevelsandrecommendedThoughtLevelfromsupportedReasoningEffortsanddefaultReasoningEffortof the Codex app-server model list, the data it already sends to AIR clients.inputModalitiesfrom theinputModalitiesof that list.vendor: "openai"only for models from the Codex catalog, not for custom-provider models. No context window per model in that list today.vendor: "anthropic". We found no Claude Agent SDK call that gives a context window, modalities or efforts per model before a session, so the first version would sendvendoronly.vendorper model: its own list names Gemini, Claude and gpt-oss models.contextWindowfrom its model catalog (its usage-limit code readslimit.context), and efforts from each model's variants.Plan
modelDetails,ModelDetailsandThoughtLevelto the v1 and v2 schemas as unstable, with the Rust and TypeScript SDK types.thoughtLevels,recommendedThoughtLevel,inputModalitiesandvendorto every Client, next to its AIR key.contextWindowstays unstable until an Agent sends it.Frequently asked questions
Why on the config option value, and not a separate method?
The model list already is the
modeloption, and Agents keep it current. Details on its values cannot get out of step with it. The cost is size: the list is resent on every option change, and efforts add a few short entries per model. For the largest list we saw (16 values) that stays within a few kilobytes. A separate lookup per value (model/details) would save that, but it needs a new method, a cache in every Client and rules for when the cache is stale. If lists grow much larger, a lookup can be added later without changing these fields.Why do efforts carry their names and descriptions, and not only values?
Because the effort option of the session holds only the current model's efforts. A model that is not selected may offer an effort that is not in that option today, and a Client needs its name and description to show it.
Why no price, and no maximum output?
No Agent we read can send either today. Prices also change, depend on region, plan and tier, and need a money shape that matches
Costof session usage. They belong in their own RFD, next to the quotas RFD (#2316) and session usage. A maximum output can be added when an Agent can send it.Isn't
descriptionenough?descriptionis for people. These fields are for code: a Client compares publishers, shows a context badge, turns attachments on and off, and offers the efforts of a model before switching to it. Parsing prose for that is fragile.Why not
_meta?That works today, and codex-acp does it for AIR clients. But every Client then has to learn every Agent's keys and units. A shared shape lets a Client read it once for all Agents.
What about Agents with one fixed model and no
modeloption?They are out of scope here. If needed, the same
ModelDetailscan later describe the session's model elsewhere, for example in session info.What alternative approaches did you consider, and why did you settle on this one?
sonnetincluded) to catalog ids. A catalog cannot say what this session would get, which efforts this Agent offers, or which publisher stands behind a value of an Agent that mixes publishers. A Client can still fall back to a catalog where details are absent.thought_leveloption and listing only values per model. It needs no names on the model, but it changes how today's Agents build their effort option, and it shows efforts the current model cannot use.Revision history