Harness Notes

Locations

Updated 2026-11-25,

On this page

Where each harness looks for definitions, grouped by scope. Numbers (#) give each path's place in the order; the Order row says what they mean. Paths are documented by the vendor unless marked undocumented.

Skills

Where it looksCodex CLI
Project
  • $CWD/.agents/skills
    #1

    Scan current directory, then each parent to $REPO_ROOT

User
  • $HOME/.agents/skills
    #2, Preferred
  • $CODEX_HOME/skills
    Compatibility, Deprecated, Undocumented

    Defaults to ~/.codex/skills; follows CODEX_HOME when overridden.

Team, admin and managed
  • /etc/codex/skills
    #3
Plugins and packages
  • <enabled-plugin>/skills
    #5
Built in
  • <codex-bundled-skills>
    #4
Which skills are visibleEvery definition stays visible
When names collide
Same-named definitions both appear
Order
  • Docs list order: Numbers follow the documentation listing; runtime scan order is not established
  • Scan order: Not established
Recorded from

Codex CLI documentation; paths documented unless marked

Primary reference
Codex CLI, notes and evidence
  • Two skills with the same name are not merged; both may appear.
  • Symlinked skill directories are followed.
  • Numbered locations reflect the documentation listing; the unnumbered deprecated root is source-confirmed, not a documented precedence position.
  • Reclassified 2026-10-14: v1 orderStatus was "documented-scan-order". The v1 notes state: "Numbered locations reflect the documentation listing; the unnumbered deprecated root is source-confirmed, not a documented precedence position." Positions are retained as listing only; runtime scan order is not established.

Evidence

Instructions

Where it looksCodex CLI
Project
  • <repo-to-cwd>/{AGENTS.override.md,AGENTS.md,<configured-fallback>}
    #2

    Only when at most one non-empty file per directory; override then base then fallback

User
  • <CODEX_HOME>/{AGENTS.override.md,AGENTS.md}
    #1

    Only when first non-empty file wins

How instruction files combinePath applicable
When instructions conflict
More specific wins
Order
  • Load order: Broad to specific
Recorded from

Codex CLI documentation; paths documented unless marked

Primary reference
Codex CLI, notes and evidence
  • Instruction discovery follows the working path and stops at the current directory; it is distinct from skill discovery.
  • Files compose root-to-current-directory until the configured combined-byte limit is reached.

Evidence

Hooks

Where it looksCodex CLI
Project
  • <repo>/.codex/hooks.json

    Only when project layer is trusted

  • <repo>/.codex/config.toml#[hooks]

    Only when project layer is trusted

User
  • ~/.codex/hooks.json
  • ~/.codex/config.toml#[hooks]
Team, admin and managed
  • <system-or-managed>/requirements.toml
Plugins and packages
  • <enabled-plugin>/hooks/hooks.json

    Only when hook definition is trusted

How hooks from several places combineMerge all
When hooks conflict
All matching run
Order
  • Run order: Matching hooks run concurrently
Recorded from

Codex CLI documentation; paths documented unless marked

Primary reference
Codex CLI, notes and evidence
  • All matching sources merge; higher-precedence config layers do not replace lower hook layers.
  • Matching command hooks launch concurrently, so list order is not execution order.

Evidence

Subagents

Where it looksCodex CLI
Project
  • .codex/agents
    #1
User
  • ~/.codex/agents
    #2
Built in
  • <codex-built-in-agents>
    #3
Which definitions are visibleName precedence
When names collide
Custom name overrides built in
Order
  • Priority: Project before user before built in
Recorded from

Codex CLI documentation; paths documented unless marked

Primary reference
Codex CLI, notes and evidence
  • A custom agent with the same name as a built-in agent takes precedence.
  • Each custom agent is a standalone TOML configuration layer.

Evidence

Plugins

Where it looksCodex CLI
User
  • <personal-plugin-installation>
Team, admin and managed
  • <team-marketplace-installation>
Configured or per run
  • <local-plugin-directory>
Which plugins loadEnabled set
When names collide
Namespaced components
Order
  • Not established
Recorded from

Codex CLI documentation; paths documented unless marked

Primary reference
Codex CLI, notes and evidence
  • The public contract is installation/enabling, not a stable cache path. Do not treat an implementation cache as an authoring root.

Evidence

MCP servers

No research recorded for Codex CLI.