From e673f06f53d8df75972f39e491e1c31701e92fdb Mon Sep 17 00:00:00 2001 From: Tiberius Dourado Date: Wed, 10 Jun 2026 14:58:54 -0300 Subject: [PATCH] fix(cursor-runner): correct stale delegate invocation in agent doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- CHANGELOG.md | 6 ++++++ plugins/cursor/agents/cursor-runner.md | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f45ca8f..5def184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- **`cursor-runner` agent invocation corrected.** Step 6 told the subagent to run `node_modules/.bin/tsx …/plugins/cursor/scripts/delegate.ts` — stale from before the zero-deps `.mjs` rewrite: `tsx` is not a dependency, there is no `.ts` file, and the path double-counted `plugins/cursor`. It now matches the working slash command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/delegate.mjs" -- …`. The `/cursor:delegate` slash command was already correct; only the subagent's documented call was broken. + ## 0.3.0 — /cursor:review + codebase hardening ### Added diff --git a/plugins/cursor/agents/cursor-runner.md b/plugins/cursor/agents/cursor-runner.md index 2cca4e8..0115a90 100644 --- a/plugins/cursor/agents/cursor-runner.md +++ b/plugins/cursor/agents/cursor-runner.md @@ -76,8 +76,7 @@ When in doubt: fresh if the task topic changed, resume if it's the same thread o ### 6. Invoke `/cursor:delegate` via a single `Bash` call ```bash -"${CLAUDE_PLUGIN_ROOT}/node_modules/.bin/tsx" \ - "${CLAUDE_PLUGIN_ROOT}/plugins/cursor/scripts/delegate.ts" \ +node "${CLAUDE_PLUGIN_ROOT}/scripts/delegate.mjs" \ -- --model fast "" ``` @@ -97,7 +96,7 @@ Do not paraphrase the summary, do not rewrite the file list, do not hide the cha ## Output format -Return exactly what `delegate.ts` prints. One line of your own framing is fine: +Return exactly what `delegate.mjs` prints. One line of your own framing is fine: > Delegated to Cursor (`composer-2-fast`). Result below.