Repository navigation
Description
Summary
Ego installs the ego-browser skill as a symlink in ~/.agents/skills and ~/.grok/skills. The grok CLI lists /ego-browser. Grok Build in the BB desktop app does not. Codex does list it. Codex uses a one-level user skill scan that follows symlinks. Grok Build scans the same folders recursively, and that walk skips every symlink.
Versions and environment
- bb 0.43.3, desktop app, macOS
- Provider acp-grok, Grok Build, grok 1.0.3, build 1a29d5bc12d4
- Default data dir on the same machine
Steps to reproduce
- Let Ego, or any other installer, create ~/.agents/skills/ego-browser and ~/.grok/skills/ego-browser as symlinks to one skill directory. Ego points both at ~/.local/share/ego/ego-skills.
- Run
grok inspect. ego-browser is a user skill and userInvocable is true. - Run
bb skill list --jsonand filter for the name ego-browser. - In a Grok Build thread, type / and look for ego-browser.
This does not fail for Codex. The same command lists ~/.agents/skills/ego-browser/SKILL.md with provider codex. OpenCode lists ~/.claude/skills/ego-browser/SKILL.md.
Expected vs actual
Actual rows from bb skill list before any local change:
acp-opencode /Users/balazstasi/.claude/skills/ego-browser/SKILL.md
codex /Users/balazstasi/.agents/skills/ego-browser/SKILL.md
There is no acp-grok row. The slash menu in a Grok Build thread has no /ego-browser. grok inspect does list the skill.
Expected: Grok Build offers /ego-browser, as the grok CLI does.
Evidence
The symptom and the cause are separate. I read main at b629714. I did not rebuild that commit.
walkMarkdownTree skips every symlink:
bb/apps/host-daemon/src/command-discovery.ts
Lines 292 to 295 in b629714
| source: args.source, | |
| origin: args.origin, | |
| description: frontmatter.description, | |
| argumentHint: frontmatter.argumentHint, |
scanRecursiveSkillRootFiles uses that walk. acp-grok declares a recursive user root for .agents/skills:
bb/plugins/provider-acp/src/known-agents.ts
Lines 166 to 172 in b629714
| env: {}, | |
| // omp reads its own, pi's and every cross-agent tree in the workspace | |
| // and its ancestors. Its agent directory (profile- and env-moved), the | |
| // pi, Codex and opencode user directories, its config's | |
| // `skills.customDirectories` and the Claude plugins come from the | |
| // resolver. | |
| nativeSkillRoots: { |
resolveGrokNativeRoots also adds ~/.grok/skills with recursive set to true:
bb/plugins/provider-acp/src/native-roots/grok.ts
Lines 317 to 321 in b629714
| if (seen.has(key)) { | |
| continue; | |
| } | |
| seen.add(key); | |
| const plugin = await resolveGrokPlugin(candidate, config); |
The flat skill scan already follows a user symlink one level. Codex uses that scan, so it sees the link. Grok Build never uses it.
I tried a local edit in apps/host-daemon/src/command-discovery.ts. For a user-origin recursive root, if a symlink is a directory and SKILL.md is directly inside it, or the symlink itself is SKILL.md, record that skill and mark it linked. Do not read any other file through the link. Project roots still skip links. I added coverage in command-discovery.test.ts and list-skills.test.ts, and those tests passed. I did not open a pull request. Desktop 0.43.3 does not include that edit.
For the current app I replaced ~/.grok/skills/ego-browser with a real directory copy of the skill, and left ~/.agents/skills/ego-browser as the symlink. After that, bb skill list shows an acp-grok row at ~/.grok/skills/ego-browser/SKILL.md. Ego's installer only creates or repairs a symlink, so it will not put the link back. The copy goes stale when Ego updates the skill.
Found while using Grok Build in BB thread thr_532ibn7npy.
What you ruled out
- Not bb skill list ignores symlinked skills (root symlink and per-skill symlink both invisible, no warning) #3238. That report is the bb-user scan of ~/.bb/skills. A later comment there says provider-user scans already follow per-skill symlinks. That is true for the flat scan. This bug is the recursive scan.
- Not Project slash commands are invisible when .claude/commands/*.md are symlinks #2602 or Symlinked entries in a project skill root are skipped even when they stay inside the repository #3856. Those are project command files or project skill links. Symlinked entries in a project skill root are skipped even when they stay inside the repository #3856 is closed as a duplicate of Project slash commands are invisible when .claude/commands/*.md are symlinks #2602.
- Not a missing install.
grok inspectlists the skill. - Not user-invocable set to false.
grok inspectreports userInvocable true. - The skip is still on main at b629714. I read the file there. I did not rebuild main.
Suggested priority and effort
Medium. Grok Build drops every user skill that is installed as a symlink. A real directory copy avoids it. No data is lost. The code change is small, but following a link can read a skill outside the skill folder, so the scan needs an explicit limit.
Checks
- I reproduced this on bb desktop 0.43.3. The same skip is on main at b629714.
- I searched open and closed issues.
An agent wrote this issue. A person hit the missing /ego-browser command while using Grok Build in BB.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 21, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied Bug · Priority: Medium · Effort: Medium, with
providersandprovider-acp. No existing classifications were replaced.REPRODUCED — high root-cause confidence. Report and reproduction artifacts. Two clean checkouts of trusted main produced the same failure: recursive discovery skips linked user skills because its walker rejects every symlink; Grok selects that recursive path. The flat-scan control finds the links. Full build and all 26 existing command-discovery tests passed; desktop/Grok CLI behavior was not exercised directly.
Reproduction label:
confirmed-repro. No PR: enabling previously skipped symlink traversal changes the filesystem read boundary, which this rule excludes from automatic fixes.lanjak commentedon Nov 13, 2026
This looks fixed on
mainat 88cf8f644c and in releases from 0.47.1. PR #6185 (f1f26b3) added one shared skill scanner,@bb/skill-index, and daemon skill discovery now uses it. In a recursive user skill root, the scanner follows a symlink that points to a skill folder (index.ts#L166-L174). A test on that commit with a symlinkedego-browserfolder in a recursive.grok/skillsroot found the skill. I did not check it in the Grok Build UI. If 0.47.1 or later lists/ego-browserfor you, this issue can be closed.