[M3 Request] Claude Code 2.1.154+ sends MiniMax-M3 a reduced system prompt by default — please add CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 to your docs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 90/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- documentation
Direzione di ricerca
Apri la pagina della documentazione di Claude Code collegata nell’issue e individua il blocco esistente delle variabili d’ambiente per la configurazione di MiniMax. Aggiungi CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT con valore 0, mantieni la formattazione JSON e verifica che l’esempio rimanga valido e corrisponda alla configurazione richiesta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Claude Code has two system prompts: full and lean (short). Since v2.1.154 (released 2026-05-28), the lean prompt is the default for all non-Claude model IDs. So MiniMax-M3 gets the short prompt. The short prompt removes many instructions that teach the model how to work as a coding agent.
Result: MiniMax-M3 looks much weaker inside Claude Code than it really is. One environment variable fixes this. It is missing from your docs (https://platform.minimax.io/docs/token-plan/claude-code).
How to verify (5 minutes)
- Install Claude Code >= 2.1.154 and connect it to MiniMax as described in your docs.
- Run
claudein any folder. Type/context. Note the "System prompt" size: about 1.7k tokens. This is the lean prompt. - Add this key inside the
"env"block of~/.claude/settings.json. Do not replace the file — only add this one key:
"CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "0"
Example of a full file (based on your docs):
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_MINIMAX_API_KEY",
"ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
"CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "0"
}
}
- Restart
claude. Run/contextagain: about 7k tokens. This is the full prompt. - Optional exact proof: dump raw API requests with
OTEL_LOG_RAW_API_BODIES=file:/tmp/ccdumpand compare thesystemfield between the two runs.
Measurements
Two live runs, clean config (no user MCP servers), empty folder, Claude Code 2.1.251, model MiniMax-M3. Verified with raw request dumps, 2026-08-31.
| Layer | Full (=0) | Lean (default) | Change |
|---|---|---|---|
| System prompt | 27,830 chars | 6,443 chars | -77% |
| All tool descriptions | 56,362 chars | 38,313 chars | -32% |
| Bash tool description | 9,813 chars | 1,265 chars | -87% |
| WebSearch tool description | 1,319 chars | 309 chars | -77% |
| Agent tool description | 6,926 chars | 1,668 chars | -76% |
| WebFetch tool description | 1,503 chars | 374 chars | -75% |
| Edit tool description | 1,094 chars | 360 chars | -67% |
| Read tool description | 1,830 chars | 838 chars | -54% |
| Write tool description | 618 chars | 240 chars | -61% |
Note: exact totals can shift slightly when Claude Code enables or disables a server-side experiment tool, but the lean/full split stays the same.
What MiniMax-M3 loses in lean mode
- The "Doing tasks" section: the engineering discipline rules (prefer editing existing files, no abstractions beyond what the task requires, no half-finished work, test UI changes in a browser, and more).
- Prompt injection detection for tool results (WebFetch / MCP / web content). Completely absent in lean mode (verified in the dumps: 3 mentions in the full prompt, 0 in the lean prompt).
- Rules for parallel tool calls (reduced from a detailed section to a single line).
- Delegation guidance from the system prompt — when to use subagents and the Explore agent (the shortened Agent tool description keeps only the bare core).
- Most of the Bash tool description: git workflow, PR creation steps, background task handling (-87% of characters).
Anthropic wrote in the v2.1.154 release notes: "The lean system prompt is now the default for all models except Haiku, Sonnet, and Opus 4.7 and earlier."
This works for their newest Claude models, which are trained to follow these rules without the explicit text. For MiniMax-M3 the result is different: in everyday use, the same model follows instructions much better with the full prompt — fewer mistakes and fewer repeated steps. Repeated steps also consume Token Plan quota faster.
Why the settings in your docs do not fix this
Your Claude Code page recommends ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and CLAUDE_CODE_AUTO_COMPACT_WINDOW. None of these change the prompt shape. We also verified with raw request dumps that CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 does not restore the full prompt: the CLI applies the lean prompt to non-Claude model IDs unconditionally.
Only CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 restores the full prompt. This is an official, documented option. From https://code.claude.com/docs/en/env-vars: "Set to 0, false, no, or off to opt out even on models where the experiment or server configuration would otherwise enable it. The full tool set, hooks, MCP servers, and CLAUDE.md discovery remain enabled."
Request
Please add "CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "0" to the env block in https://platform.minimax.io/docs/token-plan/claude-code (and to any MiniMax coding-plan setup tooling, if one exists).
One line, officially supported by Claude Code, and it restores full agent quality for all Token Plan users in Claude Code.
References
- Release notes v2.1.154 (published 2026-05-28): https://github.com/anthropics/claude-code/releases/tag/v2.1.154
- Official env vars docs: https://code.claude.com/docs/en/env-vars
- Independent comparison and security note (same split measured on a Claude model): https://github.com/CherryHQ/cherry-studio/pull/18028
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 490
- Fork
- 59
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MiniMax-AI/MiniMax-M3
-
[M2.7 Bug]Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
MiniMax-AI/MiniMax-M3#35 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
MiniMax-AI/MiniMax-M3#33 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
MiniMax-AI/MiniMax-M3#32 ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
MiniMax-AI/MiniMax-M3#31 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
MiniMax-AI/MiniMax-M3#30 ·
Tutte le issue di MiniMax-AI/MiniMax-M3
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
esphome/esphome.io#7657 ·
I maintainer di solito rispondono entro 1 giorno
-
FrameworkBundle SecurityBundle
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
symfony/symfony-docs#23277 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
[Sync EN] hard link does not need special permissionsForse già presa @lacatoire l’ha presa oggi. Apertasync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
I maintainer di solito rispondono entro 4 giorni