lesson_save
Store a lesson with a confidence score that decays over time. Use to record patterns or heuristics for AI to recall across sessions.
Instructions
Persist a new lesson learned during this session with an initial confidence score (default 0.7). Confidence decays over time when the lesson is not reinforced. Does not deduplicate — call lesson_recall first to check whether a similar lesson already exists. Use to record patterns, heuristics, or observations the AI should carry forward across sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags for categorization. Accepts an array of tag strings (preferred) or a single comma-separated string (legacy). | |
| author | No | Optional author name for team attribution. Defaults to the system username. | |
| content | Yes | The lesson text to store. | |
| context | Yes | Where this lesson applies, e.g. 'code review' or 'git workflow'. | |
| initial_confidence | No | Starting confidence score between 0 and 1. Defaults to 0.7. |