Skip to content

[codex] Use model metadata for skills usage instructions#29740

Merged
ani-oai merged 1 commit into
mainfrom
codex/skills-usage-model-metadata
Jun 29, 2026
Merged

[codex] Use model metadata for skills usage instructions#29740
ani-oai merged 1 commit into
mainfrom
codex/skills-usage-model-metadata

Conversation

@ani-oai

@ani-oai ani-oai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a false-by-default include_skills_usage_instructions model metadata field
  • enable the field for the bundled gpt-5.5 model metadata
  • consume the metadata in both core and extension skill rendering
  • remove hardcoded legacy-model matching and its marker plumbing

@ani-oai ani-oai force-pushed the codex/skills-usage-model-metadata branch 3 times, most recently from 9aa1d70 to d2f2ffc Compare June 23, 2026 23:18

@dylan-hurd-oai dylan-hurd-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 comment, lgtm otherwise

impl From<AvailableSkills> for AvailableSkillsInstructions {
fn from(available_skills: AvailableSkills) -> Self {
pub fn from_available_skills(
mut available_skills: AvailableSkills,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally prefer immutability over the memory savings here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to immutable:
pub fn from_available_skills(
available_skills: &AvailableSkills,
include_skills_usage_instructions: bool,
)

@dylan-hurd-oai dylan-hurd-oai marked this pull request as ready for review June 24, 2026 17:19
@dylan-hurd-oai dylan-hurd-oai requested a review from a team as a code owner June 24, 2026 17:19
@xl-openai

xl-openai commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Unblocking, but one thing to consider: include_skills_usage_instructions is only applied when rebuilding the full initial context, so switching from a model with this set to false to GPT-5.5 may not add the usage instructions until the context is rebuilt.

@ani-oai ani-oai force-pushed the codex/skills-usage-model-metadata branch from d2f2ffc to 7d4af15 Compare June 28, 2026 22:11
@ani-oai ani-oai merged commit 6b5f574 into main Jun 29, 2026
63 of 66 checks passed
@ani-oai ani-oai deleted the codex/skills-usage-model-metadata branch June 29, 2026 00:44
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 29, 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.

3 participants