Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/tool/plugin/subagent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const backgroundResult = (sessionID: SessionSchema.ID) => ({
status: "running" as const,
output: [
`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.`,
"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.",
"DO NOT sleep, poll, proactively check on its progress, or duplicate this subagent's work.",
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
"To send it follow-ups or change its instructions while it runs, call subagent again with this sessionID.",
].join("\n"),
Expand Down Expand Up @@ -50,7 +50,7 @@ export const Output = Schema.Struct({
export const description = [
"Spawns an agent in a child session to work on the specified task.",
"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.",
"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.",
"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.",
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
"Pass the returned sessionID to continue that specific child conversation. A follow-up to a running child joins its current run.",
].join("\n")
Expand Down
2 changes: 1 addition & 1 deletion packages/tui/src/mini/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ function subagentLaunch(sessionID: string) {
return {
output: [
`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.`,
"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.",
"DO NOT sleep, poll, proactively check on its progress, or duplicate this subagent's work.",
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
"To send it follow-ups or change its instructions while it runs, call subagent again with this sessionID.",
].join("\n"),
Expand Down
Loading