Skip to main content
These patterns help you write stronger prompts for MiniMax Token Plan models. Each subsection pairs a weak prompt with a stronger one and explains why the stronger version is easier for the model to follow.
Jump to the topic you need — General principles for everyday quality, Tool use for agentic workflows, Long context for large source packages.

General principles

Be clear and direct

The model responds best when the task, constraints, and desired output are explicit. Tell it what to build, what to prioritize, and what a good answer should look like. Golden rule: Show your prompt to a colleague who has no context on the task. If they would be confused, the model will be too.
Less effective:
More effective:

Add context to improve performance

When you explain why a constraint matters, the model can choose better tradeoffs. Context is especially valuable for formatting, safety, accessibility, and workflow constraints.
Less effective:
More effective:
Add intent whenever the model could satisfy the literal instruction in a way that misses the real use case.

Use examples effectively

A few well-crafted examples (few-shot or multishot prompting) usually beat abstract style instructions. When adding examples, make them:
  • Relevant: mirror your actual use case.
  • Diverse: cover edge cases and at least one ambiguous input.
  • Concrete: show the exact output style, not just the topic.
Less effective:
More effective:
For classification, structured extraction, or edge-case handling, give 3 to 5 diverse examples instead of one.
Less effective:
More effective:
Include 3–5 diverse examples for hard pattern-matching tasks. Repeating similar examples wastes tokens without teaching the model anything new.

Use prompt templates

For repeated tasks, turn the prompt into a reusable template with named variables. This makes it easier to test across many inputs, compare versions, and keep behavior stable.
Less effective:
More effective:
Variables make the task, inputs, and guardrails visible, which helps when you debug regressions in production prompts.

Match the output language

When the input mixes languages or you need a specific output language, say so explicitly — for example, “Reply in Chinese even if the source is in English.” Without this, the model tends to follow the dominant input language.

Output and formatting

Structure prompts with clear sections

When your prompt mixes instructions, source material, examples, constraints, and output requirements, label each section so the model can tell them apart. Bold headers or labels with a trailing colon work better than running text.
Less effective:
More effective:
Use short, descriptive labels — Task, Context, Source, Constraints, Output format. A bold header or trailing colon is enough to mark each section. Keep the structure flat; deep nesting hurts readability.

Set role, format, and length

Role instructions work best when they define expertise, scope, and decision criteria. Output instructions work best when they specify sections, fields, and length limits that are easy to verify.
Less effective:
More effective:
Prefer concrete output contracts — section names, table columns, bullet limits, scope boundaries. Avoid vague asks like “be detailed” or “make it short” when the output must fit a downstream workflow.

Long context

Token Plan models support long context windows for both input and output. Long context works best when source material is clearly delimited, indexed, and followed by a specific task.

Place the task after the source

For long inputs, write your question or task after the source documents, not before. The model is more likely to keep the task in focus when it is closest to its own response.
Of all long-context techniques, placing the task at the end of the prompt has the largest single impact on answer quality.

Index and delimit source material

Less effective:
More effective:
For very large inputs, ask the model to quote or summarize the relevant parts of each document before answering. Grounding in quotes cuts noise and makes the final answer easier to verify.

Tool use

Token Plan models support tool calling. Strong tool-use prompts define when tools should be used, when they should not be, and how tool results should be combined into the final answer.

Tool definitions

Define each tool with a clear name, purpose, inputs, return shape, and failure behavior. The model should understand the tool contract before it decides to call the tool.
Less effective:
More effective:

Parallel tool calls

Tell the model to parallelize independent tool calls. Keep calls sequential only when one result determines the next query or action.
Less effective:
More effective:
Use parallel calls for independent read-only lookups. Use sequential calls for workflows like “find the customer, then update that customer’s record.”

Avoid overeagerness

In agentic workflows, set clear stopping rules. The model should use tools when they materially improve the answer, not just to appear busy.
Less effective:
More effective:

Thinking and reasoning

Control reasoning depth

Ask for deeper analysis when the task involves planning, debugging, tradeoffs, or long-horizon execution. Ask for a direct answer when the task is extraction, rewriting, or formatting.
Less effective:
More effective:
For simple requests, be explicit that no deep analysis is needed:

Reduce hallucinations

For tasks where the model might invent facts — citations, API references, version-specific behavior, customer data — give it explicit permission to refuse and provide reference material it can quote.
Less effective:
More effective:
Three patterns reduce hallucinations:
  • Permission to refuse — explicitly tell the model what to say when it does not know.
  • Reference grounding — require the model to quote or cite the source it used.
  • Boundaries before generation — state the allowed sources, time range, or product version before the task, not after.

Agentic and long-task workflows

For long-running tasks, give the model a small number of active goals at a time. This helps it maintain state, track decisions, and avoid juggling too many partially related tasks in parallel.

Single-window state tracking

The model can maintain strong task state inside one long context window. Keep the working plan, current status, and open questions visible in the prompt or project notes.
In tools that support context compression (such as Claude Code), keep system prompts concise. The model may terminate tasks early when approaching context capacity thresholds.

Multi-window workflow

When a task naturally breaks into phases, split it across windows.
1

Phased processing

Use the first window to set up the framework, tests, and scripts. Use the next window to iterate through the remaining tasks.
2

Structured testing

Ask the model to create tests.py or tests.json to track test cases during long iterations.
3

Initialization scripts

Create init.sh to start servers and run tests, avoiding repeated setup in new windows.
4

Restart vs compression

Use compression for one continuous task. Start a fresh window for a new task or a major change in direction.
5

Maximize context usage

Ask the model to finish the current part thoroughly before moving on.
Recommended system prompt for long tasks:

Evaluate and iterate

Treat important prompts like product configuration. Keep a small evaluation set, compare prompt versions, and record what changed.
Less effective:
More effective:
This workflow helps you improve prompts without accidentally optimizing for a single impressive example.