Skip to content

fix: tone down over-proactiveness in the default system prompt - #3028

Merged
7Sageer merged 3 commits into
mainfrom
fix/system-prompt-over-proactiveness
Aug 18, 2026
Merged

7Sageer merged 3 commits into
mainfrom
fix/system-prompt-over-proactiveness

Conversation

@7Sageer

@7Sageer 7Sageer commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

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-core and agent-core-v2):

  • Opening line no longer frames the goal as "taking action — making real changes on the user's system".
  • Removed the "when a request could be interpreted as either a question to answer or a task to complete, treat it as a task" rule and its methodName example.
  • Removed the "For simple questions/greetings ... default to taking action with tools" paragraph; the fact-checking rule in Ultimate Reminders already covers its legitimate part.
  • Removed the duplicated "you MUST use the tools ... to make actual changes — do not just describe the solution in text" sentence; the use-tools-for-file-changes rule survives once in Ultimate Reminders.
  • Removed the "Default to making progress, not to asking" bullet.

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

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • Tests: not applicable — deletion-only prompt wording change; existing prompt/profile suites pass (69 + 269 tests).
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

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.
@changeset-bot

changeset-bot Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8a6841e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@8a6841e
npx https://pkg.pr.new/@moonshot-ai/kimi-code@8a6841e

commit: 8a6841e

@7Hanrui

7Hanrui commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@7Sageer
7Sageer merged commit 40e1784 into main Aug 18, 2026
14 of 15 checks passed
@7Sageer
7Sageer deleted the fix/system-prompt-over-proactiveness branch August 18, 2026 06:47
7Sageer added a commit that referenced this pull request Aug 18, 2026
…#3030)

#3028 removed the 'treat ambiguous requests as tasks' rule and its
'locate the method in the code' example from the default system prompt.
The profile test pinned that example verbatim, so it now fails on main.
The removal was intentional; update the test to the new contract.
mbuckaway added a commit to mbuckaway/kimi-code that referenced this pull request Sep 11, 2026
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.
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.

2 participants