t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Cursor/OpenCode skill discovery returns zero skills despite skills existing on disk (Claude/Codex discover them fine)

Open AspectHeat opened this issue 6 months ago • 33 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce


description: T3Code exposes skills for Claude/Codex providers but its Cursor/OpenCode provider caches can report zero skills despite files existing. category: processing created: 2026-05-16 status: active

T3Code skill bugs need per-provider cache evidence

When investigating T3Code skill behavior, check both the provider-native discovery output and T3's cached provider metadata. A skill may exist on disk and be visible to the underlying agent while T3 still fails to expose or route it.

For the 2026-05-16 skill issue, the important evidence was provider-specific:

  • ~/.t3/caches/claudeAgent.json listed arscontexta entries as slash commands, including next, remember, distill, and connect.
  • ~/.t3/caches/codex.json listed 22 Codex skills, including arscontexta skills such as next, remember, distill, and connect.
  • ~/.t3/caches/cursor.json listed skills: [] and slashCommands: [] even though arscontexta skill symlinks existed in ~/.cursor/skills/ and project .cursor/skills/.
  • ~/.t3/caches/opencode.json listed skills: [] and slashCommands: [] even though opencode debug skill emitted arscontexta skills from ~/.opencode/skill/*/SKILL.md.
  • Manually pasting a <skill> block into the conversation made Codex follow the skill body, so the model can execute the instructions when T3 provides them.

Future debugging should separate three layers: filesystem discovery, T3 provider cache population, and chat-input command routing/injection.


Expected behavior

T3Code should ingest and expose provider skills consistently across supported providers.

Claude provider: arscontexta skills appear as slash commands. Codex provider: arscontexta skills appear as skills. Cursor provider: user/project skills from ~/.cursor/skills/ and .cursor/skills/ should appear in T3Code’s provider cache and be invocable. OpenCode provider: skills from ~/.config/opencode/skill/, ~/.opencode/skill/, and commands from ~/.config/opencode/command/ should appear in T3Code’s provider cache and be invocable.

Actual behavior

T3Code only sees skills/commands for Claude and Codex. Cursor and OpenCode provider caches report no skills or slash commands even though the files exist on disk.

Observed T3 provider cache summary:

claudeAgent: slashCommands_count=49, includes arscontexta commands codex: skills_count=22, includes arscontexta skills cursor: skills_count=0, slashCommands_count=0 opencode: skills_count=0, slashCommands_count=0 Skill files exist for Cursor/OpenCode:

~/.cursor/skills/next ~/.cursor/skills/remember ~/.config/opencode/skill/next ~/.opencode/skill/next ~/.config/opencode/command/next.md

Impact

Cosmetic issue

Version or commit

T3Code desktop: T3-Code-0.0.24-x86_64.AppImage Codex: codex-cli 0.129.0 OpenCode: 1.15.3 Cursor agent: 2026.05.16-0338208

Environment

No response

Logs or stack traces

Relevant cache evidence:


~/.t3/caches/claudeAgent.json:
  slashCommands_count=49
  includes connect, distill, next, remember, validate, verify

~/.t3/caches/codex.json:
  skills_count=22
  includes connect, distill, next, remember, validate, verify

~/.t3/caches/cursor.json:
  slashCommands_count=0
  skills_count=0

~/.t3/caches/opencode.json:
  slashCommands_count=0
  skills_count=0
OpenCode itself can see the skills, but T3Code cache does not:


opencode debug skill
  next -> ~/.opencode/skill/next/SKILL.md
  remember -> ~/.opencode/skill/remember/SKILL.md
  connect -> ~/.opencode/skill/connect/SKILL.md
  distill -> ~/.opencode/skill/distill/SKILL.md

Screenshots, recordings, or supporting files

opencode.json cursor.json codex.json claudeAgent.json

Workaround

manually paste the relevant SKILL.md content into the chat, or use the provider directly outside T3Code. For OpenCode specifically, native opencode debug skill can see the skills, so the issue appears to be T3Code’s provider cache/discovery layer rather than the skill files themselves.

AspectHeat avatar May 17 '26 01:05 AspectHeat

Will this bug be fixed in the near future? It is really frustrating to use opencode without skills.

Kjell6 avatar Jul 07 '26 18:07 Kjell6

I second that this makes OpenCode very frustrating to use.

maker2413 avatar Jul 13 '26 18:07 maker2413

Seems like a PR is open here: #3154. Wondering what help is needed to get this fixed, seems to have a few likes.

jacksoncurrie avatar Jul 15 '26 20:07 jacksoncurrie

#5168 is a pretty good fix for this.

I hope that can get merged soon.

gui-complypro avatar Aug 01 '26 08:08 gui-complypro

+1 — same issue with Cursor showing no skills. #5168 looks like the right fix; hoping it can get reviewed/merged.

Shuuren avatar Aug 05 '26 07:08 Shuuren

+1 to this as well. Big blocker for any serious OpenCode users w/ skills.

kianbazza avatar Aug 05 '26 08:08 kianbazza

I fixed this for opencode in this PR

  • #4588

It was closed whilst v2 orchestrator is merged, once that is in I will get this rebased on v2 changes and open a new PR

tris203 avatar Aug 05 '26 10:08 tris203

I just wish this issue would get eyes on it since many PRs have been suggested as fixes.

maker2413 avatar Aug 05 '26 16:08 maker2413

I see they are working on skills (https://github.com/pingdotgg/t3code/pull/5335, https://github.com/pingdotgg/t3code/pull/4630), and doing some architectural changes, so we may just need to be patient and wait 😄

nemesiscodex avatar Aug 05 '26 16:08 nemesiscodex

Ah I missed those. Thanks for the links! 👍

maker2413 avatar Aug 05 '26 18:08 maker2413

Still hitting this on 0.0.34-nightly with cursor-agent 2026.08.11 — cursor.json is still 0/0.

For cursor at least, I don't think a scanner is needed. If you talk ACP to cursor-agent acp, it sends an available_commands_update on session/new with everything already in it — 51 entries here, all 34 of my skills, picked up from ~/.agents/skills. T3 decodes that message and then does nothing with it, and CursorProvider.ts never passes slashCommands/skills into buildServerProvider, so they default to []. Wiring up an update we already receive seems like the smaller change.

One catch: cursor's ACP handleSlashCommand only checks its commands map, not skills, so /foo still won't fire for skills with disable-model-invocation: true even once the menu works. That one's on cursor, not you.

mariomeissner avatar Aug 13 '26 13:08 mariomeissner

If I understand correctly, to use acp I would need to start a session into the cwd before being able to read the skills/slash. But that means simply selecting Cursor as a model/provider in a new-thread composer would likely need to spawn cursor-agent acp process, create a new session in the current working directory and wait for the available commands. That seems useful once work has already started and a Cursor session exists, but I wonder what's the best approach before the first run.

nemesiscodex avatar Aug 13 '26 19:08 nemesiscodex

Experiencing the same issue not only with Opencode but with Grok build too

T3 (stable): 0.0.33 OC: 1.18.11 Grok: 1.0.4

pantharshit007 avatar Aug 15 '26 22:08 pantharshit007

+1 to this one. Big blocker for my workflows.

Newarr avatar Aug 17 '26 08:08 Newarr

OpenCode reads skills from ~/.agents/skills on my system, but T3 Code doesn't see them

hades200082 avatar Aug 18 '26 15:08 hades200082

I've fixed it in https://github.com/pingdotgg/t3code/pull/2891

razzeee avatar Aug 19 '26 12:08 razzeee

Looks like that PR has stalled though?

hades200082 avatar Aug 19 '26 14:08 hades200082

It was closed in favor of an broken implementation, but that was never merged either.

razzeee avatar Aug 19 '26 15:08 razzeee

I would imagine that all of this is paused until orchestrator v2 is merged as anything merged now on this would need porting for v2

tris203 avatar Aug 19 '26 15:08 tris203

I would imagine that all of this is paused until orchestrator v2 is merged as anything merged now on this would need porting for v2

Yes I think that's the case too, 🤞 that it lands soon

nemesiscodex avatar Aug 19 '26 15:08 nemesiscodex