GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — feat(grok): surface Grok skills in the composer $ picker by mInrOz · Pull Request #7587 · pingdotgg/t3code Conversation
|
| Failure mode before | Mechanism after |
|---|---|
checkGrokProviderStatus never set skills, so every Grok snapshot defaulted to [] and the $ picker showed "No skills found" even with a full skill directory on disk. |
The provider check asks the CLI for its resolved catalog and attaches it to the post-version snapshot branches. |
The obvious fix, a Claude-style flat disk scan, cannot see plugin skills (three levels deep under ~/.grok/installed-plugins/) and ignores Grok's own ignore/disable config. On the machine that produced this PR, a flat scan misses 44 of 75 installed skills. |
grok inspect --json returns the catalog Grok itself resolved: user, project, bundled, and plugin skills, each with its SKILL.md path, description, and userInvocable flag. |
ClaudeSkills.ts module doc); Codex asks the app-server over skills/list. Grok exposes paths through inspect, so asking is the smaller and more correct mechanism.inspect, a non-zero exit, a 4 s timeout, or malformed JSON yields [] with a debug log. Skill discovery can never degrade the provider probe.userInvocable: false maps to enabled: false, not to omission. The pickers already filter on enabled; the snapshot stays a faithful record of the catalog.ClaudeSkills.ts extraction, no AcpSessionRuntime change, no new dependency, no driver signature change (ChildProcessSpawner was already in the probe's requirements).availableCommands): right instinct, but it couples OpenCode into the change and patches the shared AcpSessionRuntime. inspect yields the same paths without touching shared code.acp:// path, so built-ins like /compact would appear as skills. Wrong data.Ran on Linux, Node v26.7.0, pnpm 11.10.0, grok 1.0.5:
vp test run src/provider/Drivers/GrokSkills.test.ts — 4 passed (field mapping and sort, disabled skills, invalid entries skipped, malformed output).vp test run src/provider/Layers/GrokProvider.test.ts src/provider/Layers/GrokAdapter.test.ts — 27 passed.tsgo --noEmit in apps/server — no errors in changed files (pre-existing suggestions in unrelated files only).grok inspect --json (grok 1.0.5) returned 75 skills in ~60 ms; the fields map one-to-one onto ServerProviderSkill.Not run: the full monorepo suite (CI owns it) and an in-app screenshot of the populated $ picker (needs a live instance; I can add one on request).
Server-side only, ships with the next build. No schema change, no migration, no durable state. Rollback is the previous build; a snapshot produced by this build renders fine on old clients because the skills field and its wire schema already exist.
Built with Claude Code (Claude Fable 5).
🤖 Generated with Claude Code
Note
Low Risk
Server-only, additive probe after existing version check; discovery failures degrade to empty skills without changing probe outcomes.
Overview
Grok provider snapshots now include skills from grok inspect --json, so the existing composer $ picker can list Grok skills without client or contract changes.
New GrokSkills module runs a best-effort probe (4s timeout, optional server cwd) after the version check succeeds. JSON is mapped to ServerProviderSkill (scope, path, description; userInvocable: false → enabled: false). Failures return [] and only debug logs—probe status is unchanged.
checkGrokProviderStatus accepts cwd; GrokDriver passes ServerConfig.cwd. Discovered skills are attached on the post-version paths (ACP error, timeout, and ready), not when Grok is disabled or the CLI is missing.
Unit tests cover parsing edge cases and that inspect runs in the configured working directory.
Reviewed by Cursor Bugbot for commit c4574ba. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
$ picker via CLI discoverydiscoverGrokSkills in GrokSkills.ts, which spawns grok inspect --json with a 4s timeout and returns a best-effort list of skills, returning empty on any failure.parseGrokInspectSkills to map CLI output to ServerProviderSkill objects, filtering out malformed/unnamed entries, disabling non-invocable skills, deduplicating by name, and sorting alphabetically.checkGrokProviderStatus in GrokProvider.ts to accept an optional cwd and populate the provider snapshot with discovered skills across all return paths (success, ACP failure, timeout).Macroscope summarized c4574ba.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Grok provider snapshots always shipped an empty skills array, so the $ picker showed "No skills found". The provider check now runs `grok inspect --json` next to the existing version probe and maps the reported catalog (user, project, bundled, and plugin skills, with SKILL.md paths) onto the snapshot. Discovery is best-effort: an older CLI without `inspect`, a timeout, or malformed output yields an empty list and never degrades the snapshot. Built with Claude Code (Claude Fable 5). Co-Authored-By: Claude Fable 5 <[email protected]>
There was an error while loading. Please reload this page.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1f28c79. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a new feature that surfaces Grok skills in the composer $ picker via a new CLI integration ( You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The inspect spawn inherited the server process cwd, so a configured ServerConfig cwd (the directory the Claude skill scan already uses) was ignored and project-scope skills could be missed. The driver now passes ServerConfig.cwd through checkGrokProviderStatus to the `grok inspect --json` spawn, mirroring ClaudeDriver. Regression test asserts the spawn receives the configured cwd. Built with Claude Code (Claude Fable 5). Co-Authored-By: Claude Fable 5 <[email protected]>
|
Bugbot's finding is half right; fixed the real half in 363c947. Fixed: the inspect spawn inherited the server process cwd and ignored Not fixed, by design: "the thread workspace" is not knowable here. Provider snapshots are computed per instance, with no thread context — the merged Claude implementation (#4414) has the same property, and the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo I am closing this because #8358 has landed in Thank you for putting this together. The closure is only because the work is now covered elsewhere, not because there was a problem with your contribution. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Grok provider: skills/slash commands empty; ACP crash on skills-reload (BigInt RequestId)
There was an error while loading. Please reload this page.