Skip to content

[FEATURE]: acp: discover skills in additionalDirectories roots #64034

Open

Description

@mantou132

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Since #52524, opencode acp advertises sessionCapabilities.additionalDirectories
and turns each root into an external_directory allow rule. Skills inside those
roots are not discovered, though: skill sources are still only the global paths,
the project paths walked up from cwd, and the skills config array.

Other ACP agents treat additional roots as workspace roots for skills too:
Claude Code loads <root>/.claude/skills and Codex loads <root>/.agents/skills.
ACP clients use this to give a session its own skills without writing into the
user's project or global config. With OpenCode, the only option is a
process-wide skills entry in OPENCODE_CONFIG_CONTENT. Every session then
gets the same skills, and the client cannot follow a per-session selection.

Proposal: when a session has ACP additional directories (the
opencode.acp.additionalDirectories metadata), scan each root for the project
skill locations (.opencode/skills, .claude/skills, .agents/skills), scoped
to that session. Each request replaces the stored list (per the RFD), so the
session's skills follow the list too, including on session/load,
session/resume and forked/child sessions.

Related: #46798 (session-scoped skill visibility), #52701 (skill sources cached
per service).

Activity

  1. opencodejr commented on Nov 15, 2026

    @opencodejr
    Contributor

    Thanks for the clear write-up! You're asking for opencode acp to look for skills in each ACP additional directory (.opencode/skills, .claude/skills, .agents/skills), only for that session, and to update them whenever the list changes, including on session/load, session/resume and forked or child sessions. Maintainers will consider it.

    The code I read supports what you describe: today the additional directories only become external_directory allow rules for the session, and I did not find them used anywhere in skill discovery.

    Related issues:

  2. added
    area/ide-acp
    type/feature
    version/v2
    on Nov 15, 2026
  3. linjz3376 commented on Nov 23, 2026

    @linjz3376

    Sharing what we found while distributing skills across projects: HTTP catalogs (skills config array) already cover cross-project sharing decently for read-only skill bundles — we publish agentic-uat that way and consume it by URL, no local copies. Additional directory discovery would still be valuable for writable project-specific skills though. Author of the bundle; delete on request if this is noise.

  4. batkuip commented on Nov 25, 2026

    @batkuip

    This is also how JetBrains Rider/Air passes its Skills to ACP agents (broken atm). My understanding its a little ambiguous in the spec on how this is supposed to work but it is a nice way of passing skills over ACP.

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

    area/ide-acptype/featureversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions