agy_discussion_memory
Replaces client-maintained working memory with a versioned, source-backed snapshot for a discussion, then checkpoints it into linked project history without a model call.
Instructions
Replace the client-maintained working memory with a versioned snapshot, not inferred consensus. No model call. Read first; expected version is 0 initially. Linked project discussions also checkpoint this memory into their persistent project. memory has facts/disagreements/next_steps lists of {text,sources:[message ids]}, and positions list of {participant,view,reason,sources}. Each source must be a successful message; each position needs that participant's own source. At most 8 rows/section and 4500 UTF-16 units total. Keep disagreements and reasons, never invent verification. Full snapshot and current plan enter later discussion prompts; initial judgments stay isolated. Pending/closed tasks reject edits.
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": {
"discussion_id": "<discussion_id>",
"memory": "<memory>",
"expected_memory_version": "<expected_memory_version>",
"reason": "<reason>"
},
"name": "agy_discussion_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory | Yes | ||
| reason | Yes | ||
| discussion_id | Yes | ||
| expected_memory_version | Yes |