You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: acp: discover skills in additionalDirectories roots #64034
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.
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.
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.
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.
Activity
opencodejr commentedon Nov 15, 2026
Thanks for the clear write-up! You're asking for
opencode acpto 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 onsession/load,session/resumeand forked or child sessions. Maintainers will consider it.The code I read supports what you describe: today the additional directories only become
external_directoryallow rules for the session, and I did not find them used anywhere in skill discovery.Related issues:
linjz3376 commentedon Nov 23, 2026
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.
batkuip commentedon Nov 25, 2026
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.