Repository navigation
fix: tone down over-proactiveness in the default system prompt - #3028
Conversation
The default system prompt pushed the agent to act before discussing: ambiguous requests were explicitly resolved to tasks, the opening framed the primary goal as taking action, and 'default to making progress, not to asking' discouraged clarifying questions. Trim both copies (agent-core and agent-core-v2) by deletion only: the ambiguous-means-task rule and its example, the action-framed opening clause, the 'default to taking action with tools' paragraph, the duplicated must-use-tools sentence (kept once in Ultimate Reminders), and the 'default to making progress, not to asking' bullet. Operational guidance and the execution guards stay untouched.
|
Signed-off-by: 7Sageer <[email protected]>
commit: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a6841ee56
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| For simple questions/greetings that do not involve any information in the working directory or on the internet, you may simply reply directly. For anything else, default to taking action with tools. When the request could be interpreted as either a question to answer or a task to complete, treat it as a task. For instance, "change `methodName` to snake_case" is a task, not a question — locate the method in the code and edit it; do not just reply with `method_name`. | ||
|
|
||
| When handling the user's request, if it involves creating, modifying, or running code or files, you MUST use the appropriate tools available to you to make actual changes — do not just describe the solution in text. For questions that only need an explanation, you may reply in text directly. When calling tools, do not provide detailed explanations or chain-of-thought. For simple requests, call tools directly. For non-trivial or multi-step tasks, first emit one short user-visible sentence describing what you will do next, then call the tool(s). Keep that sentence to roughly 8–10 words, plain and concrete — for example, "Next, I'll patch the config and update the related tests." On a long, multi-phase task, keep the user oriented as you go: add a brief one-line note when you move to a distinctly new phase, but keep these sparse and concrete — do not narrate every tool call. | ||
| When calling tools, do not provide detailed explanations or chain-of-thought. For simple requests, call tools directly. For non-trivial or multi-step tasks, first emit one short user-visible sentence describing what you will do next, then call the tool(s). Keep that sentence to roughly 8–10 words, plain and concrete — for example, "Next, I'll patch the config and update the related tests." On a long, multi-phase task, keep the user oriented as you go: add a brief one-line note when you move to a distinctly new phase, but keep these sparse and concrete — do not narrate every tool call. |
There was a problem hiding this comment.
Restore the execution guard for explicit edit tasks
For unambiguous requests such as create src/foo.ts, this replacement now only explains how to behave if a tool is called; combined with deleting the two Ultimate Reminder bullets below, neither default prompt requires editing the filesystem or delivering the complete change. The model can therefore answer an explicit implementation request with a suggested snippet or placeholders instead of performing it, and the same regression is mirrored in packages/agent-core/src/profile/default/system.md; keep the ambiguity/clarification trim but restore the explicit-task tool-use and completeness guards.
Useful? React with 👍 / 👎.
| You are Kimi Code CLI, an interactive general AI agent running on a user's computer. | ||
|
|
||
| Your primary goal is to help users with software engineering tasks by taking action — use the tools available to you to make real changes on the user's system. You should also answer questions when asked. Always adhere strictly to the following system instructions and the user's requirements. | ||
| Your primary goal is to help users with software engineering tasks. You should also answer questions when asked. Always adhere strictly to the following system instructions and the user's requirements. |
There was a problem hiding this comment.
Add a CLI changeset for the prompt behavior change
This changes the shipped default behavior that CLI users perceive, but the commit contains only the two system-prompt files and no .changeset entry, so the release changelog will omit the fix. Add a patch changeset for @moonshot-ai/kimi-code as required for user-visible changes.
AGENTS.md reference: AGENTS.md:L85-L86
Useful? React with 👍 / 👎.
The 0.39.1 upstream sync stripped the proactiveness/action directives from both engines' system prompts (upstream MoonshotAI#3028) and made swarm mode per-session (upstream MoonshotAI#3433), which left the agent preferring sequential Agent subagent tasks over the parallel AgentSwarm tool even with swarm mode enabled, and the task path appeared to ignore coding standards. Restore the removed directives and add explicit swarm-preference and subagent-rules guidance to both system prompts, and add a default_swarm_mode config option (v1 + v2 engines + protocol) so new sessions can start in swarm mode.
Related Issue
No linked issue — the problem is explained below.
Problem
The default system prompt steers the agent toward acting before discussing. Any request that could be read as either a question or a task is explicitly resolved to "a task" (with an example that teaches editing instead of answering), the opening frames the primary goal as "taking action — making real changes on the user's system", and "Default to making progress, not to asking" discourages clarifying questions. In practice the agent can start implementing something the user only wanted to discuss.
What changed
Deletion-only trim of the default system prompt, applied identically to both copies (
agent-coreandagent-core-v2):methodNameexample.What stays: all operational guidance (tool routing, parallel calls, progress notes, minimal diffs) and the execution guards ("always use tools" for file changes, "deliver the complete change"). The prompt becomes neutral on the act-vs-discuss axis instead of pushing toward acting — in line with how codex and opencode write their prompts (neither has an ambiguous-means-task rule, and opencode explicitly instructs answering approach questions first).
No new tests: the change deletes prompt prose only; the existing prompt/profile suites pass (
agent-core: 69 tests,agent-core-v2: 269 tests).Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.