Codex desktop pre-injects too much skill/plugin/tool metadata into every new chat

Open 💬 0 comments Opened Jun 7, 2026 by stevesagronegocios673-ux

Codex desktop starts fresh chats with very high fixed context usage even when the first user message is trivial, for example just hello.

After local investigation, the main issue appears to be prompt assembly at chat startup:

  • Runtime includes a skills_instructions block with ## Skills, ### Available skills, and ### How to use skills.
  • Skill metadata for many local, bundled, and plugin-provided skills appears to be injected into every chat.
  • Tool schemas for many unused capabilities also appear to be injected by default, including heavy app/tool bundles unrelated to the current task.
  • Project AGENTS.md and local custom skills matter, but they are not the primary source of the fixed overhead.

What I verified locally:

  • Removing many low-frequency local skills reduced fresh-chat usage only from about 31k to 28k.
  • Disabling several plugins also helped only slightly.
  • This suggests the dominant cost is still host-level prompt and tool injection, not repo instructions alone.

Evidence sources:

Requested improvements:

  1. Do not pre-inject the full skill list into every chat.

Use lazy discovery via tool_search or a runtime index when needed.

  1. Do not expose heavy tool schemas by default in coding-only chats.

Especially app/tool bundles unrelated to the current task.

  1. Add runtime profiles such as:
  • coding-light
  • coding-full
  • research
  • design
  1. Shorten injected skill metadata aggressively.

If full lazy loading is not possible yet, reduce descriptions to minimal summaries.

  1. Show a context usage breakdown in the app.

For example: system prompt, developer prompt, tools, skills, and project instructions.

Expected outcome:

A fresh coding chat with a trivial first message should not start with such a large fixed context cost. Most of this appears avoidable through lazy loading and profile-based capability exposure.

View original on GitHub ↗