synap

synap is a skill for Claude Code, Codex from maximem-ai/maximem_synap_sdk. It costs 220 tokens per session (4,024 once invoked), scanned A, original, Apache-2.0.

An integration guide for adding persistent, structured memory to an AI agent. It describes storing facts, past interactions, entities, and preferences, then retrieving relevant context later.

In plain words
What is it for?
Use it when building, debugging, or evaluating an agent that needs long-term memory across sessions.
Why use it?
It helps an agent retain useful information across conversations instead of relying only on the current context window.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when building, debugging, or evaluating an agent that needs long-term memory across sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maximem-ai/maximem_synap_sdk/synap-codex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add maximem-ai/maximem_synap_sdk --skill synap-codex
Clone the repo
git clone --depth 1 https://github.com/maximem-ai/maximem_synap_sdk

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for synap

README.md
[![agentmods](https://agentmods.dev/badge/skills/maximem-ai/maximem_synap_sdk/synap-codex/github.svg)](https://agentmods.dev/skills/maximem-ai/maximem_synap_sdk/synap-codex)
Your own site
<a href="https://agentmods.dev/skills/maximem-ai/maximem_synap_sdk/synap-codex"><img src="https://agentmods.dev/badge/skills/maximem-ai/maximem_synap_sdk/synap-codex/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for synap

Your own site · 80×15
<a href="https://agentmods.dev/skills/maximem-ai/maximem_synap_sdk/synap-codex"><img src="https://agentmods.dev/badge/skills/maximem-ai/maximem_synap_sdk/synap-codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.04024
Opus 5.5 $0.00088 $0.01610
Sonnet 5.5 $0.00044 $0.00805
Haiku 4.5 $0.00022 $0.00402

Measured 2d ago against content hash 277cd8522a30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

synap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (examples/python-minimal.py, examples/typescript-minimal.ts, scripts/check_integration_wiring.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/synap-codex/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maximem Synap — Agent Memory Skill (Codex)

Synap is a managed memory layer for AI agents. Codex edition; reference/ matches the Claude Code skill.

Public prompt (asks if Synap fits, no code): follow reference/public-start.md first; on yes it runs <cli> auth login --purpose onboarding, then step 2.

Sandbox & approvals

State what you need before you start: network access; file writes (integration code, a git-ignored .env); a secret (the synap_... key: api-keys create --write-env writes it to .env; never print it back or commit it). If restricted, tell the user which commands to run.

Procedure: onboarding a project end to end

Never guess. If anything is unclear, stop and ask the human. Full steps and sign-out message: reference/onboarding-details.md; questions, tips, failures: reference/onboarding-ask-rules.md; CLI: reference/dashboard-setup.md.

CLI. <cli> means maximem-synap from PATH if maximem-synap --version reports 0.3.3 or newer (the session commands do not exist before), otherwise npx @maximem/synap-cli@latest (needs Node and Python 3.10+). If the prompt names an environment, add --env <name> to every CLI command (or export SYNAP_ENV=<name>) and never say it to the human; a one-time code only works on the server that issued it.

Quick reference. Put --json or --output json before the subcommand; use the full inst_... id, never a truncated table id. If SYNAP_API_KEY is set in your shell, CLI calls fail with 401 or 403: run them with env -u SYNAP_API_KEY <cli> ....

  1. Sign in. <cli> auth login --code <syn_ob_...> --agent-name <name>, with your own lowercase product name (claude-code, cursor, codex, windsurf, other). A missing, expired or used code at this first sign-in is the one case where you say: copy a fresh prompt from the dashboard. The key lasts 7 days; never auth refresh it. Pin your session: login prints your profile name; put --profile <name> before the subcommand of EVERY CLI command (<cli> below includes it; your shell keeps no variables between calls, SYNAP_PROFILE works only if it does). Never log out or touch a profile that is not yours. On a 'pin your profile' refusal (exit 2) read the names in the message and pin your own.
  2. State. <cli> onboard status shows this session's steps and a read-only list of OTHER sessions. Trust only steps you reported yourself; other sessions are someone else's work: never act on them, answer their questions, or skip drafting, approval or creation because they look done. Re-running the prompt is safe. 2b. What exists (right after step 2, before step 3). <cli> instances list --json; tell the human in plain words each instance (name, what it is for if known, ready, being built or failed: reference/instances-explained.md). If any exist, ask ONE question with your recommendation and tip: reuse one or create a new one. Recommend reuse only if it is for THIS agent (one instance serves one agent, /concepts/agent-topologies). Reuse = the existing-instance variant below.

Read the full file on GitHub · 62 lines

Files

What ships with it

49 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -46 lines · -17 tokens per session 277cd8522a30
  2. 3d ago Changed · +42 lines · +237 tokens per session b3c871e843d0
  3. 26d ago Changed · +2 lines 364c1b6ce8e2
  4. 1mo ago First seen · 64 lines · 0 tokens per session scan A 57b569290248

Subscribe to this mod's changes

synap is a skill published in the GitHub repository maximem-ai/maximem_synap_sdk (77 stars, last pushed yesterday), licensed Apache-2.0. It adds 220 tokens to every session and 4,024 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.