Skip to content

Detect Grok Build, the new name for Cursor - #82

Draft
gorban wants to merge 6 commits into
render-oss:mainfrom
gorban:grok-build-skills-tool
Draft

gorban wants to merge 6 commits into
render-oss:mainfrom
gorban:grok-build-skills-tool

Conversation

@gorban

@gorban gorban commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

Cursor is now Grok Build. Its 3.32 desktop app keeps its files in ~/.cursor and installs a grok-build command (/usr/bin/grok-build from the Linux package, /usr/local/bin/grok-build on macOS). The Grok CLI (grok) keeps its files in ~/.grok, with its settings in ~/.grok/config.toml. render skills now detects Grok Build in Cursor's place:

Found Listed as User skills directory
~/.cursor, no grok-build command (even with the Grok CLI, unless Render skills are already in ~/.grok/skills) Cursor (unchanged) ~/.cursor/skills
~/.cursor and the grok-build command Grok Build ~/.cursor/skills, or ~/.grok/skills if Render skills are already there
~/.grok/config.toml, no ~/.cursor Grok Build ~/.grok/skills
~/.grok without config.toml not detected
  • Only one of the two names is ever listed. Where .cursor is already in use, Grok Build keeps using .cursor/skills (read natively by the desktop app and by default by the Grok CLI); otherwise it uses .grok/skills, the Grok CLI's own folder. Render skills already in .grok/skills keep it there. So on one machine nothing is moved and this change adds no second copy.
  • Project scope follows the same rule from the repository's contents: Grok Build uses .cursor/skills if the project has .cursor, and .grok/skills otherwise. Cursor stays .cursor/skills. Project skills are shared, so in a project without .cursor a teammate still on Cursor before the rename won't read .grok/skills, and installing at project scope adds .cursor/skills as well, so Grok Build users in that project then see both copies.
  • ~/.render/skills.yaml keeps the tool name Cursor for Grok Build, so older versions of the CLI still find it and the saved name doesn't change with PATH. Commands list the detected name. A name saved as Grok Build (only possible with this branch) is rewritten as Cursor.
  • --tool cursor and --tool grok both select the tool, whether it's detected as Cursor or Grok Build. That depends on grok-build being on PATH, which can differ in cron, CI or an IDE terminal. Help text names Grok Build.
  • skills install reports each tool's skills folder at the chosen scope (with --scope project, -o json used to name the user folder), and with one tool the text output names it: Installed 22 skill(s) to .grok/skills, relative to the current directory for project scope and with ~ for user scope.

Known limitation: a Grok CLI user with ~/.cursor who turns off [compat.cursor] won't see skills in ~/.cursor/skills. ~/.agents/skills (--tool codex, included in a default install) is read natively by both Grok Build apps.

If Render skills are already in both ~/.cursor/skills and ~/.grok/skills (for example, the second copy placed by hand or by another installer), Grok Build uses ~/.grok/skills, and skills update and skills remove no longer touch the copies in ~/.cursor/skills.

The Grok CLI is recognized by ~/.grok/config.toml, which its installer writes, because other tools also use ~/.grok (for example the community grok-cli). A ~/.grok without it isn't detected, and no skills folder is created in it.

Verified with a project install to .grok/skills: the Grok CLI 2.0.9 lists all 22 skills as project skills, and the Grok Build 3.32.25 desktop app offers them as /render-… commands.

Motivation

Fixes #81. Answers to its open questions:

  1. Grok Build is detected by the grok-build command, since the desktop app creates no new directory. The Grok CLI (~/.grok/config.toml) counts only without ~/.cursor, or when Render skills are already in ~/.grok/skills: other tools also use ~/.grok, and the Grok CLI reads ~/.cursor/skills by default anyway.
  2. Existing skills stay where they are.

This narrows the issue's proposal to install to ~/.grok/skills whenever ~/.grok exists: .grok/skills is used only where .cursor isn't already in use. Otherwise, with Render skills already in .cursor/skills, Grok Build would read two copies, and installs saved as Cursor would stop being updated or removed.

I've marked this as a draft until the approach in #81 is agreed. If you'd rather keep it simpler, for example keeping .cursor/skills and only adding the name and --tool grok, I'm happy to cut it down.

How to verify

go test ./pkg/skills/ -run 'DetectTools|FilterTools|IntersectToolsByState|SaveInstallState|ScanInstalledState|ScopedTools|GetToolConfig|GetScopedSkillsDir' -v
go test ./cmd/ -run FormatInstallResult -v

The commits are three red/green pairs: each test commit makes only behavior-preserving moves (detectTools(home, lookPath) so tests control the home directory and commands, then formatInstallResult) and fails on assertions until the next commit. Later pairs revise earlier ones (the project folder, the saved name), so this description, not the first commits' messages, states the final behavior. Happy to squash.

