Save a durable memory
ygg_rememberSave a single decision, lesson, or fix to a project's durable memory for recall in future sessions. Keeps knowledge persistent across AI coding sessions.
Instructions
Persist ONE atomic, reusable fact (a decision, lesson, fix, convention, or status) to a project's durable memory for future sessions. Call right after you decide something, learn a lesson, or fix a non-obvious bug; store one idea per call, phrased to stand alone. Near-duplicates are merged automatically and obvious secrets (API keys, tokens) are refused. Returns the saved memory id.
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": {
"project": "<project>",
"type": "<type>",
"content": "<content>"
},
"name": "ygg_remember"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Memory category that best fits the fact. | |
| solves | No | Optional id of a memory this one SOLVES (e.g. this fix resolves that open follow_up) — links them in the relation graph. | |
| source | No | Provenance tag for where this memory came from (default "ygg-mcp"). Usually leave as default. | ygg-mcp |
| content | Yes | The single durable fact — one atomic idea, phrased so it stays useful with no surrounding context. | |
| project | Yes | Project this fact belongs to — usually the git repo name, e.g. "checkout-api". | |
| confidence | No | Optional confidence 0.0–1.0; higher ranks the memory more strongly in recall. Defaults to the engine's standard for tool writes. | |
| supersedes | No | Optional id of a memory this one REPLACES — records a SUPERSEDES edge and archives the old memory (reversible). | |
| contradicts | No | Optional id of a memory this one CONTRADICTS — both stay active, the dispute is recorded for review. |