Skip to content

feat(prompt): route MiniMax models to the open-weight agentic prompt - #166

Merged
quickbeard merged 1 commit into
mainfrom
minimax-prompt
Aug 7, 2026
Merged

quickbeard merged 1 commit into
mainfrom
minimax-prompt

Conversation

@quickbeard

@quickbeard quickbeard commented Aug 6, 2026 •

Copy link
Copy Markdown
Owner

Issue for this PR

Closes #

Type of change

  • New feature

What does this PR do?

SystemPrompt.provider() selects a prompt by substring-matching the model id, and there was
no MiniMax case — so every MiniMax model fell through to PROMPT_DEFAULT. MiniMax is a
primary model for this fork's gateway, and default.txt is upstream's Claude-flavoured
prompt, so those sessions were running on the least suitable prompt available.

MiniMax now shares PROMPT_KIMI, which despite the filename contains nothing Kimi- or
Moonshot-specific (checked: zero mentions). It is upstream's prompt for open-weight agentic
models — it spells out that tools must be used rather than described, encourages parallel
tool calls, gives <system-reminder> authority, and matches the user's language. That is the
right profile for M3.

Sharing rather than adding a minimax.txt copy is deliberate: a fork-only duplicate of ~95
lines that upstream keeps improving would drift, with no upstream counterpart to sync against.
If upstream later adds its own MiniMax branch, ours is dropped in favour of theirs — recorded
in the system.ts row of DIVERGENCES.md.

Model ids vary in case across catalogs (MiniMax-M1, minimax/minimax-m2.5,
MiniMax/MiniMax-M3), so the match is case-insensitive like the trinity and kimi branches
next to it.

How did you verify your code works?

  • New assertion in test/session/system.test.ts: all three id spellings resolve to the same
    prompt as kimi-k2-thinking.
  • Updated test/session/brand.test.ts — the "routes support at the fork" case used MiniMax as
    its example of a model falling through to default.txt, which is exactly what this PR
    changes; it now uses an id that matches no branch, and MiniMax stays in the list that must
    introduce the fork by name.
  • bun run typecheck and both session test files pass (9 tests).

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

🤖 Generated with Claude Code

@quickbeard
quickbeard deleted the branch main August 7, 2026 09:20
@quickbeard quickbeard closed this Aug 7, 2026
Prompt selection matches on the model id and had no MiniMax case, so every
MiniMax model — a primary target for this fork's gateway — fell through to
PROMPT_DEFAULT, which is written for Claude.

PROMPT_KIMI carries nothing Kimi-specific: it is upstream's prompt for
open-weight agentic models, spelling out that tools must be used rather than
described, encouraging parallel tool calls, giving <system-reminder> authority,
and matching the user's language. Sharing it beats duplicating ~95 lines that
upstream will keep improving.

Model ids vary in case across catalogs (MiniMax-M1, minimax/minimax-m2.5,
MiniMax/MiniMax-M3), so the match is case-insensitive like the trinity and kimi
branches next to it.
@quickbeard quickbeard reopened this Aug 7, 2026
@quickbeard
quickbeard changed the base branch from rebrand-agent-identity to main August 7, 2026 09:27
@quickbeard
quickbeard merged commit 673fb97 into main Aug 7, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the minimax-prompt branch August 7, 2026 10:04
quickbeard added a commit that referenced this pull request Aug 7, 2026
* docs: link the MiniMax prompt entry to its fork and upstream PRs

The MiniMax changelog entry landed before its PR number existed. Add the
merged fork PR (#166) and the upstream submission
(anomalyco/opencode#41032), matching the retire-on-upstream-merge note the
dialog-paste entry already uses.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* minor changes

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant