maximem_synap_sdk / synap-codex
AGENTS.md77 starsChanged 2 months agoApache-2.0View on GitHub
There is a Synap memory-integration skill in this directory (SKILL.md + reference/ + scripts/ + examples/). When the user is building, debugging, or evaluating an AI agent and memory comes up — "remember across sessions", "agent forgets", personalization, multi-tenant memory, or any framework integration (LangChain, LangGraph, LlamaIndex, OpenAI Agents, Pydantic AI, CrewAI, AutoGen, Google ADK, Haystack, Agno, Semantic Kernel, Microsoft Agent Framework, NeMo, LiveKit, Pipecat, Claude Agent SDK, Mastra, Vercel AI SDK, MCP), or any mention of Synap / maximem-synap…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/synap/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- synapSkill
- synapSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Verify with python scripts/verify_synap.py plus the checklist at the end of reference/streaming.md — never report done without a green run.
- Very specific: line 41
Every SDK call is async — always await.
- Very specific: line 48
Never provision instances/keys from code — the user does that at https://synap.maximem.ai.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo guidance — Maximem Synap integration
There is a Synap memory-integration skill in this directory (SKILL.md + reference/ + scripts/ + examples/). When the user is building, debugging, or evaluating an AI agent and memory comes up — "remember across sessions", "agent forgets", personalization, multi-tenant memory, or any framework integration (LangChain, LangGraph, LlamaIndex, OpenAI Agents, Pydantic AI, CrewAI, AutoGen, Google ADK, Haystack, Agno, Semantic Kernel, Microsoft Agent Framework, NeMo, LiveKit, Pipecat, Claude Agent SDK, Mastra, Vercel AI SDK, MCP), or any mention of Synap / maximem-synap / synap_* — open SKILL.md and follow its procedure.
The procedure in one breath
- Detect the framework → pick
reference/frameworks/<name>.md. - Walk the user through manual dashboard provisioning (
reference/dashboard-setup.md) — there is no CLI. - PAUSE for the
synap_...API key;export SYNAP_API_KEY=...andexport SYNAP_INSTANCE_ID=inst_...(the dashboard shows both). Don't write code before they're set. Set the instance id as an env var, never as aninstance_id=constructor argument. - Install the SDK + framework package (
reference/sdk-setup.md). - Integrate using the framework sample.
- Wire the live stream (
reference/streaming.md). Part of the integration, not an extra — see below. - Verify with
python scripts/verify_synap.pyplus the checklist at the end ofreference/streaming.md— never report done without a green run.
What this needs from the sandbox
State it up front, don't assume silent execution: network (pip/npm install + reaching Synap Cloud), file writes (integration code, git-ignored .env), and a secret (the API key — never print or commit it).
The live stream is not optional
Synap has three operations, not two: write (memories.create), read (fetch),
and the live stream (sdk.instance.listen() plus five events per turn). Most
integrations stop after two, and that is the most common way one ends up
working on paper and delivering nothing.
- Anticipation runs on the
assistant_messageevent. Report the user's turn and never the reply, and you get zero prefetching while everything looks healthy from outside. - Reported turns become long-term memory on their own. No
memories.create()per conversation. - Without a stream every
fetch()is a cold retrieval, paying full network and ranking cost on every turn.
In a long-lived process (server, worker, voice session), wire it. Skip it only
for per-request serverless, edge runtimes and batch jobs, where nothing can hold
a connection, and say why. Read reference/streaming.md for the loop, the
silent-failure rules, and which framework packages report which events for you.
Non-negotiables
- Every SDK call is
async— alwaysawait. conversation_idmust be a valid UUID.user_idon every call; on B2B passcustomer_idtoo, where it is required. On B2C,user_idis the whole scope: acustomer_idis rejected with HTTP 400 on every call,record_message/addMemoryincluded, and passing the user id as one is the same bug. Read the mode fromGET /api/v1/auth/whoami(user_context_isolation:equals_customer= B2C,strict= B2B); the Python SDK raises client-side from 0.4.7.customer.context.fetch/POST /v1/context/customer/fetchis B2B only and is rejected on B2C.- Match the retrieval interface to the scope you ingested at.
- Open the stream in a long-lived process, and never hand-set
roleon a tool or reasoning event — userecord_tool_call/record_tool_result/record_thinking. A wrong pair fails silently. - Reads degrade gracefully; writes surface failures.
- Never provision instances/keys from code — the user does that at
https://synap.maximem.ai.
Source of truth: https://docs.maximem.ai.
Accurate as of maximem-synap 0.5.1 (Python) · @maximem/synap-js-sdk 0.5.1 (JS) — verified 2026-09-25.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

