Skip to content

🤖 docs: Cursor plugin support - #7847

Merged
ThomasK33 merged 16 commits into
cursor-plugins/hooksfrom
cursor-plugins/docs
Oct 31, 2026
Merged

ThomasK33 merged 16 commits into
cursor-plugins/hooksfrom
cursor-plugins/docs

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

User docs for Cursor plugin support, written from the code of PRs 1-8 of the Cursor plugin stack. They say what Xum loads from a Cursor plugin, what it lists as not applied, how Cursor rules, agents, MCP servers and hooks behave, and where Xum differs from Cursor.

Background

ThomasK33 asked for the Cursor plugin RFC as a reviewed, mergeable PR stack. This is PR 9 of rfc/20261030_cursor-plugin-support.md ("PR 9: Docs"). Where the RFC and the code differ, the docs follow the code.

Implementation

  • docs/agents/agent-skills.mdx: Cursor plugins (manifest precedence, components, folder paths, the Not applied in Xum list), Cursor rules as skills with their install-review labels, Cursor marketplaces and the merged list, the install-method order.
  • docs/agents/index.mdx: model: fast (Explore as the settings base, lookup order, prompt cache), the is_background: true hint, readonly prompt and tools, ai.settingsBase and subagent.background_hint in the frontmatter reference, the one review after the mapping change.
  • docs/config/mcp-servers.mdx: Cursor plugin servers (mcp.json, the plugin-root placeholders, "needs values", auth and placement not applied).
  • docs/hooks/plugins.mdx: Cursor hooks (where they run, trust, the file review and the first-trust file review, events, the command, environment and input, output and failures). Also the stop-loop notice (a newer notice replaces one still waiting), last_assistant_message, and .cursor-plugin packages getting no hooks.js.
  • builtInSkillContent.generated.ts: regenerated from the docs.

Deviations from RFC section 9:

  1. The agent facts live in docs/agents/index.mdx, where the plugin-agent mapping table already is, not in agent-skills.mdx.
  2. The Codex PreToolUse fail-closed change is documented by PR 6 itself, which is not in this stack.

Validation

  • make fmt-check and make static-check-full (which runs mintlify broken-links) pass.
  • Every changed sentence was fact-checked against the code twice by independent read-only checkers, with file:line evidence. The first pass found 12 overstated or wrong sentences, fixed in this PR. The second pass covered every sentence changed since then.

Risks

Docs only. The risk is a sentence that drifts from the code if a later PR in the stack changes behavior. The base PRs are final at the time of this PR.

Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $3.17

…ields

The merge of cursor-plugins/marketplace into a branch with cursor-plugins/hooks
leaves this PR 8 fixture without readonlyAgents and notApplied, which PR 2
made part of AgentPluginInstallPreview, so make typecheck fails.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
Document what Xum does with a Cursor plugin, from the code of PRs 1-8:

- agents/agent-skills: Cursor plugins (manifest precedence, components,
  folder paths, the Not applied in Xum list), Cursor rules as skills and
  their labels, Cursor marketplaces and the merged list, install order.
- agents/index: model: fast (Explore settings base, lookup order, cache),
  is_background hint, readonly prompt and tools, ai.settingsBase and
  subagent.background_hint, re-review after the mapping change.
- config/mcp-servers: Cursor plugin servers (mcp.json, plugin-root
  placeholders, needs values, auth and placement not applied).
- hooks/plugins: Cursor hooks (where they run, trust and file review,
  events, command, environment, input, output and failures), the stop
  notice that a newer notice replaces, last_assistant_message, and
  .cursor-plugin packages getting no hooks.js.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
- hooks/plugins: a file review row whose text Xum does not show says
  "(contents not shown: binary or larger than 64 KiB)", and Xum marks
  control characters in paths, texts and preview warnings as <U+XXXX>.
- config/mcp-servers: ${CURSOR_PLUGIN_DATA} and ${CLAUDE_PLUGIN_DATA},
  in a cwd too, count as needs values (PR 3 final).

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
…gnored

