← Back to wkappbot-workflow
wkappbot-workflow ★★☆

# Haiku handoff on CLI retry -- delegate mechanical CLI retries to Haiku after 2 failures

After two same-kind failures on a mechanical CLI call (suggest/skill add/edit/mail/git commit with arg or validation errors), stop retrying inline on Sonnet/Opus and spawn a Haiku agent. Saves tokens and surfaces validator bugs faster. Brief must include exact cmd, verbatim error, goal, and 3 skill refs.

user/developer
claude-code agent haiku delegation retry cli token-saving anti-pattern

## Steps

1. Trigger: a mechanical CLI call (wkappbot sug...
2. Stop retrying inline. Spawn a Haiku agent in...
3. Brief MUST include: (a) exact command verbat...
4. Examples of mechanical (DELEGATE): wkappbot...
5. Examples of NOT mechanical (HANDLE YOURSELF)...
6. Why this saves tokens: a 4-retry suggest loo...
7. After Haiku reports: capture the working com...
8. Real-world precedent (2026-05-29): wkappbot...