append_node
Captures a user correction, decision, or note as a raw episodic event in shared filesystem-backed agent memory for cross-session recall.
Instructions
Append a raw episodic event -- use when: the user corrects you, the user states a decision, note that, remember, log this, save this lesson. Writes AGENT_LEARNINGS.jsonl, not LESSONS.md; lessons come from the dream cycle. Put the user's own words in content. One precise event beats several vague ones.
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": {
"content": "<content>",
"source_harness": "<source_harness>",
"skill_action": "<skill_action>"
},
"name": "append_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pain | No | Pain score 0–10: how disruptive was this if not known? | |
| content | Yes | The learning content to store. | |
| importance | No | Importance score 0–10: how broadly applicable is this? | |
| skill_action | Yes | Clustering key describing the skill or action domain (e.g. "rust::async::tokio"). Lowercase `[a-z0-9_]` segments joined by `::` -- no dots, hyphens, or slashes. | |
| source_harness | Yes | The agent harness that produced this learning (e.g. "claude-code"). | |
| client_dedup_key | No | Optional idempotency key. Duplicate calls with the same key return the cached id without a second write. |