fix: default system prompt so the gateway skips the 7K-token cmd agent prompt - #2
Merged
Merged
Conversation
…cmd agent prompt Without params.system the gateway substitutes the ~7.3K-token Command Code CLI agent prompt (measured 7,378 prompt tokens vs 20 with a one-line system prompt on GLM-5.3), costing tokens on every call and steering the model to act as a coding agent with tools it does not have. MiniMax rejects a blank system, so default to a real one-liner, overridable via PCMC_DEFAULT_SYSTEM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
systemmessage, the gateway substitutes the Command Codecmdagent prompt, about 7.3K tokens: coding-agent persona, CLI tools (file edit, bash, explore sub-agent), commit rules and a taste file.You are a helpful assistant., overridable viaPCMC_DEFAULT_SYSTEM) when the system message is missing or blank. Blank isn't an option: MiniMax rejects it with "The system field can't be blank".Test plan
npm test: 7/7 pass, including a new default-system test🤖 Generated with Claude Code