Repository navigation
fix(skills): keep computer-use off filesystem and shell tasks - #21069
Conversation
STA-7615: "On my desktop create a folder" was matching computer-use because discovery copy said OS/window-level and neighboring skills advertised desktop UI. Scope the trigger to visible GUI with no CLI path, and exclude files/folders/git/shell.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
computer-usediscovery description rewritten — now scopes to driving a visible GUI window and explicitly excludes files, folders, git, shell, and Desktop/Documents paths, with anot.toContain('OS/window-level')regression guard.computer-useguide body opener re-framed — "drive a visible app window", prefers shell/filesystem, and"Desktop" as a folder path is not a GUI task.orca-cliandorchestrationdescriptions narrowed — Computer Use advertised only for clicks/menus/dialogs/screenshots in a visible window, never files/folders/git/shell.- Generated artifacts regenerated — install stubs (
skills/*/SKILL.md),src/cli/bundled-skill-guides.ts,current-manifest.json, andsnapshot-registry.json. The manifest/registry digests update in place on the unreleased floating tails (computer-use 9, orca-cli 37, orchestration 29);release-mapping.jsonstill names 8/36/28 as released, so this is the intended behavior ofreleasedHistoryFromCommitted, not a provenance rewrite. - Tests updated to pin the exact new phrases and the removal of the old framing.
Verified locally: both generators pass in verify mode (generate-bundled-skill-guides.mjs, generate-skill-bundle-manifest.mjs), the full config/scripts skill test set passes (93 + 59 tests), all three descriptions stay under the 1024-char Agent Skills cap, and no other tracked copy of the old strings remains.
ℹ️ Residual "OS/window-level" / "desktop UI" copy in guide bodies
The PR narrows the discovery frontmatter, but skill-guides/orca-cli.md:206 still says Computer Use is for tasks that "require OS/window-level control" — the same framing this PR removes from discovery — and config/scripts/orca-cli-skill-guidance.test.mjs:36 pins it. The emulator guides (skill-guides/orca-emulator.md:104, skill-guides/orca-emulator-android.md:118) likewise still describe computer-use as the choice for "desktop UI". These are guide bodies rather than the discovery descriptions the PR targets, so no change is requested here; noting them only in case you want the framing aligned consistently in a follow-up.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughComputer Use is now reserved for visible-window GUI control when shell, filesystem, Git, HTTP, or existing CLI tools cannot complete the task. Computer Use guidance no longer references Playwright or CDP. Orchestration guidance no longer advertises Computer Use or page automation. Tests and skill metadata reflect these routing changes. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to The routing guidance is otherwise low risk, but clarifying the eligibility wording and tightening the orchestration test would reduce the chance of incorrect skill selection or future regressions. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: f1124741-ca1d-4268-9747-694340c877bd
📒 Files selected for processing (12)
config/scripts/computer-use-skill-guidance.test.mjsconfig/scripts/orca-cli-skill-guidance.test.mjsconfig/scripts/orchestration-skill-guidance.test.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/computer-use.mdskill-guides/orca-cli.mdskill-guides/orchestration.mdskills/computer-use/SKILL.mdskills/orca-cli/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
| "packageDigest": "cd05e94d8cae38669b1aa0db3908614a6392af81e89aeab020fb71ce55f271c1", | ||
| "gitTreeSha": "2e4666a5628b4cd6eee56a15cbcd79df390a944d", | ||
| "files": [ | ||
| { | ||
| "path": "SKILL.md", | ||
| "size": 2237, | ||
| "size": 2291, | ||
| "executable": false, | ||
| "classification": "text", | ||
| "exactSha256": "b21b9b80475c35996b9c046379b9c9fa788f2d357c9e917befd8ab1b37df2e77", | ||
| "textNormalizedSha256": "b21b9b80475c35996b9c046379b9c9fa788f2d357c9e917befd8ab1b37df2e77", | ||
| "identitySha256": "b21b9b80475c35996b9c046379b9c9fa788f2d357c9e917befd8ab1b37df2e77" | ||
| "exactSha256": "8a8798024056c42839de7531c70990d6f7e957e39beabe02ea53b829ee673b2b", | ||
| "textNormalizedSha256": "8a8798024056c42839de7531c70990d6f7e957e39beabe02ea53b829ee673b2b", | ||
| "identitySha256": "8a8798024056c42839de7531c70990d6f7e957e39beabe02ea53b829ee673b2b" |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '350,405p' config/scripts/generate-skill-bundle-manifest.mjs
sed -n '1,65p' resources/skills/current-manifest.json
sed -n '560,605p' resources/skills/snapshot-registry.json
sed -n '1030,1070p' resources/skills/snapshot-registry.json
sed -n '1190,1235p' resources/skills/snapshot-registry.jsonRepository: stablyai/orca
Length of output: 10463
🏁 Script executed:
set -e
printf '%s\n' '--- generator history and manifest logic ---'
sed -n '405,505p' config/scripts/generate-skill-bundle-manifest.mjs
printf '%s\n' '--- relevant diff summary ---'
git diff --stat -- resources/skills/snapshot-registry.json resources/skills/current-manifest.json config/scripts/generate-skill-bundle-manifest.mjs
printf '%s\n' '--- relevant diff ---'
git diff -- resources/skills/snapshot-registry.json resources/skills/current-manifest.json config/scripts/generate-skill-bundle-manifest.mjs | sed -n '1,260p'Repository: stablyai/orca
Length of output: 4795
🤖 get_repo_knowledge executed:
get_repo_knowledge stablyai/orca /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4/learnings
Length of output: 9462
🏁 Script executed:
set -e
printf '%s\n' '--- digest and generation definitions ---'
rg -n -A35 -B8 'function packageDigest|const packageDigest|packageDigest\\s*=|releaseRevision' config/scripts/generate-skill-bundle-manifest.mjs config resources src tests | head -260
printf '%s\n' '--- current package sources and relevant mappings ---'
for f in skills/orca-cli/SKILL.md skills/orchestration/SKILL.md skills/computer-use/SKILL.md resources/skills/release-mapping.json; do
if [ -f "$f" ]; then
echo "--- $f ---"
sed -n '1,35p' "$f"
fi
done
printf '%s\n' '--- revision lookup consumers ---'
rg -n -A18 -B8 'historicalRelease|releaseRevision|snapshotRegistry|snapshot-registry|current-manifest' src config tests resources | head -360Repository: stablyai/orca
Length of output: 50369
🏁 Script executed:
set -e
printf '%s\n' '--- digest and generation definitions ---'
rg -n -A35 -B8 'function packageDigest|const packageDigest|packageDigest\s*=|releaseRevision' config/scripts/generate-skill-bundle-manifest.mjs config resources src tests | head -260
printf '%s\n' '--- current package sources and relevant mappings ---'
for f in skills/orca-cli/SKILL.md skills/orchestration/SKILL.md skills/computer-use/SKILL.md resources/skills/release-mapping.json; do
if [ -f "$f" ]; then
echo "--- $f ---"
sed -n '1,35p' "$f"
fi
done
printf '%s\n' '--- revision lookup consumers ---'
rg -n -A18 -B8 'historicalRelease|releaseRevision|snapshotRegistry|snapshot-registry|current-manifest' src config tests resources | head -360Repository: stablyai/orca
Length of output: 50369
🏁 Script executed:
set -e
python3 - <<'PY'
import hashlib, json, pathlib
manifest=json.loads(pathlib.Path('resources/skills/current-manifest.json').read_text())
wanted={'orca-cli','orchestration','computer-use'}
for entry in manifest['skills']:
if entry['name'] in wanted:
p=pathlib.Path(entry['sourcePath'])/'SKILL.md'
b=p.read_bytes()
print(entry['name'])
print('source_size',len(b),'manifest_size',entry['files'][0]['size'])
print('source_sha256',hashlib.sha256(b).hexdigest())
print('manifest_exact',entry['files'][0]['exactSha256'])
print('source_matches_manifest',len(b)==entry['files'][0]['size'] and hashlib.sha256(b).hexdigest()==entry['files'][0]['exactSha256'])
PY
printf '%s\n' '--- freshness types and lookup code ---'
sed -n '1,180p' src/shared/skill-freshness.ts
printf '%s\n' '--- exact historical lookup references ---'
rg -l 'historicalRelease|releaseMapping|release-mapping|releaseRevision' src config tests --glob '*.ts' --glob '*.mjs' | sortRepository: stablyai/orca
Length of output: 8082
🏁 Script executed:
set -e
printf '%s\n' '--- artifact registry and historical lookup ---'
sed -n '1,260p' src/main/skills/skill-bundle-artifacts.ts
printf '%s\n' '--- roundtrip historical lookup ---'
rg -n -A35 -B15 'historicalRelease|releaseRevision|gitTreeSha|packageDigest' config/scripts/verify-skill-update-roundtrip.mjs
printf '%s\n' '--- focused tests ---'
rg -n -A25 -B12 'historicalRelease|releaseRevision|snapshot|append-only|packageDigest' src/main/skills/skill-bundle-artifacts.test.ts config/scripts/generate-skill-bundle-manifest.test.mjs config/scripts/verify-skill-update-roundtrip.mjsRepository: stablyai/orca
Length of output: 50369
🏁 Script executed:
set -e
printf '%s\n' '--- commit context ---'
git rev-parse --short HEAD
git rev-parse --short HEAD^
printf '%s\n' '--- reviewed commit diff summary ---'
git diff --stat HEAD^ HEAD -- resources/skills/snapshot-registry.json resources/skills/current-manifest.json skills/orca-cli/SKILL.md skills/orchestration/SKILL.md skills/computer-use/SKILL.md
printf '%s\n' '--- reviewed commit diff ---'
git diff HEAD^ HEAD -- resources/skills/snapshot-registry.json resources/skills/current-manifest.json skills/orca-cli/SKILL.md skills/orchestration/SKILL.md skills/computer-use/SKILL.md | sed -n '1,280p'Repository: stablyai/orca
Length of output: 11428
Append a new snapshot revision for each changed package. The generator appends latest.releaseRevision + 1 when the package digest changes. This commit instead rewrites revisions 9, 37, and 29 in both manifests. Historical release mappings still resolve those revision numbers, so old releases now identify the new package digests and gitTreeSha values. This breaks immutable package identity and can make historical update checks use the wrong tree.
- Preserve revision 9 and append revision 10 for
computer-use. - Preserve revision 37 and append revision 38 for
orca-cli. - Preserve revision 29 and append revision 30 for
orchestration. - Set the corresponding
releaseRevisionvalues inresources/skills/current-manifest.jsonto 10, 38, and 30.
State the last-resort rule in discovery copy instead of enumerating files/folders/git/shell. computer-use prefers shell, filesystem, git, HTTP, CLIs, and Playwright/CDP; neighboring skills route to Computer Use only when a visible window needs GUI control those cannot do.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6ce2b6a9-0eea-4228-a8fc-7dd845bea8cc
📒 Files selected for processing (12)
config/scripts/computer-use-skill-guidance.test.mjsconfig/scripts/orca-cli-skill-guidance.test.mjsconfig/scripts/orchestration-skill-guidance.test.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/computer-use.mdskill-guides/orca-cli.mdskill-guides/orchestration.mdskills/computer-use/SKILL.mdskills/orca-cli/SKILL.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.ts
🚧 Files skipped from review as they are similar to previous changes (7)
- resources/skills/current-manifest.json
- skills/orchestration/SKILL.md
- skill-guides/orchestration.md
- config/scripts/computer-use-skill-guidance.test.mjs
- skill-guides/orca-cli.md
- config/scripts/orchestration-skill-guidance.test.mjs
- config/scripts/orca-cli-skill-guidance.test.mjs
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
| tree, clicks, typing, menus, dialogs, and screenshots in native apps and external | ||
| browser windows (Chrome, Edge, Safari) or webviews. Prefer a programmatic path | ||
| (shell, filesystem, git, HTTP, existing CLIs, Playwright/CDP) whenever it can | ||
| complete the task. Use only when a visible window needs GUI control those cannot |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Clarify the programmatic-path reference.
Replace those cannot reach with that programmatic paths cannot provide in both occurrences. The current phrase has no clear grammatical antecedent and can make the Computer Use routing rule ambiguous.
Also applies to: 15-15
Source: Linters/SAST tools
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the delta since the prior pullfrog review (c59ac17 → 3d0bf73): one commit that replaces the filesystem/shell deny-list with a positive "prefer a programmatic path" rule, plus its regenerated artifacts and tests.
- Replaced the
computer-usedeny-list with a positive last-resort rule — discovery and the guide body now say "Prefer a programmatic path (shell, filesystem, git, HTTP, existing CLIs, Playwright/CDP) whenever it can complete the task", keeping the embedded-browser and page-only exclusions. - Narrowed
orca-cliandorchestration— both now advertise Computer Use only "when a visible window needs GUI control that a CLI, filesystem, or API cannot do". - Regenerated stubs, guides, and manifests —
skills/*/SKILL.md,src/cli/bundled-skill-guides.ts,current-manifest.json, andsnapshot-registry.jsonmatch their sources; both generators pass in--checkmode. - Updated tests to pin the new phrases — the three guidance tests assert the new copy and that
OS/window-level/Desktop or Documentsno longer appear. All 93 tests across the 3 guidance and 2 generator test files pass locally.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Orchestration coordinates workers; it does not drive a GUI. Drop Computer Use and Playwright/embedded-browser routing from its discovery description so those tools are not pulled in from a coordination skill.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6397d951-0f56-4645-acb4-41c4dbe66adc
📒 Files selected for processing (6)
config/scripts/orchestration-skill-guidance.test.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/orchestration.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.
| expect(description).not.toMatch(/Computer Use/iu) | ||
| expect(description).not.toMatch(/Playwright/iu) | ||
| expect(description).not.toContain('embedded pages') |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reject all prohibited routing terms in this test.
The assertions do not match computer-use or CDP. A later orchestration description could advertise either route and still pass this test. Add both terms to keep the regression test aligned with the routing contract.
Proposed test update
- expect(description).not.toMatch(/Computer Use/iu)
+ expect(description).not.toMatch(/computer[- ]use/iu)
expect(description).not.toMatch(/Playwright/iu)
+ expect(description).not.toMatch(/CDP/iu)
expect(description).not.toContain('embedded pages')📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| expect(description).not.toMatch(/Computer Use/iu) | |
| expect(description).not.toMatch(/Playwright/iu) | |
| expect(description).not.toContain('embedded pages') | |
| expect(description).not.toMatch(/computer[- ]use/iu) | |
| expect(description).not.toMatch(/Playwright/iu) | |
| expect(description).not.toMatch(/CDP/iu) | |
| expect(description).not.toContain('embedded pages') |
orca-cli should not prescribe Playwright or CDP. Those tools may not be installed, and page automation is not this skill's job.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the delta since the prior pullfrog review (3d0bf73 → 797665c): two commits that stop orchestration and orca-cli discovery from advertising Computer Use / page automation, plus their regenerated artifacts and tests.
orchestrationdiscovery drops Computer Use entirely — the description now ends atreading or waiting on terminals., and the test asserts noComputer Use, noPlaywright, and noembedded pages.orca-clidiscovery drops the Playwright/CDP routing — ends atGUI control that a CLI, filesystem, or API cannot do.;orca-cli-skill-guidance.test.mjsnow reads frontmatter only and addsnot.toMatch(/Playwright/iu), while still pinning the guide body's OS/page routing.- Generated artifacts regenerated — stubs,
src/cli/bundled-skill-guides.ts,current-manifest.json, andsnapshot-registry.json. Both generators pass in--checkmode and the stub sizes/hashes match the manifest (orca-cli2211/6522a33…,computer-use2112/d104db9…,orchestration3510/36bc32f…). - Descriptions stay under the 1024-char cap — 542 / 649 / 560 chars for computer-use / orca-cli / orchestration.
Verified locally at 797665c: 113 tests pass across the three guidance suites, skill-description-length, skill-critical-guidance, and both generator suites.
ℹ️ Nitpicks
- The PR body's "What Changed" bullet still says
orca-cliandorchestrationboth carryUse Computer Use only when a visible window needs GUI control that a CLI, filesystem, or API cannot do., butd3f7bb4removed the Computer Use sentence fromorchestrationentirely — onlyorca-clihas it now. Worth updating the description so it matches the shipped copy.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Page automation is a preference, not a prohibition. If Playwright or CDP is not available, a visible browser window is valid Computer Use. Keep the hard split for Orca's embedded browser (`orca-cli`) only.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the delta since the prior pullfrog review (797665c → df06640): one commit that drops the page-only prohibition and every Playwright/CDP mention from computer-use discovery and its guide opener, plus its regenerated artifacts and updated tests.
- Dropped the
page-only automationprohibition fromcomputer-usediscovery — the description now ends atDo not use for Orca's embedded browser (\orca-cli`).`, and the guide opener loses the "For a website or web app …" / "Do not use it for page-only automation …" sentences. Per the commit rationale, page automation is a preference rather than a prohibition: when Playwright/CDP is unavailable, a visible browser window is valid Computer Use, and the last-resort rule ("Prefer a programmatic path … only when a visible window needs GUI control those cannot reach") still keeps the hard split for Orca's embedded browser. - Regenerated the
computer-usestub and manifests —skills/computer-use/SKILL.md(2050 bytes,244b0665…),src/cli/bundled-skill-guides.ts,current-manifest.json, andsnapshot-registry.json. Both generators pass in--checkmode (generate-bundled-skill-guides.mjs,generate-skill-bundle-manifest.mjs), and the stub frontmatter stays identical to the guide. - Updated
computer-use-skill-guidance.test.mjs— now asserts the new copy and guardsnot.toMatch(/Playwright/iu)/not.toContain('page-only'), so a regression to the old page-only framing fails. 51 tests pass across the three guidance suites.
ℹ️ Nitpicks
- The PR description's "What Changed" lags the shipped copy: it still says the
computer-usedescription prefers(shell, filesystem, git, HTTP, existing CLIs, Playwright/CDP)and that it "excludes Orca's embedded browser and page-only automation" —df06640removed both. Theorchestrationbullet is likewise stale afterd3f7bb4. Worth syncing the description so it matches what readers will see in the skills.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…ai#21069) * fix(skills): keep computer-use off filesystem and shell tasks STA-7615: "On my desktop create a folder" was matching computer-use because discovery copy said OS/window-level and neighboring skills advertised desktop UI. Scope the trigger to visible GUI with no CLI path, and exclude files/folders/git/shell. * fix(skills): prefer programmatic paths over computer-use State the last-resort rule in discovery copy instead of enumerating files/folders/git/shell. computer-use prefers shell, filesystem, git, HTTP, CLIs, and Playwright/CDP; neighboring skills route to Computer Use only when a visible window needs GUI control those cannot do. * fix(skills): stop advertising computer-use from orchestration Orchestration coordinates workers; it does not drive a GUI. Drop Computer Use and Playwright/embedded-browser routing from its discovery description so those tools are not pulled in from a coordination skill. * fix(skills): drop Playwright from orca-cli discovery orca-cli should not prescribe Playwright or CDP. Those tools may not be installed, and page automation is not this skill's job. * fix(skills): drop the page-only ban from computer-use discovery Page automation is a preference, not a prohibition. If Playwright or CDP is not available, a visible browser window is valid Computer Use. Keep the hard split for Orca's embedded browser (`orca-cli`) only.

ELI5
Agents were opening Computer Use to create a folder on the Desktop. That is a
mkdirjob. This change tells the skill matcher: prefer a programmatic path (terminal, filesystem, API, existing CLI) whenever it can finish the work. Computer Use is only for GUI in a visible window that those cannot reach.What Changed
Discovery copy for
computer-use,orca-cli, andorchestrationno longer treats "desktop" / "OS-level" as a reason to invoke Computer Use.computer-usedescription: prefer a programmatic path (shell, filesystem, git, HTTP, existing CLIs, Playwright/CDP); use only when a visible window needs GUI control those cannot reach. Still excludes Orca's embedded browser and page-only automation.computer-useguide opener repeats that last-resort rule.orca-cliandorchestration:Use Computer Use only when a visible window needs GUI control that a CLI, filesystem, or API cannot do.Why
STA-7615 / #20843:
"On my desktop create a folder (will be git repo think-full-stack)"invoked Computer Use because discovery saidOS/window-leveland neighboring skills advertiseddesktop UI. The model treated Desktop-the-folder as desktop-the-GUI.The general rule is last-resort GUI vs any programmatic path, not a deny-list of files/folders/git/shell.
#17736 already narrowed the browser false-positive set. This is the filesystem/shell/programmatic false-positive set.
Linked Issue
Fixes #20843
Fixes STA-7615
Visual Proof
N/A — skill discovery copy only; no UI or interaction change.
Testing
Updated
computer-use/orca-cli/orchestrationskill-guidance tests. Regenerated bundled guides and verifiedgenerate-bundled-skill-guides --checkplusgenerate-skill-bundle-manifest. Ran:No live agent-routing repro in this PR (copy-only change; STA-7536 still owns a broader invocation-boundary eval).
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Skill installs pick this up on the next skill update / app release that ships the new stub. Existing global installs keep the old description until then.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)