agentleFS
madebyarismadebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/minimax-m3-self-evolution.mdc

advance-minimax-m3-cursor-rules / rules

Cursor rule126 starsChanged 6 months agoMITView on GitHub

MiniMax M3 self-evolution harness: iterative refinement loops, compress-before-iterate, autonomous debugging, and recursive improvement patterns.

The file

Show its rules and text

We split this minimax-m3-self-evolution.mdc into the rules it gives an agent

14 rules. About 0 are common, 14 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT repeat the same fix twice on the same hypothesis.

    line 23
  2. Distinctive:

    Keep one canonical "current best hypothesis" line at the top of your scratchpad.

    line 31
  3. Distinctive:

    Overall: If 5 total iterations pass without progress, summarize evidence and ask

    line 49
  4. Distinctive:

    Context check: if you have run 3+ raw search/fetch operations without compressing, compress before continuing

    line 50
  5. Distinctive:

    Always prefer direct evidence over inference:

    line 54
  6. Distinctive:

    Test failures: Read the test output

    line 56
  7. Distinctive:

    Never say "likely caused by" without reading the evidence first.

    line 61
  8. Distinctive:

    When a fix doesn't work:

    line 65
  9. Distinctive:

    Do not run the same diagnostic command twice expecting different results

    line 76
  10. Distinctive:

    Do not make multiple changes between diagnostic cycles

    line 77
  11. Distinctive:

    Do not assume a fix works without re-running the exact check

    line 78
  12. Distinctive:

    Do not expand scope mid-iteration (finish the loop first)

    line 79
  13. Distinctive:

    Do not accumulate raw search output across iterations without compressing

    line 80
  14. Distinctive:

    Do not make a visual-fidelity claim without re-reading the post-change frame

    line 81

≈ “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
minimax-m3-self-evolution.mdc
---
description: "MiniMax M3 self-evolution harness: iterative refinement loops, compress-before-iterate, autonomous debugging, and recursive improvement patterns."
alwaysApply: false
---

# MiniMax M3 Self-Evolution Harness

M3 has a 1M-token MSA context and high skill adherence, and supports autonomous self-improvement through iterative reinforcement learning loops. Use this rule when the task involves debugging, optimization, or recursive code improvement.

## Core Loop

```
Iterate until evidence shows the problem is solved or the approach is exhausted:
  1. Run the smallest diagnostic check
  2. Read the failure output directly
  3. Compress prior raw evidence that you no longer need (see below)
  4. Make ONE targeted fix based on evidence
  5. Re-run the exact check that failed
  6. If fixed, verify the broader surface
  7. If not fixed, form a new hypothesis from the NEW evidence only
```

Do NOT repeat the same fix twice on the same hypothesis. Do NOT assume the cause without reading the evidence.

## Compress Before Next Iteration (M3)

On M3 the failure mode shifts from "ran out of room" to "ran too many parallel hypotheses without compressing." Before each new iteration:

- Replace raw search/fetch output from previous iterations with a 2–4 line summary.
- Drop evidence that is no longer relevant to the current hypothesis.
- Keep one canonical "current best hypothesis" line at the top of your scratchpad.
- For very large work, use the `minimax-m3-long-context` skill to plan the loader.

## When to Use This Harness

| Task | Harness Approach |
|------|------------------|
| Debug runtime error | Read error → one fix → re-run |
| Optimize performance | Profile → smallest change → measure |
| Fix failing test | Read test → read code → one fix → run test |
| Investigate unexpected behavior | Log/check → hypothesis → targeted probe |
| Iterative code improvement | Current state → one improvement → verify |
| Triage a visual bug from a screenshot | Read the screenshot, form hypothesis, one fix, re-read the post-change frame (`multimodal-grounded`) |

## Iteration Limits

- **Diagnostic phase**: 3 iterations to identify root cause
- **Fix phase**: 2 iterations per hypothesis before switching strategy
- **Overall**: If 5 total iterations pass without progress, summarize evidence and ask
- **Context check**: if you have run 3+ raw search/fetch operations without compressing, compress before continuing

## Evidence Rules

Always prefer direct evidence over inference:
- Runtime errors: Read the actual error message
- Test failures: Read the test output
- Performance: Read the actual measurement
- Behavior: Read the actual output/log
- Visual claims: Read the actual attached image/frame, not a memory or guessed description

Never say "likely caused by" without reading the evidence first.

## Self-Correction Pattern

When a fix doesn't work:

```
Previous hypothesis: [what I thought was wrong]
Evidence against it: [what actually happened]
New hypothesis: [what the evidence suggests instead]
Next action: [specific check to confirm new hypothesis]
```

## Anti-Patterns

- Do not run the same diagnostic command twice expecting different results
- Do not make multiple changes between diagnostic cycles
- Do not assume a fix works without re-running the exact check
- Do not expand scope mid-iteration (finish the loop first)
- Do not accumulate raw search output across iterations without compressing
- Do not make a visual-fidelity claim without re-reading the post-change frame

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.