Harness Notes

Skill discovery

Updated 2026-11-25,

On this page

Where each harness finds skills and what the model is told about them before one is used. Exact directories for every scope are on the Locations page.

QuestionCodex CLIchecked at 0.162.1
Where it looks for skills

Codex scans .agents/skills in every directory from where you launch it up to the repository root, plus ~/.agents/skills (user), /etc/codex/skills (admin), bundled system skills, skills shipped in installed plugins, and the older ~/.codex/skills and project .codex/skills folders. Ordinary host roots discover skill directories up to 6 levels below the root; user/repo/admin roots follow directory symlinks and skip hidden subdirectories. AgentPlugin-format plugin roots accept only direct child skill folders; legacy plugin roots remain recursive. It does not read .claude/skills; the /import command can copy Claude Code skills into .agents/skills.

~/.codex/skills ($CODEX_HOME/skills) still loads but is marked deprecated in favour of ~/.agents/skills.

At 0.162.1 the bundled system skills are imagegen, openai-docs, review-agent, skill-creator and skill-installer; the docs' mention of a plan system skill is out of date.

As of 0.163.0, system roots ignore directory symlinks. Host scans continue below SKILL.md and cap each root at 2,000 directories / 20,000 entries. Executor and cloud skill providers have their own limits.

Nested folders and scan limits

Ordinary host roots scan recursively: a skill folder can be up to 6 directory levels below the root (root = 0). They skip hidden subdirectories and continue below a folder containing SKILL.md. User/repo/admin roots follow directory symlinks; system roots ignore them.

Checked in Codex 0.163.0 source. Each root is capped at 2,000 directories and 20,000 entries, so large trees can be incomplete before reaching the depth limit.

AgentPlugin-format plugin roots accept only <root>/<skill>/SKILL.md; legacy plugin roots scan recursively. The executor root-loader includes hidden directories; cloud and custom providers have separate discovery paths.

Stop scanning below a folder containing SKILL.md?

No, for recursive host roots. Finding SKILL.md does not stop discovery of nested skills, subject to depth and traversal limits.

Codex 0.163.0 source. AgentPlugin-format roots accept direct child skills only; deeper skills are excluded by that layout rule, regardless of whether a parent manifest exists. Cloud/custom providers are outside this finding.

What the model sees before using one

The model gets a ## Skills block listing each skill's name, description and SKILL.md path (shortened using a skill-roots table), followed by instructions on when and how to use skills. By default the list may use 2% of the model's context window, or 8,000 characters if the window size is unknown; set skills.max_context_tokens to change this, up to 10,000 tokens.

The budget covers only this initial list. A skill's full SKILL.md is read separately when it is used.

skills.include_instructions = false removes the whole list from the model's context.

Many skills or long descriptions

Descriptions longer than 1,024 characters are cut to 1,021 characters plus .... If the list is still over budget, Codex shortens all descriptions evenly; if names and paths alone don't fit, it removes every description and drops skills from the end of the list (system, then admin, then repo, then user skills, alphabetical within each), warning Exceeded skills context budget. All skill descriptions were removed and N additional skills were not included in the model-visible skills list.

No warning is shown when descriptions are only shortened; it appears only when skills are dropped.

A skill dropped from the list can still be invoked by name with $.

Two skills with the same name

Skills with the same name are not merged or overridden; Codex keeps both and both appear in the $ picker and the model's list. A bare $name that matches more than one enabled skill is not auto-loaded, so pick the entry you want from the $ picker, which binds the mention to that skill's path. Plugin skills are prefixed with the plugin name (plugin:skill), so they don't collide with your own skills.

Only exact duplicates of the same SKILL.md path are deduplicated.

A bare $name is also skipped if it matches the slug of a connected app.

New or edited skills mid-session

Codex watches the skill folders and picks up new, edited or removed skills automatically, usually within about 10 seconds, so they apply on later turns without a restart. If a change doesn't show up, restart Codex. Edits to ~/.codex/config.toml (such as [[skills.config]]) need a restart.

Skill folders on remote environments are not watched.

Disable or hide a skill

To disable a skill, add [[skills.config]] with path = "/path/to/SKILL.md" (or name = "skill-name") and enabled = false to ~/.codex/config.toml, or use /skills then Enable/Disable Skills. A disabled skill is hidden from the model and can't be invoked with $. To hide a skill from the model but keep $ invocation, set policy.allow_implicit_invocation: false in the skill's agents/openai.yaml.

[[skills.config]] is read from your user config and -c overrides, not from a project's .codex/config.toml.

skills.bundled.enabled = false turns off all bundled system skills.

Notes and sources

Codex CLI, 14 sources
  • Codex does not implement Claude's disable-model-invocation SKILL.md field; the analogous policy lives in agents/openai.yaml with inverted polarity.
  • No cited first-party contract establishes a separate per-skill switch for explicit user invocation.
  • Source-observed in Codex 0.160.1 (d27764b82f7118f674371e6d6e76271d9d606edb): policy.allow_implicit_invocation: false excludes the entire skill row before initial listing budget allocation. Explicit invocation still consumes conversation context when instructions load.
  • Plugin submission identity is plugin-name:skill-name (combined length <=64; names unique within plugin). This does not establish exact typed plugin invocation syntax.
  • Local equal-name skills are not merged and both can appear in selectors; ambiguous bare-name resolution is unverified. See docs/research/plugin-skill-namespaces.md.
Where it looks for skills, 5
Nested folders and scan limits, 5
Stop scanning below a folder containing SKILL.md?, 5
What the model sees before using one, 4
Many skills or long descriptions, 2
Two skills with the same name, 4
New or edited skills mid-session, 2
Disable or hide a skill, 4