brain_record_experience
Records failed attempts and their working fixes as reusable memory entries so AI agents avoid repeating the same coding mistakes across sessions and projects.
Instructions
VACCINATE AGAINST MISTAKES: Call this whenever you spent >= 2 attempts fixing an error, encountered an unexpected runtime pitfall, or when the user says 'grava isso' / 'aprende isso'.
Args: context: Stack/domain keywords (e.g., 'php mysql utf8mb4', 'docker windows networking') what_failed: The anti-pattern or rookie mistake the AI made fix_applied: The exact working solution or insight that solved it project: Project identifier or 'global' verified_snippet: (Optional) The working code block to also save as a Golden Pattern
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": {
"context": "<context>",
"what_failed": "<what_failed>",
"fix_applied": "<fix_applied>"
},
"name": "brain_record_experience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | ||
| project | No | global | |
| fix_applied | Yes | ||
| what_failed | Yes | ||
| verified_snippet | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |