fix(cursor-runner): correct stale delegate invocation in agent doc#11
Merged
freema merged 2 commits intoJun 10, 2026
Merged
Conversation
Step 6 of the cursor-runner agent told the subagent to run
`node_modules/.bin/tsx …/plugins/cursor/scripts/delegate.ts`, left over
from before the zero-deps `.mjs` rewrite: `tsx` is not a dependency,
there is no `.ts` file, and the path double-counted `plugins/cursor`
(CLAUDE_PLUGIN_ROOT already points at the plugin dir).
Replace it with the invocation the `/cursor:delegate` slash command
already uses: `node "${CLAUDE_PLUGIN_ROOT}/scripts/delegate.mjs" -- …`,
and fix the matching `delegate.ts` mention in the output-format section.
Contributor
Author
|
forgot to link the issue, my bad. |
7 tasks
freema
approved these changes
Jun 10, 2026
freema
left a comment
Owner
There was a problem hiding this comment.
Confirmed: agents/cursor-runner.md step 6 still pointed at node_modules/.bin/tsx …/plugins/cursor/scripts/delegate.ts — stale since the zero-deps .mjs rewrite (#3). The corrected invocation matches commands/delegate.md exactly, and the delegate.ts mention in Output format is fixed too.
Ran the branch locally: 83/83 tests green, prettier + eslint clean.
Note: #9 will merge first and both PRs add an ## Unreleased section to CHANGELOG.md, so this will need a trivial rebase afterwards — the cursor-runner.md hunks themselves merge cleanly.
…nerInvocation # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
cursor-runnersubagent's step 6 instructed it to invoke delegation vianode_modules/.bin/tsx …/plugins/cursor/scripts/delegate.ts— stale from before the zero-deps.mjsrewrite:tsxis not a dependency, there is no.tsfile, and the path double-countedplugins/cursor. So any delegation routed through the subagent (as opposed to the/cursor:delegateslash command, which is correct) failed if followed literally.Replaced it with the invocation the slash command already uses —
node "${CLAUDE_PLUGIN_ROOT}/scripts/delegate.mjs" -- …— and fixed the matchingdelegate.tsmention in the Output format section. Docs-only. Closes #10..Test plan
npm test— all specs greennpm run lint— prettier + eslint clean (agent doc is underplugins/cursor)commands/delegate.mdChecklist
dist/or.tsfiles## UnreleasedinCHANGELOG.md