Skip to content

Add an opt-in model catalog to multi-agent context - #49560

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/67b11b4ad6c35f00d0e29edf6343bb0b4804d797
Sep 30, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/67b11b4ad6c35f00d0e29edf6343bb0b4804d797

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Add an opt-in model catalog to multi-agent context

Why

Refreshing available model descriptions changes the spawn_agent tool schema. Keep model choices current while preserving tool definitions and earlier conversation input.

What changed

  • Add the disabled-by-default model_catalog_in_context feature for multi-agent V1 and V2. When enabled and model overrides are available, move model listings from tool descriptions into developer <model_catalog> messages.
  • Include picker-visible, compatible models with descriptions, reasoning efforts, and service tiers in a listing bounded to 1,000 bytes. Point spawn_agent guidance to the latest catalog.
  • Append updated listings only when their rendered content changes, restore missing listings, and invalidate retained catalogs when they no longer apply.

Testing

Extend integration coverage for V1 and V2 with the feature enabled and disabled. Verify that catalog refreshes preserve tool definitions and prior input when enabled, append the updated listing once, and retain the existing tool-description behavior when disabled. Add a request-history snapshot for the V1 opt-in path.

## Why

Refreshing available model descriptions changes the `spawn_agent` tool schema. Keep model choices current while preserving tool definitions and earlier conversation input.

## What changed

- Add the disabled-by-default `model_catalog_in_context` feature for multi-agent V1 and V2. When enabled and model overrides are available, move model listings from tool descriptions into developer `<model_catalog>` messages.
- Include picker-visible, compatible models with descriptions, reasoning efforts, and service tiers in a listing bounded to 1,000 bytes. Point `spawn_agent` guidance to the latest catalog.
- Append updated listings only when their rendered content changes, restore missing listings, and invalidate retained catalogs when they no longer apply.

## Testing

Extend integration coverage for V1 and V2 with the feature enabled and disabled. Verify that catalog refreshes preserve tool definitions and prior input when enabled, append the updated listing once, and retain the existing tool-description behavior when disabled. Add a request-history snapshot for the V1 opt-in path.

GitOrigin-RevId: 67b11b4ad6c35f00d0e29edf6343bb0b4804d797
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/67b11b4ad6c35f00d0e29edf6343bb0b4804d797 branch from 7179855 to 2e5fea6 Compare September 30, 2026 10:03
@copyberry
copyberry Bot merged commit 2e5fea6 into main Sep 30, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/67b11b4ad6c35f00d0e29edf6343bb0b4804d797 branch September 30, 2026 10:03
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 30, 2026

This branch was successfully deployed

1 active deployment
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.

4 participants