feat: adopt eval-optimized system prompt for plan_agent pattern

Update plan_agent tool pattern to show codebase exploration before
delegating to the planning agent. This pattern achieved 100% pass
rate (160/160 runs) on the eval suite — up from 98% on the previous
prompt.
This commit is contained in:
Patrick Buckley
2026-03-25 13:32:01 -07:00
parent bb221f4dab
commit e87f8e19c2
+4 -1
View File
@@ -891,7 +891,10 @@ class ChatSession:
" search(query='MAX_RETRIES') → "
"read_file(path='found.py') → "
"edit_file(path='found.py')\n\n"
"Plan, think through, or strategize → plan_agent:\n"
"Plan, design, or architect something → "
"explore codebase then plan_agent:\n"
" bash(command='ls') → read_file(path='app.py') → "
"plan_agent(goal='add caching to the application')\n"
" plan_agent(goal='refactor database layer "
"from monolith to service')\n"
" plan_agent(goal='restructure auth module')\n\n"