authorgravatar for n.anisimov.23@gmail.comNick Anisimov <n.anisimov.23@gmail.com> 2026-08-13 12:31:53+04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-13 10:31:53+02:00
logdf19f6cfe3046dbbeb4073a3aac4c12f991b8fc7
tree377c7d40d1c25b46b7d408d7ad69bec8d9d687ec
parent6bc6cb6be4ebecd5bd7a3b7b88f07cb61815ded5
signature Signed by PGP key B5690EEEBB952194

fix(server): align Codex collaboration prompts (#6432)


1 files changed, 10 insertions(+), 2 deletions(-)

apps/server/src/provider/CodexDeveloperInstructions.ts+10-2
......@@ -120,7 +120,7 @@ Example:
120120plan content
121121</proposed_plan>
122122
123plan content should be human and agent digestible. The final plan must be plan-only and include:
123plan content should be human and agent digestible. The final plan must be plan-only, concise by default, and include:
124124
125125* A clear title
126126* A brief summary section
......@@ -128,9 +128,17 @@ plan content should be human and agent digestible. The final plan must be plan-o
128128* Test cases and scenarios
129129* Explicit assumptions and defaults chosen where needed
130130
131When possible, prefer a compact structure with 3-5 short sections, usually: Summary, Key Changes or Implementation Changes, Test Plan, and Assumptions. Do not include a separate Scope section unless scope boundaries are genuinely important to avoid mistakes.
132
133Prefer grouped implementation bullets by subsystem or behavior over file-by-file inventories. Mention files only when needed to disambiguate a non-obvious change, and avoid naming more than 3 paths unless extra specificity is necessary to prevent mistakes. Prefer behavior-level descriptions over symbol-by-symbol removal lists. For v1 feature-addition plans, do not invent detailed schema, validation, precedence, fallback, or wire-shape policy unless the request establishes it or it is needed to prevent a concrete implementation mistake; prefer the intended capability and minimum interface/behavior changes.
134
135Keep bullets short and avoid explanatory sub-bullets unless they are needed to prevent ambiguity. Prefer the minimum detail needed for implementation safety, not exhaustive coverage. Within each section, compress related changes into a few high-signal bullets and omit branch-by-branch logic, repeated invariants, and long lists of unaffected behavior unless they are necessary to prevent a likely implementation mistake. Avoid repeated repo facts and irrelevant edge-case or rollout detail. For straightforward refactors, keep the plan to a compact summary, key edits, tests, and assumptions. If the user asks for more detail, then expand.
136
131137Do not ask "should I proceed?" in the final output. The user can easily switch out of Plan mode and request implementation if you have included a \`<proposed_plan>\` block in your response. Alternatively, they can decide to stay in Plan mode and continue refining the plan.
132138
133139Only produce at most one \`<proposed_plan>\` block per turn, and only when you are presenting a complete spec.
140
141If the user stays in Plan mode and asks for revisions after a prior \`<proposed_plan>\`, any new \`<proposed_plan>\` must be a complete replacement. If the user indicates that the prior plan is not acceptable but does not provide enough information to produce a complete replacement, address the concern and continue planning without producing a \`<proposed_plan>\` block. If the follow-up neither requires changes nor calls the plan into question (e.g. clarifying question), answer it before the block, then reproduce the prior \`<proposed_plan>\` unchanged.
134142${T3_CODE_BROWSER_TOOL_INSTRUCTIONS}
135143</collaboration_mode>`;
136144
......@@ -142,7 +150,7 @@ Your active mode changes only when new developer instructions with a different \
142150
143151## request_user_input availability
144152
145The \`request_user_input\` tool is unavailable in Default mode. If you call it while in Default mode, it will return an error.
153Use the \`request_user_input\` tool only when it is listed in the available tools for this turn.
146154
147155In Default mode, strongly prefer making reasonable assumptions and executing the user's request rather than stopping to ask questions. If you absolutely must ask a question because the answer cannot be discovered from local context and a reasonable assumption would be risky, ask the user directly with a concise plain-text question. Never write a multiple choice question as a textual assistant message.
148156${T3_CODE_BROWSER_TOOL_INSTRUCTIONS}