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
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 |