Skip to content

multiagent: trim model-visible description, cap to 5 models#23069

Merged
sayan-oai merged 1 commit into
mainfrom
dev/sayan/multiagent-prompt-cleanup
May 16, 2026
Merged

multiagent: trim model-visible description, cap to 5 models#23069
sayan-oai merged 1 commit into
mainfrom
dev/sayan/multiagent-prompt-cleanup

Conversation

@sayan-oai

@sayan-oai sayan-oai commented May 16, 2026

Copy link
Copy Markdown
Collaborator

Why

The spawn_agent model override guidance is uncapped and bloating context. We need to trim down each entry and cap total entries.

picked 5 as cap, we can change

What changed

  • Cap the model override summaries shown in spawn_agent to the first 5 picker-visible models, preserving the existing priority ordering from the models manager.
  • Condense each rendered entry to the actionable pieces the model needs:
    • use the model slug as the label
    • render compact reasoning effort lists with the default marked inline
    • render only service tier IDs, and omit the clause when no tiers are available
  • Update coverage so the compact formatter shape and the top-5 cap are exercised, and keep the end-to-end request assertion aligned with real model metadata.

Example

Before:

- gpt-5.4 ('gpt-5.4\'): Strong model for everyday coding. Default reasoning effort: medium. Supported reasoning efforts: low (Fast responses with lighter reasoning), medium (Balances speed and reasoning depth for everyday tasks), high (Greater reasoning depth for complex problems), xhigh (Extra high reasoning depth for complex problems). Supported service tiers: priority (Fast: 1.5x speed, increased usage).

After:

- 'gpt-5.4': Strong model for everyday coding. Reasoning efforts: low, medium (default), high, xhigh. Service tiers: priority.

@sayan-oai sayan-oai requested a review from a team as a code owner May 16, 2026 19:27
@sayan-oai sayan-oai merged commit 061a614 into main May 16, 2026
31 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/multiagent-prompt-cleanup branch May 16, 2026 20:43
@github-actions github-actions Bot locked and limited conversation to collaborators May 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants