You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2026. It is now read-only.
Repository navigation
Commit cf58cad
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(server): include runtime model and effort in Codex developer instructions (pingdotgg#3948)
@@ -145,3 +147,26 @@ The \`request_user_input\` tool is unavailable in Default mode. If you call it w
145
147
In 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.
146
148
${T3_CODE_BROWSER_TOOL_INSTRUCTIONS}
147
149
</collaboration_mode>`;
150
+
151
+
exportinterfaceCodexRuntimeInfo{
152
+
readonlymodel: string;
153
+
readonlyreasoningEffort: string;
154
+
}
155
+
156
+
// Values come from trusted config, but keep the block single-line regardless.
157
+
functiontoSingleLine(value: string): string{
158
+
returnvalue.replaceAll(/\s+/g," ").trim();
159
+
}
160
+
161
+
exportfunctionbuildCodexDeveloperInstructions(
162
+
interactionMode: ProviderInteractionMode,
163
+
runtime: CodexRuntimeInfo,
164
+
): string{
165
+
constbase=
166
+
interactionMode==="plan"
167
+
? CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS
168
+
: CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS;
169
+
return`${base}
170
+
171
+
<runtime_info>In case you're asked: you are running in T3 Code through the Codex harness, as ${toSingleLine(runtime.model)} with ${toSingleLine(runtime.reasoningEffort)} reasoning effort. No need to mention this otherwise.</runtime_info>`;
0 commit comments