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 looksOpenCode
Project
  • .claude/skills
    #3, Compatibility, Undocumented

    Compatibility ancestors from farthest toward current directory

  • .agents/skills
    #5, Portable, Undocumented

    Compatibility ancestors from farthest toward current directory

  • .opencode/skills
    #7, Undocumented

    Project directories from project root toward current directory

User
  • ~/.claude/skills
    #2, Compatibility, Undocumented
  • ~/.agents/skills
    #4, Portable, Undocumented
  • ~/.config/opencode/skills
    #6, Undocumented

    Default XDG_CONFIG_HOME; actual native root is $XDG_CONFIG_HOME/opencode/skills.

Built in
  • <built-in-skills>
    #1, Built in, Undocumented
Configured or per run
  • <config-document>#skills[]
    #8, Undocumented

    Compatibility ancestors from farthest toward current directory

    Confirmed for local directories in either order; for HTTP catalogs this comes from the code only.

Which skills are visibleOne definition per ID survives
When names collide
Later source wins by id
Order
  • Priority: Later source wins by id (numbered lowest to highest priority)
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • Released 2.0.29 source/documentation review; this is not a rerun of the retained 2.0.20 native probe.
  • Later registered sources replace earlier definitions by path-derived ID; frontmatter name is a display label.
  • Native config scans also accept the singular skill directory; explicit sources may be local directories or HTTP catalogs.

Evidence

Instructions

Where it looksOpenCode
Project
  • AGENTS.md

    Current workspace toward home; outside home, stop at project root

  • <nested-directory>/AGENTS.md

    Added when a file is read or directory is listed

User
  • ~/.config/opencode/AGENTS.md
Configured or per run
  • $OPENCODE_CONFIG_DIR/AGENTS.md
How instruction files combineCombine
When instructions conflict
No conflict resolution
Order
  • Load order: Global then current directory toward ancestor boundary
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • V2 recognizes AGENTS.md only; CLAUDE.md fallback is not supported.
  • OPENCODE_DISABLE_PROJECT_CONFIG=1 skips project discovery while retaining the global file.
  • Loaded files combine without harness conflict resolution.
  • Instruction order does not establish a winning conflicting instruction.

Evidence

Hooks

Where it looksOpenCode
Project
  • .opencode/plugins
    Undocumented
  • opencode.json(c)#plugins
    Undocumented
User
  • ~/.config/opencode/plugins
    Undocumented
How hooks from several places combineLoad all
When hooks conflict
Not established

Handler interactions depend on hook and plugin; no global collision policy asserted.

Order
  • Not established
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • Direct .ts/.js files and immediate package directories are discovered; configured relative entries resolve from their config file.
  • Hook handlers are plugin code, with event-specific control.

Evidence

Subagents

Where it looksOpenCode
Project
  • .opencode/agents/<name>.md
  • agents key in project config
User
  • ~/.config/opencode/agents/<name>.md
  • agents key in global config
Which definitions are visibleAgent definition merge
When names collide
Not established
Order
  • Not established
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • The same agent roots define primary agents and subagents; mode selects their role.
  • Legacy numeric precedence metadata is not projected as a separately established scan or load sequence.

Evidence

Plugins

Where it looksOpenCode
Project
  • .opencode/plugins
    Undocumented
  • opencode.json(c)#plugins
    Undocumented
User
  • ~/.config/opencode/plugins
    Undocumented
Which plugins loadLoad all
When names collide
Not established

Handler interactions depend on hook and plugin; no global collision policy asserted.

Order
  • Not established
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • Direct .ts/.js files and immediate package directories are discovered; configured relative entries resolve from their config file.
  • Hook handlers are plugin code, with event-specific control.

Evidence

MCP servers

Where it looksOpenCode
Project
  • opencode.json(c)

    Current directory toward filesystem root

  • .opencode/opencode.json(c)

    Applicable ancestor configuration directories

User
  • ~/.config/opencode/opencode.json(c)
How server configs combineWhole server replacement
Same server name in two places
Higher precedence config replaces server object
Order
  • Not established
Recorded from

Reviewed @opencode/cli (2.x) 2.0.29

Primary reference
OpenCode, notes and evidence
  • Managed system configuration and macOS MDM settings have higher priority.
  • A same-name server object is replaced as a whole; fields do not merge.
  • Project servers connect without a trust prompt; managed integration policies can block activation.

Evidence