memory
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sam — persistent memory for coding agents
Every coding agent has the same problem: it forgets.
Context compaction silently destroys hours of accumulated understanding. Every new session starts from zero. Decisions you made yesterday? Gone. Work from your laptop? Your desktop agent has no idea.
sam fixes this. It watches your sessions, builds structured memory, and gives your agent searchable access to everything via MCP. When your agent starts a new conversation, it already knows what you've been working on.
Setup takes 60 seconds. It runs in the background. You never think about it.
Quick Start
uv tool install synix-agent-mesh
sam setup
sam serveThat's it. sam setup detects your coding agents, configures MCP, and injects behavioral instructions so your agent proactively uses memory — no manual JSON editing, no CLAUDE.md maintenance.
Verify
sam doctorChecks project health, sources, build state, search index, MCP connectivity, and LLM access. Reports issues with fix commands.
Related MCP server: codemem
What You Get
After setup, your agent automatically:
Remembers past conversations. "We discussed the auth refactor last week" becomes something your agent can actually recall, not something you have to re-explain.
Knows your active projects. Work status, blockers, recent decisions — synthesized from your sessions, updated with every build.
Searches across everything. Keyword, semantic, or hybrid search across all your past conversations. Every result links back to the original session.
Works across machines. Your laptop and desktop share one memory. Work on machine A, pick up on machine B.
Before sam vs. after sam
Without | With |
"Let me re-explain what we decided yesterday" | Agent recalls the decision and its rationale |
Context compaction silently destroys hours of work | Every conversation is indexed and searchable |
Laptop work invisible to desktop agent | Shared memory across all machines |
Manual CLAUDE.md maintenance | Automatic context generation and behavioral integration |
Generic agent, every session | Agent that knows your projects, preferences, patterns |
Works With
Agent | Auto-Setup | Transport | Behavioral Integration |
Claude Code |
| streamable-http | Appends to |
Cursor |
| http | Creates |
Windsurf |
| streamable-http | Appends to |
Roo Code |
| streamable-http | Appends to |
VS Code + Copilot | Manual | http | — |
sam setup does two things for each detected agent:
MCP configuration — adds the
memoryserver to the agent's MCP configBehavioral integration — injects instructions that tell the agent to proactively search memory at session start
Both are idempotent — safe to run multiple times. Never overwrites existing content.
Add this to your agent's MCP config:
{
"mcpServers": {
"memory": {
"type": "streamable-http",
"url": "http://localhost:8200/mcp"
}
}
}Use "type": "http" for Cursor and VS Code, "type": "sse" for Cline.
Agent Installation Guide
If you're an AI agent helping a user set up sam, follow these steps.
Prerequisites
Python 3.11+ (
python3 --version)uvinstalled (which uv— install viacurl -LsSf https://astral.sh/uv/install.sh | sh)
Steps
Install sam:
uv tool install synix-agent-meshRun setup (detects agents, configures MCP + behavioral rules):
sam setupThis is safe to run — never overwrites existing configuration. Only appends new entries. Use
--dry-runfirst if uncertain.Start the memory server:
sam serveRuns in the foreground. For background operation, set up a systemd user service (see below).
Verify:
sam doctor
Autonomy classification
Step | Level | Reversible | Notes |
| Safe — proceed | Yes ( | Standard package install |
| Safe — proceed | Read-only | Shows what would be configured |
| Confirm first time | Yes (manual revert) | Writes to agent config files |
| Confirm | Yes (Ctrl+C) | Starts network services on :7433 and :8200 |
| Safe — proceed | Read-only | Inspection only |
Adding Sources
sam watches directories you configure. Claude Code sessions are enabled by default.
# Add personal notes
sam sources add notes ~/notes --patterns "**/*.md" --description "Personal notes"
# Add ChatGPT exports
sam sources add chatgpt ~/Downloads/chatgpt-exports --description "ChatGPT export files"
# List all sources
sam sources listOr edit agent-mesh.toml directly:
[sources.notes]
dir = "~/notes"
patterns = ["**/*.md"]
description = "Personal notes and documents"Multiple Machines
Run sam serve on your primary machine. Join from others:
# On each additional machine:
uv tool install synix-agent-mesh
sam setup --name agent-memory
# Copy the mesh token from your server's ~/.synix-mesh/agent-memory/synix-mesh.toml
sam join --server your-server:7433Sessions from every machine feed into one shared memory. Every machine pulls the latest build artifacts.
Point any agent at the server's MCP endpoint: http://your-server:8200/mcp
CLI Reference
Command | What it does |
| Detect agents, configure MCP + behavioral rules, initialize project |
| Health check — project, sources, build, search, MCP, LLM |
| Start mesh server (:7433), MCP server (:8200), session watcher |
| Join an existing mesh as a client node |
| Trigger a pipeline build locally |
| Search memory from the command line |
| Mesh health, connected members, build status |
| Show configured data sources |
| Add a new data source |
sam setup
Flag | Default | Effect |
| agent-memory | Mesh name |
| current dir | Project directory |
| — | Skip MCP + behavioral configuration |
| all detected | Configure only this agent |
|
| Custom MCP endpoint |
| — | Show what would be configured without writing |
sam doctor
Flag | Effect |
| Machine-readable JSON output |
| Run one category: project, sources, build, search, mcp, llm |
| Skip LLM connectivity test |
sam serve
Flag | Default | Effect |
| MCP on | Skip the MCP HTTP server |
| 8200 | Custom MCP server port |
sam search
Flag | Values | Default |
|
|
|
| 1–100 | 10 |
| release name |
|
MCP Tools
When sam serve is running, 20 tools are available to any connected agent:
Read tools (safe for autonomous use)
Tool | Description |
| Search memory — keyword, semantic, or hybrid |
| Retrieve a specific artifact by label |
| Get a projected document (context-doc, work-status-doc) |
| List artifacts in a pipeline layer |
| List all pipeline layers |
| List available releases |
| Show release metadata and stats |
| Trace provenance chain for any artifact |
| List artifact cross-references |
| Open a synix project by path |
| List configured sources |
Write tools (confirm on first use)
Tool | Description |
| Initialize a new synix project |
| Load a pipeline definition |
| Trigger a pipeline build |
| Create a named release snapshot |
| Add text content as a source |
| Add a file as a source |
| Remove a source |
Destructive tools (always confirm)
Tool | Description |
| Delete all build artifacts — irreversible |
| Clear all sources — irreversible |
Configuration
All settings live in agent-mesh.toml at your project root. Created by sam setup.
# --- Mesh networking ---
[mesh]
name = "agent-memory" # Mesh identifier
port = 7433 # Mesh server port
# --- Data sources ---
[sources.sessions]
dir = "~/.claude/projects"
patterns = ["**/*.jsonl"]
description = "Live Claude Code sessions"
[sources.exports]
dir = "./sources"
description = "Static ChatGPT/Claude exports"
# --- LLM provider ---
[llm]
provider = "openai-compatible"
base_url = "https://api.openai.com/v1"
model = "gpt-4o-mini"
temperature = 0.3
max_tokens = 8192
# --- Pipeline ---
[pipeline]
weekly_rollup = true
work_status = true
context_budget = 10000
# --- Sync ---
[sync]
auto_build = true # Build when new sessions arrive
build_cooldown = 300 # Seconds between auto-builds
build_threshold = 3 # Sessions required to trigger
# --- Deploy hooks ---
[deploy]
server_commands = []
client_commands = []Environment variables
Variable | Overrides |
| API key for the configured LLM provider |
|
|
|
|
|
|
How It Works
The pipeline
Layer | What | Output |
0 | Raw sources | Session transcripts, exports, notes |
1 | Episodes | Each conversation → structured summary |
2 | Rollups | Episodes → weekly and monthly summaries |
3 | Synthesis | Rollups → context document + work status report |
Each layer feeds the next. All outputs include provenance metadata. Builds are incremental — only new sessions get processed.
The mesh
Server (
sam serve): accepts sessions, runs builds, serves MCP tools and artifactsClients (
sam join): watch for local sessions, submit to server, pull artifacts backNodes authenticate with a shared mesh token
Server:
# ~/.config/systemd/user/sam-serve.service
[Unit]
Description=sam memory server
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/path/to/project
ExecStart=/path/to/uv run sam serve
Restart=on-failure
[Install]
WantedBy=default.targetClient:
# ~/.config/systemd/user/sam-client.service
[Unit]
Description=sam memory client
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/path/to/project
ExecStart=/path/to/uv run sam join --server your-server:7433
Restart=on-failure
[Install]
WantedBy=default.targetsystemctl --user daemon-reload
systemctl --user enable --now sam-serve.serviceDevelopment
git clone https://github.com/marklubin/synix-agent-mesh.git
cd synix-agent-mesh
uv sync
uv run pytest tests/ -vLicense
MIT
Powered by synix — the build system for agent memory.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cross-tool persistent memory and context for AI assistants over MCP.
shared AI-context layer for teams — persistent memory your agents search and update over MCP
Project management shared by people and AI agents, with persistent project state through MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.30MIT
- AlicenseNot gradedqualityBmaintenanceProvides persistent, searchable memory across coding projects and machines, letting agents record and retrieve projects, reusable assets, sessions, decisions, commits, and handoffs via MCP.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides coding agents with persistent repository context, including code maps, specs, timeline, team memory, and past session history, through MCP tools.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search and update a shared persistent knowledge base over MCP, so context survives across sessions, models, clients, and team tools.MIT