Manage Long-Term Memory with Memory Graph Tools
mainContext+ includes a Retrieval-Augmented Generation (RAG) system via a memory graph. Agents should use these tools to build cumulative knowledge across sessions.
search_memory_graph: Use at the start of every task to retrieve prior context.upsert_memory_node: Use after completing work to persist learnings (concepts, files, symbols, or notes).create_relation: Use to create typed edges (e.g.,depends_on,implements) between nodes.add_interlinked_context: Bulk-add nodes with auto-similarity linking (cosine similarity $\ge 0.72$).retrieve_with_traversal: Start from a node and walk outward to return scored neighbors based on decay and depth.prune_stale_links: Periodically remove decayed edges and orphan nodes.