PR 4 final (eabac10) ignores such a settings base in runs too.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
Verdict PR9-42322fe3d3: correct the fixed-headers reason and what the
not-applied list names, kill switches only at 1, when the hook failure
notice shows again, which Cursor hooks run, rule files only directly in a
rules folder, the mapping-change review, the reawaken model, the env:
reason, prompt hooks, PATH, stop-only followup_message, and failClosed.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
PR 8 final: while no command hook of a Cursor plugin is trusted, the
Hooks panel lists every file and Trust waits for each cut text; a hook
that the parser drops is listed under Not applied in Xum, at most 50.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
Verifier PR9-0f270da2c1 row 20: removing and restoring project trust also
rebuilds the hook registration, so the notice shows again then too.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
@ThomasK33
ThomasK33 added this pull request to stack #7836 October 31, 2026 18:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T22:12:46.983890Z 5b08f41 Manual request
🔒 Security Review ✅ Completed 2026-10-31T22:12:24.787739Z 5b08f41 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 81b90e5276

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 81b90e5276

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 47.1k tokens (23% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 5.1s
🟢 a chat survives a restart of the server 1 step · 1 call 5.1s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 4.4s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 4.4s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 10.2s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 10.2s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 8.4s
🟢 a chat survives trips through Settings 2 steps · 1 call 8.4s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 3.8s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 3.8s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 2.4s
🟢 the agent opens the playground workspace 2 steps · 1 call 2.4s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 6.4s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 6.4s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 2.7s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 2.7s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 28.6s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 3.4s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 3.8s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 4.5s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 6.3s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 6.4s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 4.2s

e2e 0.20.0 · 1m 15s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 7.9k tokens (22% cached)
Spend: $0.02 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 6.0s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 6.0s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 5.4s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 5.4s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 4.7s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 4.7s

e2e 0.20.0 · 18.4s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 5.8s · 2 targets (web, phone) · run artifacts

Trust of a Cursor command hook is bound to the reviewed commit; the
first-trust review covers content and mode; review rows name symlinks and
mode changes; workspace_roots per project in a local multi-project
workspace; the trust prompt text; a session shutdown kills running
turn-stop hooks.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$3.17`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=3.17 -->
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 5b08f416ad

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 5b08f416ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit beb6648 Oct 31, 2026
63 of 67 checks passed
@ThomasK33
ThomasK33 deleted the cursor-plugins/docs branch October 31, 2026 23:09
yermakoffivan pushed a commit to yermakoffivan/mux that referenced this pull request Nov 2, 2026
…quests skill (coder#7885)

## Summary

The `pull-requests` skill now explains the Codex security review receipt
that the `Codex Comments` check needs, when `wait_pr_codex.sh` requests
it, and why each pushed head costs two Codex review rounds.

## Background

During the Cursor plugin stack (coder#7833 to coder#7847, follow-ups in coder#7858),
agents on nine PRs hit the same stop: Codex approved the head, but
`Codex Comments` exited 10 with "No Codex security review was requested
for <head>: request one". Owners did not know the gate needed a
comment-triggered security review, or that `wait_pr_codex.sh` posts that
request only after a person has asked Codex for a review in a PR
comment. Each pushed head also used two of the six allowed rounds, which
owners did not budget for.

## Implementation

A new subsection under "Handling Codex Comments" states three facts,
each read from the current scripts:

1. Codex posts a security receipt only for a comment-triggered review
(`scripts/wait_pr_codex.sh` cites coder#7731).
2. `request_security_review_if_needed` posts a Codex security review
request that names the head, once per head. `CHECK_CODEX_STATUS_ONCE`
stops before that when no person has asked Codex for a review in a PR
comment.
3. So each pushed head costs two rounds. Batch fixes per push.

---

_Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking:
`high` • Cost: `$125.78`_

<!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high
costs=125.78 -->
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.

1 participant