advance-minimax-m3-cursor-rules / rules
Cursor rule126 starsChanged 6 months agoMITView on GitHub
Cursor 3.7 runtime guide: choose the right tool, canvases, Design Mode, /worktree, /best-of-n, Await, and parallel execution where safe.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository27 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- .cursor/rules/3d-graphics.mdcCursor rule
- .cursor/rules/agent-teams.mdcCursor rule
- .cursor/rules/clarify-first-prompting.mdcCursor rule
- .cursor/rules/cursor-agent-orchestration.mdcCursor rule
- .cursor/rules/cursor-mcp-optimization.mdcCursor rule
- .cursor/rules/design-systems.mdcCursor rule
- .cursor/rules/devops-infrastructure.mdcCursor rule
- .cursor/rules/fable5-coding-craft.mdcCursor rule
- .cursor/rules/fable5-reasoning.mdcCursor rule
- .cursor/rules/language-agnostic-patterns.mdcCursor rule
- .cursor/rules/minimax-m3-core.mdcCursor rule
- .cursor/rules/minimax-m3-self-evolution.mdcCursor rule
- .cursor/rules/minimax-m3-status-verification.mdcCursor rule
- .cursor/rules/minimax-m3-verification.mdcCursor rule
- .cursor/rules/minimax-mcp-tools.mdcCursor rule
- .cursor/rules/mobile-cross-platform.mdcCursor rule
- .cursor/rules/model-compatibility.mdcCursor rule
- .cursor/rules/skill-authoring.mdcCursor rule
- .cursor/rules/tool-discovery.mdcCursor rule
- 3d-web-experiencesSkill
- anti-slop-designSkill
- deep-researchSkill
- incident-triage-harnessSkill
- minimax-m3-long-contextSkill
- minimax-m3-multimodal-inputSkill
- minimax-multimodal-toolkitSkill
The file
Show its rules and text
We split this cursor-tools-mastery.mdc into the rules it gives an agent
23 rules. About 0 are common, 19 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep durable behavior in the core rule.
- Distinctive: line 17
Integrated browser: prefer the IDE's built-in browser for local UI verification when it is exposed in your session.
- Distinctive: line 82
Prefer direct read/search tools over shell equivalents.
- Very specific: line 84
Use SemanticSearch for "how/where/what handles this?" questions, not exact symbol lookups.
- Very specific: line 89
Read the file first (Read).
- Very specific: line 90
Use StrReplace for focused in-file edits.
- Distinctive: line 91
Keep edits coherent; avoid thrashing the same file with many tiny changes.
- Distinctive: line 103
Before starting dev servers or watchers:
- Distinctive: line 104
check the terminals folder for an existing one
- Very specific: line 105
when one is started, Await its output token (Ready, Compiled, etc.) instead of polling
- Distinctive: line 109
When browser tools exist (including Cursor's integrated browser in supported builds):
- Distinctive: line 119
Use browser checks for layout-sensitive UI work, interaction bugs, and issues shell commands cannot prove.
- Distinctive: line 120
When the user selects elements in Design Mode, treat those selections like attached screenshots — cite what was selected and what you …
- Distinctive: line 121
Do not promise a browser-only or canvas deliverable until you have confirmed that path in the current runtime.
- Distinctive: line 125
Prefer direct tools exposed in the prompt over wrapper APIs.
- Distinctive: line 126
If an MCP server exposes resources instead of action tools, use the resource functions the environment provides.
- Distinctive: line 127
MCP Apps structured content: when a tool returns structured content, prefer the structured form over prose dumping.
- Distinctive: line 128
Keep repo guidance generic enough to survive tool and server renames.
- Distinctive: line 134
When multiple delegations are truly independent:
- Distinctive: line 137
keep one synthesis step in the main thread after they return
- Distinctive: line 138
avoid overlap that makes two agents inspect the same surface without a reason
- Distinctive: line 153
If the task is narrow, prefer direct tools over spawning subagents.
- Distinctive: line 172
Do not parallelize dependent edits or steps that require previous outputs, and do not default to serial Task launches when a parallel batch …
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: "Cursor 3.7 runtime guide: choose the right tool, canvases, Design Mode, /worktree, /best-of-n, Await, and parallel execution where safe." alwaysApply: false --- # Cursor 3.7 Tools Mastery Keep durable behavior in the core rule. Use this file for current Cursor **3.7** tool-selection patterns and the Agents Window surface. ## Cursor 3.7 workspace In 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. - **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. - **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. - **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. - **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. - **Canvases:** live React artifacts beside the chat for dashboards, reports, and structured analyses; load the `canvas` skill before `.canvas.tsx` work. ## Golden Rule For significant actions: ```text Check what exists Choose the smallest correct tool Act Validate with the lightest useful verification ``` ## Default Tool Map **Cursor 3.7 / Composer-style agents (typical names in current desktop agents)** — the session usually exposes something close to: | Step | Tool / command | Notes | |------|----------------|-------| | Read a path | `Read` | Prefer over shell `cat`/`sed` | | Search by pattern | `Grep` | Ripgrep-backed; use for exact symbols and strings | | Search by meaning | `SemanticSearch` | "Where does X happen?" not exact text | | List paths | `Glob` | File discovery by pattern | | Edit in place | `StrReplace` | Surgical edits; read the file first | | Create or replace whole file | `Write` | Use when there is no stable old_string to patch | | Remove file | `Delete` | | | Terminal | `Shell` | Builds, tests, git, installs | | Web | `WebSearch`, `WebFetch` | | | Ask user | `AskQuestion` | | | Track steps | `TodoWrite` | | | Delegate branch work | `Task` | Subagent-style runs (types such as explore, debugger, verifier — see schema) | | Wait for background work | `Await` | Wait for a background shell, subagent, or a specific output token (e.g. `Ready`, `Error`) | | Isolated worktree | `/worktree` | Run a session in its own git worktree so concurrent edits do not collide | | Parallel model compare | `/best-of-n` | Run the same task across N models in parallel worktrees, then compare | | MCP servers | `call_mcp_tool` (+ resource helpers if present) | Read MCP tool descriptors before calling | | Plan mode | `SwitchMode` | When the product exposes a planning mode | | Images | `GenerateImage` | Only when the user asks for generated images | | Notebooks | `EditNotebook` | `.ipynb` cell edits | | Lint diagnostics | `ReadLints` | After substantive edits when available | | Multimodal inputs | `Read` against attached image/video paths | M3 native multimodal — treat as first-class inputs | | Interactive artifact | Canvas (`.canvas.tsx`) | Dashboards, reports, MCP tabular output — load `canvas` skill first | | Context diagnostics | Context usage report canvas | 3.7 — token breakdown across prompt, tools, rules, skills | **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. **Parallel batching:** issue **multiple independent tool calls in one assistant turn** when the runtime allows it. **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`. ## Pick The Right Surface (Cursor 3.7) | Need | Best fit | |------|----------| | Trivial localized edit | IDE inline edit | | Multi-file feature in one repo | Single agent session in the Agents Window | | Risky exploration, parallel branches, anything that must not collide with the main tree | `/worktree` (isolated git worktree) | | High-stakes decision (design, architecture, refactor) where you want a second opinion | `/best-of-n` (run across 2–4 models, then pick or merge) | | Long-running shell, subagent, or CLI that takes seconds-to-minutes | `Await` on the background job, or a specific output token | | Work that should keep running while you walk away | Cloud session, then hand back to local when environment-specific proof is needed | | Standalone analytical deliverable (audit, metrics table, MCP data dump) | Canvas — not a markdown table in chat | | Context pressure on a long M3 run | Context usage report canvas (3.7), then compress per `minimax-m3-long-context` | ## Read and Search Guidance - Prefer direct read/search tools over shell equivalents. - Batch independent reads and searches in one turn when the session allows parallel calls. - Use `SemanticSearch` for "how/where/what handles this?" questions, not exact symbol lookups. - 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. ## Editing Guidance - Read the file first (`Read`). - Use `StrReplace` for focused in-file edits; use `Write` for new files or full rewrites when patch context is awkward. - Keep edits coherent; avoid thrashing the same file with many tiny changes. - Re-read or verify after editing. - For UI changes, re-read the post-change screenshot/frame when one is available and cite the path in the report. ## Shell Guidance Use `Shell` for: - builds, tests, typechecks, and linting - package-manager or framework CLI commands - git inspection - long-running verification commands when no dedicated tool exists Before starting dev servers or watchers: - check the terminals folder for an existing one - when one is started, `Await` its output token (`Ready`, `Compiled`, etc.) instead of polling ## Browser Guidance When browser tools exist (including Cursor's integrated browser in supported builds): ```text 1. Check tabs 2. Navigate 3. Snapshot before interaction 4. Interact using snapshot refs 5. Re-snapshot and inspect console/network when behavior is unclear ``` Use browser checks for layout-sensitive UI work, interaction bugs, and issues shell commands cannot prove. When the user selects elements in **Design Mode**, treat those selections like attached screenshots — cite what was selected and what you changed. Do not promise a browser-only or canvas deliverable until you have confirmed that path in the current runtime. ## MCP and Plugin Guidance - Prefer direct tools exposed in the prompt over wrapper APIs. - If an MCP server exposes resources instead of action tools, use the resource functions the environment provides. - **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. - Keep repo guidance generic enough to survive tool and server renames. ## Task and subagent guidance In 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. When multiple delegations are truly independent: - launch them concurrently in the same assistant turn when the schema allows - give each run a distinct scope, expected output, and stopping point - keep one synthesis step in the main thread after they return - avoid overlap that makes two agents inspect the same surface without a reason For 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. Good parallel split examples: - frontend investigation vs backend investigation - version research vs codebase pattern search - debugger pass vs verifier pass - `/best-of-n` style: same prompt to 2–3 models in isolated worktrees Bad parallel split examples: - two agents editing the same file - agent B depends on findings from agent A - multiple agents exploring the whole repo with no separation If the task is narrow, prefer direct tools over spawning subagents. ## Parallelism Parallelize only when calls are independent: - multiple reads - unrelated searches - independent research tracks - separate `Task` / subagent investigations with different scopes For `Task` specifically: ```text 1. Split the work into independent slices 2. Launch multiple Task calls in one message when they do not depend on each other 3. Wait for all results (use Await for long-running ones) 4. Synthesize centrally before acting ``` Do not parallelize dependent edits or steps that require previous outputs, and do not default to serial Task launches when a parallel batch is possible.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

