Skip to content

feat: add repair_prompt for automatic prompt rewriting on Gate 2 failure#171

Merged
devonakelley merged 1 commit intomainfrom
feat/repair-prompt
Apr 28, 2026
Merged

feat: add repair_prompt for automatic prompt rewriting on Gate 2 failure#171
devonakelley merged 1 commit intomainfrom
feat/repair-prompt

Conversation

@devonakelley
Copy link
Copy Markdown
Contributor

Adds repair_prompt=True to Router. On Gate 2 quality fail, asks judge_model to rewrite the prompt and retries same model before swapping to next path. Falls back to model swap if repair also fails. Non-blocking — repair errors never kill the request.

…2 failure

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@devonakelley devonakelley merged commit 2e62f10 into main Apr 28, 2026
4 checks passed
@devonakelley devonakelley deleted the feat/repair-prompt branch April 28, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant