Lightweight coding agent that runs in your terminal
Rust
[codex] Use compact OpenAI docs search queries (#28389)
Konstantine Kahadzecca39d51ba5e
diff --git a/codex-rs/skills/src/assets/samples/openai-docs/SKILL.md b/codex-rs/skills/src/assets/samples/openai-docs/SKILL.mdindex 30526bd9d8..df395fb442 100644--- a/codex-rs/skills/src/assets/samples/openai-docs/SKILL.md+++ b/codex-rs/skills/src/assets/samples/openai-docs/SKILL.md@@ -135,7 +135,7 @@ If MCP tools fail or no OpenAI docs resources are available:5. Leave historical docs, examples, eval baselines, fixtures, provider comparisons, provider registries, pricing tables, alias defaults, low-cost fallback paths, and ambiguous older model usage unchanged unless the user explicitly asks to upgrade them.6. Keep SDK, tooling, IDE, plugin, shell, auth, and provider-environment migrations out of a model-and-prompt upgrade unless the user explicitly asks for them.7. If an upgrade needs API-surface changes, schema rewiring, tool-handler changes, or implementation work beyond a literal model-string replacement and prompt edits, report it as blocked or confirmation-needed.-8. For general docs lookup, search docs with a precise query, fetch the best page and exact section needed, and answer with concise citations.+8. For general docs lookup, start with a compact, title-like search query of 2-6 essential terms. Do not turn the full user question into a keyword list. Fetch the best page and exact section needed, and answer with concise citations.## Reference map