Checked with Go 1.27.4 (go test ./pkg/... ./cmd/, gofmt, go vet, golangci-lint v2.14.0 with no findings on changed lines), and by hand with a built binary, a throwaway HOME and a stub grok-build, including removing a skill saved as Cursor after grok-build appeared, and project installs with and without .cursor, from the repository root and a subdirectory (Would install 22 skill(s) to ../.grok/skills).

Rebased on main after 1e3db3e and 02c8745, which fixed #79 (so #80 is closed). The new NewListResult behind skills list -o text|json|yaml now uses LookupTool too, so a tool saved as Cursor is listed as the detected Grok Build, covered by TestNewListResultFindsSavedCursorAsGrokBuild.

Release notes

- `render skills` lists Cursor as Grok Build when the `grok-build` command is installed, and detects the Grok CLI when Cursor isn't installed. Grok Build uses `.cursor/skills` where `.cursor` already exists and `.grok/skills` otherwise, and `--tool grok` selects it (`--tool cursor` still works). The Grok CLI is detected by `~/.grok/config.toml`
- `render skills install` names the skills folder when installing to one tool, and `-o json` reports the project folder with `--scope project`

Move DetectTools' body into detectTools, which takes the home directory
and a command lookup, so tests can control both. Behavior is unchanged.

The new tests cover when Cursor is detected as Grok Build, --tool cursor
and --tool grok, saved tool names under either name, and Grok Build's
project skills directory. The Cursor-only cases pass; the Grok Build
cases fail until it is supported.

Refs render-oss#81
Cursor is now Grok Build. Its desktop app still keeps its files in
~/.cursor and installs a grok-build command.

- With ~/.cursor and the grok-build command, render skills lists Grok
  Build in place of Cursor and keeps using ~/.cursor/skills.
- With ~/.cursor and no grok-build command, Cursor is detected as
  before, even if ~/.grok exists: the Grok CLI reads ~/.cursor/skills by
  default, and other tools also use ~/.grok.
- With ~/.grok and no ~/.cursor, Grok Build uses ~/.grok/skills.

Project skills stay in .cursor/skills. Skills are never moved, so this
change adds no second copy.

--tool cursor and --tool grok both select Grok Build. Tool names saved
as Cursor still match it, so update, remove and list keep finding
existing installs, and a new install saves the new name in their place.

Fixes render-oss#81
Move the skills install text into formatInstallResult. Behavior is
unchanged.

The new tests cover:
- Project scope: Grok Build uses .cursor/skills where the project
  already has .cursor, and .grok/skills otherwise, unless Render skills
  are already in .grok/skills.
- User scope: Render skills already in ~/.grok/skills keep Grok Build
  there after ~/.cursor appears, with or without the grok-build command.
- Install text: with one tool, name its skills folder, relative to the
  current directory for project scope (also when that directory is
  reached through a symlink) and with ~ for user scope.

They fail until that is supported.

Refs render-oss#81
Grok Build reads skills from both .cursor and .grok, its CLI's own
directory. Where a project or home directory already has .cursor, Grok
Build keeps using .cursor/skills; otherwise it uses .grok/skills. Render
skills already in .grok/skills keep it there, so on one machine installs
are neither left behind nor copied a second time when .cursor appears
later.

skills install now reports each tool's skills folder at the chosen scope
(ScopedTools, shared with the interactive install), so -o json names the
project folder rather than the user one. With one tool, the text output
names that folder, resolving symlinks in the current directory as git
does for the repository root:

  Installed 22 skill(s) to .grok/skills

Refs render-oss#81
…CLI check

The new tests cover:
- `--tool cursor` and `--tool grok` selecting the tool whether it's
  detected as Cursor or as Grok Build, which depends on the grok-build
  command being on PATH.
- Saving Grok Build under the name Cursor in ~/.render/skills.yaml,
  including state rebuilt from disk and state already saved as Grok
  Build, so older versions of the CLI still find it.
- Detecting the Grok CLI by ~/.grok/config.toml, so a ~/.grok that
  belongs to another tool isn't detected and gets no skills folder.

They fail until that is supported.

Refs render-oss#81
…Grok CLI

- `--tool cursor` and `--tool grok` select the tool whether it's
  detected as Cursor or as Grok Build. Which one depends on the
  grok-build command being on PATH, so it can differ in cron, CI or an
  IDE terminal.
- ~/.render/skills.yaml keeps the name Cursor for Grok Build, so older
  versions of the CLI still find it and the saved name doesn't change
  with PATH. A name saved as Grok Build is rewritten as Cursor.
- The Grok CLI is detected by ~/.grok/config.toml rather than ~/.grok,
  since other tools also use ~/.grok. Render skills already in
  ~/.grok/skills still keep Grok Build there.

Refs render-oss#81
@gorban
gorban force-pushed the grok-build-skills-tool branch from d595126 to b9742e1 Compare December 4, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support new name for Cursor: Grok Build render skills list and render skills remove panic with -o text, json or yaml

1 participant