Skip to content

docs: drop legacy secondary-model content and unify subagent terminology - #2891

Merged
7Sageer merged 1 commit into
mainfrom
docs/subagent-model-pool-cleanup
Aug 13, 2026
Merged

docs: drop legacy secondary-model content and unify subagent terminology#2891
7Sageer merged 1 commit into
mainfrom
docs/subagent-model-pool-cleanup

Conversation

@7Sageer

@7Sageer 7Sageer commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue — the problem is explained below.

Problem

The [secondary_model] documentation taught two configuration systems at once: the current subagent model pool (default engine) and the legacy engine's "secondary-model recipe" (separate keys, patch fields, env overrides, a model_preference profile field). The legacy engine is deprecated, so the dual presentation — plus backward-compat notes for a legacy model key — is pure cognitive load for readers. The Chinese docs also translated the agent terms (子 Agent / 主 Agent) while the English docs use subagent / main agent, and the zh side had drifted into three competing renderings (子 Agent / 子代理).

What changed

Documentation only; no code or behavior changes.

  • Removed the legacy "secondary-model recipe" section, the KIMI_SECONDARY_MODEL / KIMI_SECONDARY_EFFORT env entries, and the model_preference agent-file field. Verified against the agent-core-v2 source that the default engine never reads them.
  • Removed the backward-compat note for a lone [secondary_model] model key. The code still reads it, so old configs keep working; the docs now only document the current pool scheme.
  • Reframed the secondary_model section around the subagent model pool instead of a singular "secondary model" concept.
  • Unified zh terminology: 子 Agent → subagent, 主 Agent → main agent (plus the stray 子代理), covering prose, headings, anchors, the sidebar label, and the docs term table; fixed one anchor link whose slug boundary shifted in the rename.
  • The zh changelog keeps the historical terms; only its anchor link was updated to the renamed heading.
  • Verified with a docs build and a read-only audit of the diff (internal identifiers, anchor integrity, markdown integrity) — clean.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (N/A — docs-only; validated with the VitePress build.)
  • Ran gen-changesets skill, or this PR needs no changeset. (No changeset: docs-only change.)
  • Ran gen-docs skill, or this PR needs no doc update. (This PR is the doc update.)

- Remove the legacy-engine secondary-model recipe section, the
  KIMI_SECONDARY_MODEL / KIMI_SECONDARY_EFFORT env entries, and the
  model_preference agent-file field: the default engine never reads
  them and the legacy engine is deprecated.
- Remove the backward-compat note for a lone [secondary_model] model
  key; the code still reads it, but the docs now only document the
  current pool scheme.
- Reframe the secondary_model section around the subagent model pool
  instead of a singular secondary model.
- Unify zh terminology: 子 Agent -> subagent, 主 Agent -> main agent,
  covering prose, headings, anchors, the sidebar label, and the
  docs/AGENTS.md term table.
@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ce13e15

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

@7Hanrui

7Hanrui commented Aug 13, 2026

Copy link
Copy Markdown

@codex review

@pkg-pr-new

pkg-pr-new Bot commented Aug 13, 2026

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

commit: ce13e15

@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: ce13e15f03

ℹ️ 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".

@@ -1,47 +1,47 @@
# Agent 与子 Agent
# Agent 与 subagent

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 Preserve stable docs labels

This changes the H1 of an existing docs page as part of the terminology cleanup, and the matching sidebar label was changed as well. The docs guide explicitly says not to change H1 titles or nav/sidebar labels, so this page title should stay stable and the terminology update should be limited to body text unless that docs rule is intentionally changed.

AGENTS.md reference: docs/AGENTS.md:L56-L56

Useful? React with 👍 / 👎.

@7Sageer
7Sageer merged commit c60e3e3 into main Aug 13, 2026
24 of 25 checks passed
@7Sageer
7Sageer deleted the docs/subagent-model-pool-cleanup branch August 13, 2026 11:57
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