Skip to content

[Bug]: Claude skills loaded through launch args (--add-dir) never appear in the / menu or $ picker #20156

Closed

Description

@Young-caveman

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Put a skill at /some/dir/.claude/skills/demo/SKILL.md (any valid frontmatter). Keep it out of ~/.claude/skills and the project's .claude/skills.
  2. In Settings > Providers > Claude, set launch args --add-dir /some/dir.
  3. Start a new Claude thread. Type /demo in the composer, then try $demo.

Expected behavior

The / menu and $ picker list demo, and a $demo chip is rewritten to /demo, matching what the session loads. Codex, Pi, and OpenCode already list skills that come from their launch args or environment.

Actual behavior

  • The / menu shows "No matching command" and the $ picker has no demo.
  • A typed $demo is sent as plain text.
  • Sending /demo ... as the first characters of a message works: the Claude session loads the skill through --add-dir.

Source (at 8d199b4):

  • apps/server/src/provider/Drivers/ClaudeSkills.ts (discoverClaudeSkills) scans only <config dir>/skills and <cwd>/.claude/skills.
  • apps/server/src/provider/ClaudeProvider.ts (buildClaudeCapabilitiesProbeQueryOptions) starts the capability probe without the instance's launchArgs, so its slash-command list lacks them too.
  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts (userInvocableSkillNames) uses discoverClaudeSkills to decide which $name mentions to rewrite.
  • Only the session gets the launch args (parseCliArgs(input.settings.launchArgs) in ClaudeAdapterV2.ts).

Measured with Claude Code 2.1.300: claude -p "x" --output-format stream-json --verbose --add-dir /some/dir reports demo in the init message's skills and slash_commands; without --add-dir it doesn't.

Impact

Launch args are the only way to load a skill set in T3's Claude threads without also loading it in every Claude Code session outside T3 (and in OpenCode, which reads ~/.claude/skills too). Skills loaded that way can't be picked from the menu or chipped.

Version or commit

T3 Code 0.0.46-nightly.20261014.3132 (server source checked at 8d199b4); Claude Code 2.1.300.

Environment

Linux (Arch), desktop AppImage.

Workaround

Type /name by hand at the very start of the message.

Related

Possible fix: include <dir>/.claude/skills for each --add-dir <dir> in the instance's launch args in discoverClaudeSkills, or pass the launch args to the probe and use the init message's skill list.

Activity

  1. juliusmarminge commented on Oct 16, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Thanks for the detailed report. I checked this against main, and your diagnosis holds:

    • discoverClaudeSkills (apps/server/src/provider/Drivers/ClaudeSkills.ts) only scans <config dir>/skills and <cwd>/.claude/skills. Directories passed through launch args are never read.
    • buildClaudeCapabilitiesProbeQueryOptions (apps/server/src/provider/ClaudeProvider.ts) builds the capability probe without the instance's launch args, so the probe's slash-command list can't include them either.

    The session does load these skills, which is why typing /demo works. Only the menu, the picker, and the $name rewrite miss them. Accepting this as a bug: the composer should list what the session actually loads. It's related to #5622 / #15662 and #19816, but it isn't a duplicate, since none of those read launch args.

    Workaround for now: type /name at the very start of the message.

  2. added
    bug
    via-triage
    on Oct 16, 2026
  3. juliusmarminge commented on Oct 18, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Fixed by #20167, which just merged. Skill discovery now reads --add-dir from the instance's launch args, so those skills show up in the $ picker and the / menu, and $name mentions get rewritten to /name.

    One piece is still open: with "Show skills in slash menu" turned off, the / list comes from the capability probe, which still starts Claude without the instance's launch args. If that matters to you, please open a separate issue for it.

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

    bugvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions