Minimax m3 long context

From madebyaris/advance-minimax-m3-cursor-rules · View interactive version

Minimax m3 long context is an AI agent skill from the GitHub repository madebyaris/advance-minimax-m3-cursor-rules. How to use MiniMax M3's 1M-token MSA context productively: what to load vs. compress, when to retrieve vs. ingest, how to keep skills shallow in the always-on prompt and deep in skills, and how to plan retention across iterations. Load when the task might exceed ~200K tokens, when the user asks to "

How to use this skill

Skill file

M3 Long-Context Discipline

M3 ships a 1M-token MSA context window. The room is large; the cost of using it badly is also real. This skill teaches the retention and compression decisions that keep long-context work honest.

When to Use

For a single-file edit or a small bug fix, you do not need this skill.

Step 0: Decide Retention Per Slice

For each chunk of evidence you are about to load, pick one of three retention modes before you load it:

This is the same as deep-research Phase 2's "drop tangential" rule, applied at the file level before loading.

Step 1: Plan The Loader

Before the first read or search, write a 4–6 line plan in your scratchpad:

Loader plan
  In context at start: [system + always-on rules + user task]
  Add verbatim:      [the few files the answer depends on]
  Add as summary:    [reference docs, fetched pages, prior search results]
  Drop:              [tangential files, duplicate docs, raw search output past its iteration]
  Compress at:       [end of each iteration; before any new search round]

If you cannot write this plan, the task is under-specified — go back to the user or the codebase.

Step 2: Compression Rules

After each iteration, replace the raw block with a 2–4 line summary. Use the deep-research Compression template:

Source: [URL or file path]
Key finding: [1-3 sentences of relevant information]
Confidence: [certain / likely / uncertain]
Relevance: [directly answers sub-query / provides context / tangential]

Apply these caps aggressively:

Step 3: Targeted Read vs. Full Read

Default to the smallest tool that can honestly answer the question:

| Need | Smallest tool |

|------|---------------|

| Symbol / string lookup | Grep |

| "How / where / what handles this?" | SemanticSearch |

| One specific function or block | Read with a small offset/limit |

| Full file required for the task | Read (whole file) |

| Cross-file survey of patterns | SemanticSearch then targeted Read |

| Docs / external | WebFetch (one page) |

Reserve full-file reads for files that are the answer, that the user asked to see, or that the next step depends on. On a 1M-token model it is tempting to read everything; that path leads to slow, expensive, and noisier reasoning.

Step 4: Skill Handoff

Push deep recipes to skills instead of inlining them into the always-on prompt. This is the structural reason the repo has a tiny always-on core and many requestable rules / skills:

Step 5: Closeout Discipline

When the task touched > 100K tokens of input, add a Context disposition row to the standard closeout:

Context disposition:
  Kept verbatim: [list with paths / pages]
  Kept as summary: [list]
  Dropped: [list with one-line reasons]
  Compressed at iteration: [N, N+1, ...]
  Skill(s) loaded mid-task: [list]

This makes the context state legible to the next reviewer (or to the next session in a hand-off).

Anti-Patterns

Quick Reference

PLAN    -> write a 4-6 line loader plan before the first read
SLICE   -> pick keep-verbatim / keep-summary / drop per file before loading
READ    -> smallest tool that answers the question (Grep > SemanticSearch > slice Read > full Read)
COMPRESS-> after every iteration: raw -> 2-4 line summary, cap raw blocks per source
SKILL   -> push deep recipes to skills; do not inline into the always-on prompt
CLOSEOUT-> when input > 100K tokens, add a Context disposition row
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.