log_mistake_autopsy
Record coding mistakes and their fixes into agent memory to prevent repeating the same error. Define root cause and prevention rule to automatically avoid future occurrences.
Instructions
Logs a bug, mistake, or trap encountered in code (and how it was fixed) into agent memory so the agent never repeats the same mistake.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mistake_summary": "<mistake_summary>",
"prevention_rule": "<prevention_rule>"
},
"name": "log_mistake_autopsy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root_cause | No | Root cause of the mistake | |
| mistake_summary | Yes | Summary of the mistake or trap encountered | |
| prevention_rule | Yes | Rule or check to run in the future to prevent recurrence |