Harness Notes

Locations

Updated 2026-11-22,

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 looksClaude Code
Project
  • .claude/skills

    Recursive discovery

  • .agents/skills
    Ignored, Undocumented
User
  • ~/.claude/skills
  • ~/.agents/skills
    Ignored, Undocumented
Team, admin and managed
  • <managed-skill-directories>
Plugins and packages
  • <enabled-plugin>/skills
Which skills are visibleEvery definition stays visible
When names collide
Namespaced when plugin; otherwise documented separately
Order
  • Not established
Recorded from

Claude Code documentation; paths documented unless marked

Primary reference
Claude Code, notes and evidence
  • Claude Code 2.1.300 did not automatically discover project .agents/skills or user ~/.agents/skills in the 2026-10-15 isolated startup-inventory probe. Both .claude/skills controls were discovered; moving the identical .agents fixtures into .claude/skills made them appear. Invocation was not tested because the isolated home had no login.
  • The documentation does not promise that this display order is duplicate-name precedence.

Evidence

Instructions

Where it looksClaude Code
Project
  • <cwd-and-ancestors>/{CLAUDE.md,.claude/CLAUDE.md,CLAUDE.local.md}
    #4

    Only when applicable instructionFiles mode

  • <cwd-and-ancestors>/{AGENTS.md,.claude/AGENTS.md}
    #5

    Only when Claude Code 2.1.277+; enabled built-in agents-md; fallback or combined mode

  • <project>/.claude/rules/**/*.md
    #6

    Only when unscoped rules load at launch; rules with paths frontmatter load when Claude works with a matching file; skipped when project is excluded from --setting-sources

  • <subdirectory>/{CLAUDE.md,CLAUDE.local.md,AGENTS.md}

    Only when loaded on demand; AGENTS.md requires applicable mode and local fallback check

User
  • ~/.claude/CLAUDE.md
    #2

    Only when unless excluded by instructionFiles mode

  • ~/.claude/rules/**/*.md
    #3

    Only when unscoped rules load at launch; rules with paths frontmatter load when Claude works with a matching file

Team, admin and managed
  • <managed-policy>/CLAUDE.md
    #1

    Only when platform-specific managed path

How instruction files combineMerge applicable
When instructions conflict
Context guidance not enforced policy
Order
  • Load order: Managed then user then project root to working directory
Recorded from

Claude Code documentation; paths documented unless marked

Primary reference
Claude Code, notes and evidence
  • See the Claude instruction contract for structured modes, exclusions, and version caveats.
  • Reclassified 2026-10-15 from the documented load order at code.claude.com/docs/en/memory#how-claude-md-files-load.

Evidence

Hooks

Where it looksClaude Code
Project
  • .claude/settings.json#hooks
  • .claude/settings.local.json#hooks
User
  • ~/.claude/settings.json#hooks
Team, admin and managed
  • <managed-policy-settings>
Plugins and packages
  • <enabled-plugin>/hooks/hooks.json
Configured or per run
  • <invoked-skill>/SKILL.md#hooks
  • <running-subagent-frontmatter>#hooks
How hooks from several places combineMerge all
When hooks conflict
Decision precedence is event specific
Order
  • Run order: Matching handlers may run in parallel
Recorded from

Claude Code documentation; paths documented unless marked

Primary reference
Claude Code, notes and evidence
  • Hook entries merge across settings levels rather than replacing each other.
  • Matching handlers may run in parallel; event decision precedence is separate from source order.
  • allowManagedHooksOnly can exclude user, project, local, and most plugin hooks.

Evidence

Subagents

No research recorded for Claude Code.

Plugins

Where it looksClaude Code
User
  • ~/.claude/plugins
    Installed plugin state
Team, admin and managed
  • <marketplace-installation>
Configured or per run
  • <directory passed to --plugin-dir>
    Development
Which plugins loadEnabled set
When names collide
Plugin components namespaced
Order
  • Not established
Recorded from

Claude Code documentation; paths documented unless marked

Primary reference
Claude Code, notes and evidence
  • Installed plugins may be copied into a cache; plugin code must resolve assets through ${CLAUDE_PLUGIN_ROOT}, not its authoring path.

Evidence

MCP servers

Where it looksClaude Code
Project
  • ~/.claude.json#projects.<cwd>.mcpServers
  • .mcp.json#mcpServers
User
  • ~/.claude.json#mcpServers
  • ~/.claude/settings.json#mcpServers
    Ignored, Undocumented

    No evidence establishes that this location was supported previously.

    The version at which this behavior began is unknown.

How server configs combineScope precedence
Same server name in two places
Higher scope precedence wins
Order
  • Not established
Recorded from

Claude Code documentation; paths documented unless marked

Primary reference
Claude Code, notes and evidence
  • V1 records scope precedence but no scope sequence. Its collision rule is retained separately; no exact ordering is inferred.

Evidence

  • Claude Code MCP, first-party-docs, 2026-10-15
  • Claude Code 2.1.251 MCP settings discovery observation, live-observation, 2026-09-08