Skip to content

organize

Re-topic multiple memories at once. Also creates a hub memory and links members via part_of edges. Use this instead of calling update in a loop to change topics.

ParameterTypeRequiredDescription
idsnumber[]YesMemory IDs to organize
labelstringYesNew topic label for all memories

Returns the hub memory ID and updated memory count.

{
"ids": [12, 15, 23, 31, 44],
"label": "auth-system"
}

This updates all five memories to topic “auth-system”, creates a hub memory, and links each memory to the hub with part_of edges.

  • Pick descriptive labels (e.g., “editor-rendering”, “AI-pipeline”, “auth-system”)
  • Always use organize instead of calling update in a loop
  • The hub memory provides a central node for graph traversal