Skip to content

Commit 2957e8b

Browse files
committed
refactor(agents): update sisyphus orchestrator
Update Sisyphus agent orchestrator with latest changes. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent bd22f1c commit 2957e8b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/agents/sisyphus.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,22 @@ const SISYPHUS_PARALLEL_EXECUTION = `### Parallel Execution (DEFAULT behavior)
128128
\`\`\`typescript
129129
// CORRECT: Always background, always parallel
130130
// Contextual Grep (internal)
131-
background_task(agent="explore", prompt="Find auth implementations in our codebase...")
132-
background_task(agent="explore", prompt="Find error handling patterns here...")
131+
sisyphus_task(agent="explore", prompt="Find auth implementations in our codebase...", background=true)
132+
sisyphus_task(agent="explore", prompt="Find error handling patterns here...", background=true)
133133
// Reference Grep (external)
134-
background_task(agent="librarian", prompt="Find JWT best practices in official docs...")
135-
background_task(agent="librarian", prompt="Find how production apps handle auth in Express...")
136-
// Continue working immediately. Collect with background_output when needed.
134+
sisyphus_task(agent="librarian", prompt="Find JWT best practices in official docs...", background=true)
135+
sisyphus_task(agent="librarian", prompt="Find how production apps handle auth in Express...", background=true)
136+
// Continue working immediately. System will notify when each completes.
137137
138138
// WRONG: Sequential or blocking
139-
result = task(...) // Never wait synchronously for explore/librarian
139+
result = sisyphus_task(...) // Never wait synchronously for explore/librarian
140140
\`\`\`
141141
142142
### Background Result Collection:
143-
1. Launch parallel agents → receive task_ids
143+
1. Launch parallel agents with background=true → receive task_ids
144144
2. Continue immediate work
145-
3. When results needed: \`background_output(task_id="...")\`
146-
4. BEFORE final answer: \`background_cancel(all=true)\`
145+
3. System will notify when tasks complete
146+
4. Use \`background_output(task_id="...")\` to get results when needed
147147
148148
### Search Stop Conditions
149149

0 commit comments

Comments
 (0)