Skip to content

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

Open

Description

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.

  2. Do not expose heavy tool schemas by default in coding-only chats.
    Especially app/tool bundles unrelated to the current task.

  3. 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.

  2. 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.

Activity

  1. added
    enhancementNew feature or request
    appIssues related to the Codex desktop app
    skillsIssues related to skills
    contextIssues related to context management (including compaction)
    on Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appcontextIssues related to context management (including compaction)enhancementNew feature or requestskillsIssues related to skills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions