Commit b8c6ed5
committed
fix(orchestrator): Improve workflow guidance to encourage proper task completion
**Problem:**
Workflow guidance was too aggressive in pushing agents to respond immediately
after receiving tool results. Old guidance said "If the tool results contain
enough information → RESPOND to the user NOW" which caused agents (especially
Claude) to give quick summaries instead of properly analyzing data to complete
the user's specific request.
**Example Failure:**
User: "Fetch all comments and summarize issues/requests"
Claude: Fetches data ✅, sees "respond NOW", gives page summary ❌
Missing: Actual extraction and organization of issues/requests
**Solution:**
Improved guidance to balance loop prevention with task completion:
- Still prevents loops: "Do NOT repeat a tool call that already succeeded"
- Adds analysis step: "ANALYZE the data to address the user's specific request"
- Emphasizes completion: "Complete that task with the data you have"
- Clarifies expectations: "Don't just summarize - extract, organize, and present"
**Testing:**
1 parent f1a3d0b commit b8c6ed5
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | | - | |
1660 | | - | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1661 | 1662 | | |
1662 | 1663 | | |
1663 | 1664 | | |
1664 | 1665 | | |
1665 | 1666 | | |
1666 | | - | |
| 1667 | + | |
| 1668 | + | |
1667 | 1669 | | |
1668 | | - | |
| 1670 | + | |
1669 | 1671 | | |
1670 | 1672 | | |
1671 | 1673 | | |
| |||
0 commit comments