Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discover project skills for Claude #9210

Mergedanirudhsama(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9210/headmerged by maria-rcks View on GitHub

Closes #6449

What changed

The Claude driver now exposes snapshotForCwd, so the workspace snapshot plumbing that #8778 added for Codex and OpenCode applies to Claude as well. The hook reuses the existing filesystem scanner (discoverClaudeSkills) with the thread's working directory and overlays the result on the machine snapshot. Thirteen lines in ClaudeDriver.ts, nothing else.

Why

Claude project skills were scanned from the server's own startup directory (ServerConfig.cwd), so a project's .claude/skills never reached the $ picker or the / menu. #8778 by @UtkarshUsername built the per-cwd snapshot mechanism (registry, reactor trigger, client resolvers) but only wired Codex and OpenCode into it. This is the minimal follow-up for Claude; no subprocess is needed because the scanner already knows Claude Code's discovery rules, so there is no timeout or error mapping either.

Slash commands stay machine-level, matching the Codex and OpenCode implementations. Related but not fixed here: #8757 (scope label collision when the packaged server cwd is $HOME).

Overlaps with #9090 and #9180, which take on more (chip styling, docs, Cursor, Grok, mobile, registry cache changes). This one is offered as the smallest change that closes the Claude gap on its own.

Surfaces

  • Web and desktop: fixed, they already read workspace snapshots.
  • Mobile: not covered. It reads the machine-level skills list directly for every provider, so it needs its own change regardless of this PR.

Verification

  • ClaudeSkills.test.ts and ProviderRegistry.test.ts pass (61 tests).
  • Server typecheck and targeted lint clean.
  • Manual pass on web over the tailnet: a .claude/skills/hello-project skill in a project outside the server cwd appears in the $ picker after the session starts.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Screenshots: server-only change, verified manually in the web client

Built with GPT-5.6 Sol in the Codex harness, orchestrated by Claude Fable 5.1 in Claude Code.

🤖 Generated with Claude Code


Note

Low Risk Small driver-only change reusing existing skill discovery and snapshot overlay pattern; no auth or data-handling changes.

Overview Claude now participates in the per-workspace snapshot path so project-local .claude/skills show up in the client instead of only skills scanned from the server’s startup directory.

The driver exposes snapshotForCwd, matching Codex and OpenCode: when the provider is enabled it runs getSnapshot and discoverClaudeSkills for the thread’s cwd, then merges the discovered skills onto the machine snapshot (with filesystem/path services provided). When disabled it keeps using the plain machine snapshot.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8a868fcddb4b591aff67ddbe3554f3456c50f788. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fix ClaudeDriver.create to discover project skills per working directory

The provider factory now returns an instance with a snapshotForCwd function. Enabled instances load the base machine snapshot, run Claude skill discovery scoped to the supplied working directory, and merge discovered skills into the snapshot before returning it. Disabled instances expose the same function but return the existing snapshot without running discovery.

  • Behavioral Change: enabled Claude provider instances now produce cwd-specific snapshots that include newly discovered skills, whereas they previously returned a static snapshot.
Macroscope summarized 8a868fc.
    1. You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved at 8a868fc

      Macroscope's review found this PR approvable — The change is a narrow integration fix that reuses the existing Claude skill scanner to populate workspace-specific snapshots, with no changes to defaults, schemas, deployment, or execution workflows. Its runtime effect is limited to best-effort filesystem discovery for the requested project directory.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. maria-rcks merged thisbc918e7

    5. maria-rcks closed this

Sign in to join this conversation.