agentleFS
madebyarismadebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/model-compatibility.mdc

advance-minimax-m3-cursor-rules / rules

Cursor rule126 starsChanged 6 months agoMITView on GitHub

Model compatibility guide: prompt hierarchy, M3-first model selection, tool discipline, read-before-edit safety, and context control across models.

The file

Show its rules and text

We split this model-compatibility.mdc into the rules it gives an agent

16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the current environment as the source of truth:

    line 14
  2. Distinctive:

    always-on rules should stay short, durable, and canonical

    line 16
  3. Distinctive:

    Do not assume an older rule or prompt shape is still valid just because it appears in this repo.

    line 20
  4. Distinctive:

    Prefer a single always-on execution spine over duplicated policy spread across multiple files.

    line 21
  5. Distinctive:

    If the prompt exposes a tool for the action, prefer that tool over shell.

    line 46
  6. Distinctive:

    Follow the exact tool schema shown by the environment.

    line 47
  7. Distinctive:

    Keep commentary short; spend prompt budget on execution, not narration.

    line 49
  8. Very specific:

    If the environment offers a patch or search-replace edit tool, prefer it for focused edits (Composer-style agents often expose StrReplace.

    line 62
  9. Distinctive:

    Never hardcode fast-moving versions in rules.

    line 66
  10. Distinctive:

    Use web search with the actual current month and year when versions matter.

    line 67
  11. Very specific:

    Do not leave placeholders such as [current year] in the query.

    line 68
  12. Distinctive:

    Before adding a new package, framework, or toolchain, verify the latest stable version, compatibility, and official setup path against …

    line 69
  13. Distinctive:

    Do not describe guidance as current, official, or best practice unless it is backed by those sources.

    line 70
  14. Distinctive:

    Read only what is needed for the task.

    line 74
  15. Distinctive:

    Prefer targeted searches over broad scans.

    line 75
  16. Distinctive:

    Keep durable lessons, not raw output, in active context.

    line 76

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
model-compatibility.mdc
---
description: "Model compatibility guide: prompt hierarchy, M3-first model selection, tool discipline, read-before-edit safety, and context control across models."
alwaysApply: false
---

# Transferable Agent Behavior (M3-first, model-resilient)

This repo is tuned for MiniMax M3 first. M3 is a generational shift: 1M-token MSA context, native multimodal input (text, image, video), and higher agentic and coding benchmarks.

The purpose of this file is to define the transferable execution behavior the agent should copy across models: tool-first work, read-before-edit discipline, short prompts, and context-aware problem solving that also maps well to strong GPT/Codex/Composer-style coding agents.

## Prompt Hierarchy

Treat the current environment as the source of truth:
- system instructions and exposed tools win
- always-on rules should stay short, durable, and canonical
- requestable rules should carry runtime-specific guidance
- user instructions still define the task

Do not assume an older rule or prompt shape is still valid just because it appears in this repo.
Prefer a single always-on execution spine over duplicated policy spread across multiple files.

## Model Selection

| Need | Default | Why |
|------|---------|-----|
| Long context (multi-file refactor, transcript analysis, large retrieval pack, full-repo synthesis) | `MiniMax-M3` | 1M-token MSA context |
| Visual-fidelity work, design parity, error UI triage, screenshot-driven dev | `MiniMax-M3` | Native multimodal input (text, image, video) |
| Deep agentic / coding (SWE-Bench-class tasks, long-horizon planning) | `MiniMax-M3` | Higher agentic and coding benchmarks |
| Anything where the user asks for "frontier" by name | `MiniMax-M3` | Positioned as the new frontier default |

When the active model is **not** M3 (for example `composer-2.5`, GPT, or Claude), the always-on core continues to apply — tool discipline, read-before-edit, scope control, solver loop, status taxonomy. The M3-specific sections (long-context discipline, multimodal input discipline) become inert, and the agent must not promise multimodal or 1M-context behavior. Confirm the model's actual capabilities from the current runtime before relying on them.

## Main Failure Modes

The most common failures are:
- writing plausible prose instead of using tools
- guessing file contents instead of reading them
- teaching stale tool names as if they were universal
- overloading the prompt with duplicate process text
- on M3, over-loading context with raw search/fetch output instead of compressing (see `minimax-m3-long-context`)
- on M3, making visual claims without re-reading the actual attached image/frame (see `minimax-m3-multimodal-input`)

## Tool Discipline

- If the prompt exposes a tool for the action, prefer that tool over shell.
- Follow the exact tool schema shown by the environment.
- Batch independent reads and searches when helpful.
- Keep commentary short; spend prompt budget on execution, not narration.

## Read-Before-Edit

Canonical workflow lives in the always-on core **Code Discipline** section. In short:

```text
1. Read the target file in the current session
2. Base the change on exact contents
3. Use the current edit primitive
4. Verify with follow-up reads, build, tests, browser checks, shell output, or multimodal-grounded re-reads
```

If the environment offers a patch or search-replace edit tool, prefer it for focused edits (Composer-style agents often expose `StrReplace`; other surfaces may use `ApplyPatch` or similar).

## Version Handling

- Never hardcode fast-moving versions in rules.
- Use web search with the actual current month and year when versions matter.
- Do not leave placeholders such as `[current year]` in the query.
- Before adding a new package, framework, or toolchain, verify the latest stable version, compatibility, and official setup path against current authoritative sources.
- Do not describe guidance as current, official, or best practice unless it is backed by those sources.

## Context Management

- Read only what is needed for the task.
- Prefer targeted searches over broad scans.
- Keep durable lessons, not raw output, in active context.
- For large work, push detailed procedures into requestable rules or skills instead of the always-on core.
- On M3, with 1M tokens available, still compress after each iteration — see `minimax-m3-long-context`.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.