Cursor rule
.cursor/rules/cursor-tools-mastery.mdcCursor 3.7 runtime guide: choose the right tool, canvases, Design Mode, /worktree, /best-of-n, Await, and parallel execution where safe.
Cursor rules
Quality
58/100
Scores the file, not the repository.Length
1,541 words
12 headings · 3 code blocksRepository
124
— · pushed 49 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Cursor 3.7 Tools Mastery78Keep durable behavior in the core rule. Use this file for current Cursor **3.7** tool-selection patterns and the Agents Window surface.910## Cursor 3.7 workspace1112In Cursor 3.7, agent work is centered in the **Agents Window**. Open it from the command palette: `Cmd+Shift+P -> Agents Window` on macOS (per the [Cursor 3 announcement](https://cursor.com/blog/cursor-3); 3.7 changelog at [cursor.com/changelog](https://cursor.com/changelog)). The classic three-pane editor is still available; switch between them at any time.1314- **Multi-workspace / multi-repo:** the Agents Window can surface several workspaces at once. Name the repo or root path when handing off work, opening files, or running commands so edits land in the intended tree.15- **Per-session execution environment:** each agent tab picks its own environment — local working tree, isolated worktree (`/worktree`), cloud sandbox, or remote SSH. State the environment in the handoff contract; it is the unit of isolation.16- **Per-session model picker:** the model picker lives in the agent tab header (e.g. `composer-2.5`, `MiniMax-M3`, `auto`). Name the model in the handoff contract.17- **Integrated browser:** prefer the IDE's built-in browser for local UI verification when it is exposed in your session; it matches the "snapshot-first" flow in Browser Guidance below. Cursor 3.7 adds **Design Mode** (multi-select elements, voice input) — user selections there are ground truth for UI edits.18- **Canvases:** live React artifacts beside the chat for dashboards, reports, and structured analyses; load the `canvas` skill before `.canvas.tsx` work.1920## Golden Rule2122For significant actions:2324```text25Check what exists26Choose the smallest correct tool27Act28Validate with the lightest useful verification29```3031## Default Tool Map3233**Cursor 3.7 / Composer-style agents (typical names in current desktop agents)** — the session usually exposes something close to:3435| Step | Tool / command | Notes |36|------|----------------|-------|37| Read a path | `Read` | Prefer over shell `cat`/`sed` |38| Search by pattern | `Grep` | Ripgrep-backed; use for exact symbols and strings |39| Search by meaning | `SemanticSearch` | "Where does X happen?" not exact text |40| List paths | `Glob` | File discovery by pattern |41| Edit in place | `StrReplace` | Surgical edits; read the file first |42| Create or replace whole file | `Write` | Use when there is no stable old_string to patch |43| Remove file | `Delete` | |44| Terminal | `Shell` | Builds, tests, git, installs |45| Web | `WebSearch`, `WebFetch` | |46| Ask user | `AskQuestion` | |47| Track steps | `TodoWrite` | |48| Delegate branch work | `Task` | Subagent-style runs (types such as explore, debugger, verifier — see schema) |49| Wait for background work | `Await` | Wait for a background shell, subagent, or a specific output token (e.g. `Ready`, `Error`) |50| Isolated worktree | `/worktree` | Run a session in its own git worktree so concurrent edits do not collide |51| Parallel model compare | `/best-of-n` | Run the same task across N models in parallel worktrees, then compare |52| MCP servers | `call_mcp_tool` (+ resource helpers if present) | Read MCP tool descriptors before calling |53| Plan mode | `SwitchMode` | When the product exposes a planning mode |54| Images | `GenerateImage` | Only when the user asks for generated images |55| Notebooks | `EditNotebook` | `.ipynb` cell edits |56| Lint diagnostics | `ReadLints` | After substantive edits when available |57| Multimodal inputs | `Read` against attached image/video paths | M3 native multimodal — treat as first-class inputs |58| Interactive artifact | Canvas (`.canvas.tsx`) | Dashboards, reports, MCP tabular output — load `canvas` skill first |59| Context diagnostics | Context usage report canvas | 3.7 — token breakdown across prompt, tools, rules, skills |6061**Browser:** often MCP tools (for example `cursor-ide-browser`) with names like `browser_snapshot`, `browser_navigate` — follow the server's schema. **Design Mode** (3.7) is user-driven; honor multi-select and voice instructions as visual ground truth.6263**Parallel batching:** issue **multiple independent tool calls in one assistant turn** when the runtime allows it.6465**Other Cursor surfaces** (CLI, older builds, API): names may differ (`ReadFile`, `ApplyPatch`, `Subagent`, etc.). The **exact tool list in the current session always wins** — same principle as `model-compatibility.mdc`.6667## Pick The Right Surface (Cursor 3.7)6869| Need | Best fit |70|------|----------|71| Trivial localized edit | IDE inline edit |72| Multi-file feature in one repo | Single agent session in the Agents Window |73| Risky exploration, parallel branches, anything that must not collide with the main tree | `/worktree` (isolated git worktree) |74| High-stakes decision (design, architecture, refactor) where you want a second opinion | `/best-of-n` (run across 2–4 models, then pick or merge) |75| Long-running shell, subagent, or CLI that takes seconds-to-minutes | `Await` on the background job, or a specific output token |76| Work that should keep running while you walk away | Cloud session, then hand back to local when environment-specific proof is needed |77| Standalone analytical deliverable (audit, metrics table, MCP data dump) | Canvas — not a markdown table in chat |78| Context pressure on a long M3 run | Context usage report canvas (3.7), then compress per `minimax-m3-long-context` |7980## Read and Search Guidance8182- Prefer direct read/search tools over shell equivalents.83- Batch independent reads and searches in one turn when the session allows parallel calls.84- Use `SemanticSearch` for "how/where/what handles this?" questions, not exact symbol lookups.85- For long files or large repos, prefer targeted `Grep` or slice-sized `Read` over full re-ingest; see `minimax-m3-long-context` for the M3 1M-context version of this.8687## Editing Guidance8889- Read the file first (`Read`).90- Use `StrReplace` for focused in-file edits; use `Write` for new files or full rewrites when patch context is awkward.91- Keep edits coherent; avoid thrashing the same file with many tiny changes.92- Re-read or verify after editing.93- For UI changes, re-read the post-change screenshot/frame when one is available and cite the path in the report.9495## Shell Guidance9697Use `Shell` for:98- builds, tests, typechecks, and linting99- package-manager or framework CLI commands100- git inspection101- long-running verification commands when no dedicated tool exists102103Before starting dev servers or watchers:104- check the terminals folder for an existing one105- when one is started, `Await` its output token (`Ready`, `Compiled`, etc.) instead of polling106107## Browser Guidance108109When browser tools exist (including Cursor's integrated browser in supported builds):110111```text1121. Check tabs1132. Navigate1143. Snapshot before interaction1154. Interact using snapshot refs1165. Re-snapshot and inspect console/network when behavior is unclear117```118119Use browser checks for layout-sensitive UI work, interaction bugs, and issues shell commands cannot prove.120When the user selects elements in **Design Mode**, treat those selections like attached screenshots — cite what was selected and what you changed.121Do not promise a browser-only or canvas deliverable until you have confirmed that path in the current runtime.122123## MCP and Plugin Guidance124125- Prefer direct tools exposed in the prompt over wrapper APIs.126- If an MCP server exposes resources instead of action tools, use the resource functions the environment provides.127- **MCP Apps structured content**: when a tool returns structured content, prefer the structured form over prose dumping; render rich tabular output in a **canvas** when the data is the deliverable.128- Keep repo guidance generic enough to survive tool and server renames.129130## Task and subagent guidance131132In Composer-style agents the delegation tool is usually **`Task`**, with a `subagent_type` and prompt (see the live schema). Use it for isolated research, broad exploration, debugger or verifier passes, or branches that would otherwise pollute the main context.133134When multiple delegations are truly independent:135- launch them concurrently in the same assistant turn when the schema allows136- give each run a distinct scope, expected output, and stopping point137- keep one synthesis step in the main thread after they return138- avoid overlap that makes two agents inspect the same surface without a reason139140For long-running delegations, `Await` the subagent result instead of polling. In **Multitask Mode**, run `Task` in the background (`run_in_background: true`) and `Await` completion. Subagents can nest further `Task` calls (3.7) — keep depth shallow; the main thread still owns synthesis and edits.141142Good parallel split examples:143- frontend investigation vs backend investigation144- version research vs codebase pattern search145- debugger pass vs verifier pass146- `/best-of-n` style: same prompt to 2–3 models in isolated worktrees147148Bad parallel split examples:149- two agents editing the same file150- agent B depends on findings from agent A151- multiple agents exploring the whole repo with no separation152153If the task is narrow, prefer direct tools over spawning subagents.154155## Parallelism156157Parallelize only when calls are independent:158- multiple reads159- unrelated searches160- independent research tracks161- separate `Task` / subagent investigations with different scopes162163For `Task` specifically:164165```text1661. Split the work into independent slices1672. Launch multiple Task calls in one message when they do not depend on each other1683. Wait for all results (use Await for long-running ones)1694. Synthesize centrally before acting170```171172Do not parallelize dependent edits or steps that require previous outputs, and do not default to serial Task launches when a parallel batch is possible.173
Also in madebyaris/advance-minimax-m3-cursor-rules
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/3d-graphics.mdc · 124 | Cursor rules | lint-formatstyle | 62/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/agent-teams.mdc · 124 | Cursor rules | setupstylegitapi+3 | 73/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-agent-orchestration.mdc · 124 | Cursor rules | styledo-notagent-behaviour | 73/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-mcp-optimization.mdc · 124 | Cursor rules | styledo-notagent-behaviour | 65/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/design-systems.mdc · 124 | Cursor rules | lint-formatstyleuido-not | 77/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-reasoning.mdc · 124 | Cursor rules | style | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/devops-infrastructure.mdc · 124 | Cursor rules | stylesecuritydeploymentdo-not | 79/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/language-agnostic-patterns.mdc · 124 | Cursor rules | teststylearchtesting-strategy+5 | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-core.mdc · 124 | Cursor rules | buildtestlint-formatstyle+4 | 75/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-self-evolution.mdc · 124 | Cursor rules | styledo-notagent-behaviour | 65/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-status-verification.mdc · 124 | Cursor rules | styletypestesting-strategyapi+1 | 65/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-verification.mdc · 124 | Cursor rules | buildtestlint-formatstyle+3 | 89/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-mcp-tools.mdc · 124 | Cursor rules | styleagent-behaviour | 54/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/mobile-cross-platform.mdc · 124 | Cursor rules | setupperformancedeployment | 68/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/skill-authoring.mdc · 124 | Cursor rules | stylesecurityapi | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/clarify-first-prompting.mdc · 124 | Cursor rules | styledo-not | 61/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-coding-craft.mdc · 124 | Cursor rules | teststylearchtesting-strategy+1 | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/model-compatibility.mdc · 124 | Cursor rules | styledeploymentagent-behaviour | 66/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/tool-discovery.mdc · 124 | Cursor rules | styletypesdatabaseagent-behaviour | 58/100 | 3 days ago |
Diff against .cursor/rules/3d-graphics.mdc Diff against .cursor/rules/agent-teams.mdc Diff against .cursor/rules/cursor-agent-orchestration.mdc Diff against .cursor/rules/cursor-mcp-optimization.mdc Diff against .cursor/rules/design-systems.mdc Diff against .cursor/rules/fable5-reasoning.mdc Diff against .cursor/rules/devops-infrastructure.mdc Diff against .cursor/rules/language-agnostic-patterns.mdc Diff against .cursor/rules/minimax-m3-core.mdc Diff against .cursor/rules/minimax-m3-self-evolution.mdc Diff against .cursor/rules/minimax-m3-status-verification.mdc Diff against .cursor/rules/minimax-m3-verification.mdc Diff against .cursor/rules/minimax-mcp-tools.mdc Diff against .cursor/rules/mobile-cross-platform.mdc Diff against .cursor/rules/skill-authoring.mdc Diff against .cursor/rules/clarify-first-prompting.mdc Diff against .cursor/rules/fable5-coding-craft.mdc Diff against .cursor/rules/model-compatibility.mdc Diff against .cursor/rules/tool-discovery.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| iloveitaly/llm-ide-rules.cursor/rules/general.mdc · 13 | Cursor rules | teststyledo-notagent-behaviour+1 | 92/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/guard-git.mdc · 119 | Cursor rules | stylearchgitsecurity+2 | 89/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-testing.mdc · 49 | Cursor rules | buildteststyletesting-strategy+2 | 89/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/organize-workspace.mdc · 119 | Cursor rules | buildstylegitdeployment+2 | 89/100 | 3 days ago |
