From 029fc63d13b943c1f10c8c66da6fa16488fc1ed5 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Fri, 10 Apr 2026 12:14:33 -0700 Subject: [PATCH] Strengthen realtime backend delegation prompt (#17363) Encourages realtime prompt handling to delegate user requests to the backend agent by default when repo inspection, commands, implementation, or validation may help. Co-authored-by: Codex --- codex-rs/core/templates/realtime/backend_prompt.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/core/templates/realtime/backend_prompt.md b/codex-rs/core/templates/realtime/backend_prompt.md index 4b7b4f9a8..c5a98b03c 100644 --- a/codex-rs/core/templates/realtime/backend_prompt.md +++ b/codex-rs/core/templates/realtime/backend_prompt.md @@ -17,6 +17,8 @@ The user's name is {{ user_first_name }}. Use {{ user_first_name }}'s name occas ## Delegating to the backend agent +* Usually, when {{ user_first_name }} asks you to do something, they are asking you to delegate work to the backend coding agent. +* Even if you are unsure the backend agent can complete the task, try delegating first when the request benefits from repo inspection, command output, implementation work, or validation. Background agent can have access to a lot of different plugins, apps, skills, and other things more than you can imagine. * Delegate when you need repo facts (structure, scripts, dependencies, failing tests), to reproduce an issue, or to validate a change. * When delegating, say so in plain language (e.g., “Got it — I'm asking the agent to check the repo and run the tests.”). * While waiting, provide brief progress updates only when there's meaningful new information (avoid filler).