memorise
Saves or deletes code flows and adds, edits or retires notes, so they persist for later sessions and come back through recall. Use it to record how a feature flows or a decision the code does not state.
Instructions
Saves or deletes a flow, or adds and maintains a note. Kept for later sessions and returned by recall. FLOWS: one trigger to one outcome as ordered method steps. STEPS, one per line: 'path:Type.Member', indented 2 spaces under the step that calls it; the first line is the only trigger. After a step add ~event, ~http, ~ui, ~di or ~job for a link a direct call cannot show, and ' | label' for why it matters. Each new step must exist in the code now and each new link must be a call the code makes; otherwise nothing is saved and the reply lists the problems. action='save_feature_map': create with name, summary and steps. To change a flow, read it with recall and send its whole new steps with expectedVersion (the v shown); newName renames it. If the flow changed since you read it, nothing is saved and the reply shows the current flow to merge with. A new flow that starts at the same step as another is refused unless distinct says how it differs. action='delete_feature_map' with name: removes a flow for good (its notes are kept, detached). NOTES: one idea in plain words that the code does not say: why it is so, a gotcha, a convention, a decision, how to do something. Not a restatement of the code. Search first (recall list with a query) and confirm or edit an existing note instead of adding a duplicate. action='add_note' with note and kind; anchor: name (a flow) and step (one of its steps, as recall shows it) for a step note, name alone for a flow note, neither for a workspace note (optionally about='path' or 'path:Type.Member'). action='edit_note' with noteId and note (a new revision; the old one is kept). action='retire_note' with noteId. action='confirm_note' with noteId after you checked a note marked may be stale against the code and it still holds. You may edit, retire or confirm only notes you wrote; never the owner's or another author's. Text that looks like a secret is refused. WHEN TO SAVE A FLOW: after a change that adds, removes, renames or moves steps, or for a new trigger. An edit inside a step needs no save. RETURNS: what was saved (ids and versions), or the refusal with what to fix.
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": {
"workspace": "<workspace>",
"action": "<action>"
},
"name": "memorise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | add_note, edit_note: note (default), why, gotcha, convention, decision or howto | |
| name | No | The flow's name: lowercase letters, digits and '-' (at most 60 characters), after the trigger, e.g. 'memorise-save'. add_note: the flow the note is on; leave out for a workspace note | |
| note | No | add_note, edit_note: the note, one idea in plain words (at most 1200 characters) | |
| step | No | add_note: one step of the flow named by name, exactly as recall shows it ('path:Type.Member') | |
| about | No | add_note without name: what the workspace note is about, 'path' or 'path:Type.Member' | |
| guide | No | true: put the code guide first in the result. Use on your first code call, or when told it changed. | |
| steps | No | save: the steps, one per line, e.g. 'src/Orders/OrderService.cs:OrderService.Place | totals are computed here', indented under the step that calls them. At most 30 steps, 8 levels | |
| action | Yes | 'save_feature_map', 'delete_feature_map', 'add_note', 'edit_note', 'retire_note' or 'confirm_note' | |
| noteId | No | edit_note, retire_note, confirm_note: the note's id (the number after 'note #') | |
| newName | No | save, with expectedVersion: a new name for the flow | |
| summary | No | save: one or two sentences on what the flow does, from trigger to outcome (at most 300 characters). Required to create; left out when changing, the old one stays | |
| distinct | No | save, to create: how this flow differs from another that starts at the same step (at most 120 characters) | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) | |
| expectedVersion | No | save: the version (v) of the flow you read with recall. Leave out to create a new flow |