Feed errors back to the agent for self-correction
From Wikiprompt, the free prompt encyclopedia
Feed errors back to the agent for self-correction A technique to improve agent reliability by returning errors as feedback for self-correction instead of crashing.
Prompt ContentSave
π
Hand back the error. When a tool call fails, don't hard-crash. Feed the error back as the result: 'did you mean /src/api.ts?' Then let the agent fix itself on the next try. Increases task success by 15-30%.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with productivity. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
Talk
0 comments