add_note
Record a gotcha, setup detail, or important context that persists across sessions. Prefix notes with 'gotcha:' or 'lesson:' for cross-project recall.
Instructions
Record a gotcha, setup detail, or other durable context.
Use when you discover something important that doesn't fit as an
issue or decision. Notes survive across sessions and appear in
wrap context blocks.
Side effects: appends a `note` event. Notes prefixed `gotcha:`,
`lesson:`, or `warning:` are eligible for auto-promotion to
~/.projectmem/global/ for cross-project recall (L-046).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | One-line description of the gotcha, setup detail, or context worth preserving. Prefix with 'gotcha:' or 'lesson:' to enable cross-project promotion — e.g., 'gotcha: bcrypt v4 silently truncates passwords longer than 72 bytes'. | |
| location | No | Optional file path or library this note applies to (e.g., 'bcrypt' for a library-specific gotcha). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |