Browse Source

Tune session delegation prompts

Alvin Unreal 3 months ago
parent
commit
2f9ee30ed2
2 changed files with 4 additions and 4 deletions
  1. 3 3
      src/agents/orchestrator.ts
  2. 1 1
      src/config/constants.ts

+ 3 - 3
src/agents/orchestrator.ts

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

+ 1 - 1
src/config/constants.ts

@@ -94,7 +94,7 @@ export const DEFAULT_MAX_SUBAGENT_DEPTH = 3;
 
 // Workflow reminders
 export const PHASE_REMINDER_TEXT = `!IMPORTANT! Recall the workflow rules:
-Understand → choose the best parallelized path based on your capabilities and agents delegation rules → execute → verify.
+Understand → choose the best parallelized path based on your capabilities and agents delegation rules → recall session reuse rules → execute → verify.
 If delegating, launch the specialist in the same turn you mention it !END!`;
 
 // Tmux pane spawn delay (ms) — gives TmuxSessionManager time to create pane