save_learning
Save permanent operational rules learned during coding sessions. These rules persist and auto-surface in search results to prevent AI agents from repeating mistakes.
Instructions
Save a permanent operational rule learned during a coding session. Unlike sessions (ephemeral), learnings persist forever and auto-surface in search_context results so AI agents don't repeat mistakes. Duplicate rules (same category + rule text) are updated in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Category: deployment, api, database, frontend, backend, devops, security, performance, testing, debugging, tooling, git, dependencies, architecture, data, infrastructure, mobile, other | |
| rule | Yes | The operational rule — concise, actionable (e.g., 'Always restart Flask after model changes') | |
| context | Yes | Full context of how this was discovered — the bug, the fix, the symptoms (e.g., 'Avatar save returned 200 but field missing from API response — stale to_dict() cache') | |
| project | No | Project this learning applies to (e.g., 'CROWLR.io'). Omit if it's a general rule. |