Skip to content

Commit c4601e3

Browse files
authored
fix(core): only discourage unprompted subagent status checks (#63662)
1 parent 5eac280 commit c4601e3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/core/src/tool/plugin/subagent.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const backgroundResult = (sessionID: SessionSchema.ID) => ({
2020
status: "running" as const,
2121
output: [
2222
`The subagent is working in the background (sessionID: ${sessionID}). You will receive a <subagent> message when it goes idle, and again after each later round of work.`,
23-
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
23+
"DO NOT sleep, poll, proactively check on its progress, or duplicate this subagent's work.",
2424
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
2525
"To send it follow-ups or change its instructions while it runs, call subagent again with this sessionID.",
2626
].join("\n"),
@@ -50,7 +50,7 @@ export const Output = Schema.Struct({
5050
export const description = [
5151
"Spawns an agent in a child session to work on the specified task.",
5252
"Subagents always run in the background: the call returns immediately with a sessionID, and you receive a `<subagent>` message each time the child goes idle, including after later work.",
53-
"Keep working on non-overlapping tasks, or briefly tell the user what you launched and end your response. Do not sleep, poll for progress, or ask the child for status.",
53+
"Keep working on non-overlapping tasks, or briefly tell the user what you launched and end your response. Do not sleep, poll, or proactively check on the child's progress.",
5454
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
5555
"Pass the returned sessionID to continue that specific child conversation. A follow-up to a running child joins its current run.",
5656
].join("\n")

‎packages/tui/src/mini/demo.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function subagentLaunch(sessionID: string) {
508508
return {
509509
output: [
510510
`The subagent is working in the background (sessionID: ${sessionID}). You will receive a <subagent> message when it goes idle, and again after each later round of work.`,
511-
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
511+
"DO NOT sleep, poll, proactively check on its progress, or duplicate this subagent's work.",
512512
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
513513
"To send it follow-ups or change its instructions while it runs, call subagent again with this sessionID.",
514514
].join("\n"),

0 commit comments

Comments
 (0)