# MaxGraph Memory Protocol

> Persistent-memory discipline for AI agents: prime context at session start, write facts immediately, track open tasks and bugs, close sessions cleanly — nothing gets lost between sessions.

MaxGraph Memory Protocol is a free AI agent skill on Agensi by MaxGraph, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [MaxGraph](https://www.agensi.io/creators/maxgraph)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-14); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/maxgraph-memory-protocol
- Tags: ai-agents, llm-ops, mcp, knowledge-graph, persistence, context-management

## About this skill

**Your agent forgets everything between sessions. This skill fixes that.**

MaxGraph Memory Protocol is the operating discipline we run on our own agents every day. It turns a knowledge-graph memory server into reliable long-term memory: the agent always knows the project's decisions, open bugs and unfinished work — no matter how many sessions, context windows or compactions happened in between.

### What the agent learns

- **Session priming** — one call at session start loads a budgeted context block: project facts, owner decisions (verbatim), open bugs, open tasks, past session outcomes. No more re-explaining the project every morning.
- **Write immediately** — facts are saved the moment they appear, never batched to the end of a conversation that might get compacted or crash.
- **Atomic observations** — one fact per record, dated when it matters. Searchable, supersedable, never a wall of stale text.
- **Stale-fact hygiene** — outdated facts (old prices, reversed decisions) are superseded, not duplicated: the old line leaves search results but stays in the archive.
- **Open-loop tracking** — explicit `task` and `bug` statuses, so «what's left?» is a query, not a guess.
- **Heartbeat work-state** — after each stage, one dated fact records «done X → next Y». Context loss costs nothing.
- **Clean session close** — one call writes the day's summary and links everything the session touched.
- **Re-priming after compaction** — when the harness compresses the conversation, the agent re-reads the graph and continues exactly where it stopped.

### Why it works

Agents fail at memory in predictable ways: they batch writes to the end (and lose them), they duplicate entities, they can't tell stale facts from current ones. This protocol names each failure mode and gives the agent an exact, mechanical rule against it. It is model-agnostic and host-agnostic — any agent that can call the memory tools can run it.

### Requirements

A running [MaxGraph](https://github.com/RuMemory/maxgraph) server (open source, self-hosted, one Docker container, MCP + REST + dashboard) — or any compatible knowledge-graph memory backend. The protocol itself is tool-name-agnostic.

### Who it's for

Teams running agents across long-lived projects: the agent remembers architecture decisions, active bugs, deferred tasks and owner preferences — and picks up mid-sentence after a compaction, a crash, or a week away.

## Requires

- Git

## Known limitations

Requires a running MaxGraph MCP server. Project isolation relies on consistent slug naming. Context restoration is manual after compaction events.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MaxGraph Memory Protocol skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this protocol solve the issue of AI agents losing context between sessions?

Stateless agents lose context when sessions reset, but this protocol uses a MaxGraph knowledge-graph to store atomic facts and task statuses, allowing agents to "remember" previous decisions and bugs even after a crash or timeout.

### What AI agents or platforms are compatible with the maxgraph memory protocol?

This skill is compatible with any AI agent or platform that supports the Model Context Protocol (MCP) and has an active connection to a MaxGraph-compatible knowledge-graph server.

### How does this compare to just telling an agent to 'remember' things in a system prompt?

Unlike generic memory prompts that lead to data duplication, this skill enforces a strict schema for atomic facts and versioning, ensuring the agent only retrieves the most relevant, up-to-date information without bloating the context window.

### What exactly is included in the skill package upon purchase?

Your purchase includes the specific MCP tool configuration, the disciplined schema for entity/observation management, and the standardized workflow instructions (Initialize, Execute, Maintain, Conclude) for your agent.

### Can I use this protocol to manage multiple different projects simultaneously?

Yes, the protocol relies on 'project slugs' to isolate data, allowing you to manage multiple distinct projects or clients within the same MaxGraph server without cross-contamination of facts.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
