Skip to content

Commit 2f9ee30

Browse files
committed
Tune session delegation prompts
1 parent 0591913 commit 2f9ee30

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/agents/orchestrator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ Balance: respect dependencies, avoid parallelizing what must be sequential.
186186
5. Adjust if needed
187187
188188
### Session Reuse
189-
- Reuse an available specialist session only for clear follow-up work on the same thread.
190-
- Prefer a fresh session for unrelated work, even with the same specialist.
189+
- Smartly reuse an available specialist session - constext reuse saves time and tokens
190+
- When too much unrelated, and really needed, start a fresh session with the specialist
191191
- If multiple remembered sessions fit, prefer the most recently used matching session.
192-
- If reuse is unclear, start a fresh session.
192+
- Prefer re-uses over creating new sessions all the time
193193
194194
### Auto-Continue
195195
When working through multi-step tasks, consider enabling auto-continue to avoid stopping between batches:

src/config/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const DEFAULT_MAX_SUBAGENT_DEPTH = 3;
9494

9595
// Workflow reminders
9696
export const PHASE_REMINDER_TEXT = `!IMPORTANT! Recall the workflow rules:
97-
Understand → choose the best parallelized path based on your capabilities and agents delegation rules → execute → verify.
97+
Understand → choose the best parallelized path based on your capabilities and agents delegation rules → recall session reuse rules → execute → verify.
9898
If delegating, launch the specialist in the same turn you mention it !END!`;
9999

100100
// Tmux pane spawn delay (ms) — gives TmuxSessionManager time to create pane

0 commit comments

Comments
 (0)