Skip to content

Commit 5156344

Browse files
fix(server): keep the background-agent rule inside the current context budget
Trim the subagent bullet so the new sentence costs no bytes: drop "or `delegate_task` by name", tighten "a model it offers, no settings beyond yours, and finishes in this turn", "on another provider's model", and "only if asked". agentContextBudget.json is back to main's values. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 0984ed0 commit 5156344

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"claudeSystemAppendBytes": 5174,
3-
"codexAdditionalContextBytes": 6904,
2+
"claudeSystemAppendBytes": 5135,
3+
"codexAdditionalContextBytes": 6865,
44
"mcpToolListJsonBytes": 46007
55
}

‎packages/provider-core/src/server/orchestrationInstructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const T3_CODE_ORCHESTRATION_SECTIONS: ReadonlyArray<string> = [
66
77
Ordinary coding tasks need no T3 tools.
88
9-
- Subagents: use your native tool when the child uses your provider, a model it offers, and no settings beyond yours, and it finishes in this turn (Claude \`Agent\` with \`run_in_background:false\`; Codex \`spawn_agent\`, then wait). Use \`delegate_task\` for another provider's model, user-asked settings, a separate checkout (\`isolation:"worktree"\`), or \`delegate_task\` by name. A native type running another provider's model counts too. Background agent: \`delegate_task\`, never a background \`Agent\`. Workflow only when asked.
9+
- Subagents: use your native tool when the child uses your provider, a model it offers, no settings beyond yours, and finishes in this turn (Claude \`Agent\` with \`run_in_background:false\`; Codex \`spawn_agent\`, then wait). Use \`delegate_task\` for another provider's model, user-asked settings, or a separate checkout (\`isolation:"worktree"\`). A native type on another provider's model counts too. Background agent: \`delegate_task\`, never a background \`Agent\`. Workflow only if asked.
1010
- Call \`orchestrator_capabilities\` once per thread, before the first \`delegate_task\`. Again only after an error or a user-named provider change. Settings go in \`target.options\`. Provider or model unavailable: say so. Never switch unasked, or fall back to native tools, Workflow, or CLIs. Never make a child's checkout in the shell or in \`task\`.
1111
- Every new delegate review or re-check is a new \`delegate_task\` (brief, findings, objections), never a \`t3_thread_send\`. Fix small review findings yourself; start no delegate for them. When told to proceed without a delegate, or to run fewer, \`task_cancel\` the extras. Start no replacement.
1212
- Follow a running delegate's \`next\`. Do not poll it (\`task_status\`, \`sleep\`, watchers, Monitor, ScheduleWakeup). Stop a delegate run you replace or no longer need with \`task_cancel\`, never \`t3_thread_interrupt\` on a \`childThreadId\`.

0 commit comments

Comments
 (0)