sync

A command that imports Claude Code's automatic memory files into amem, a structured memory system for coding agents. It keeps the original files unchanged and skips duplicates.

In plain words
What is it for?
Useful when moving from Claude Code memory to amem, previewing an import, or combining memories from several projects.
Why use it?
It brings existing project and user context into one searchable memory store without repeatedly adding the same information.

Skill for Claude CodeCodex

Part of the amem plugin — 2 skills shipped together

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.

agentmods
npx agentmods add skills/amanasmuei/amem/sync
Any agent
npx skills add amanasmuei/amem --skill sync
Clone the repo
git clone --depth 1 https://github.com/amanasmuei/amem

Made for: Claude Code, Codex.

Or install amem, the plugin that ships this one along with the rest of its 2 skills.

Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 324 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00324
Opus 5 $0.00017 $0.00162
Sonnet 5 $0.00007 $0.00065
Haiku 4.5 $0.00003 $0.00032

Measured 2d ago against content hash 6adcf8688835, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sync 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.

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.

plugin/skills/sync/SKILL.md · 43 lines

What it actually says

/amem:sync — Sync Claude Auto-Memory

Import Claude Code's built-in auto-memory files into amem for unified, structured access.

Instructions

  1. Run the sync command via Bash:

    amem-cli sync
    
  2. If the user wants a preview first:

    amem-cli sync --dry-run
    
  3. Report the results: how many imported, skipped (duplicates), and from how many projects.

  4. After sync, call memory_stats to show the updated memory count.

What it does

  • Reads ~/.claude/projects/*/memory/*.md files
  • Parses YAML frontmatter (name, description, type)
  • Maps Claude types to amem types:
    • feedbackcorrection (confidence 1.0)
    • projectdecision (confidence 0.85)
    • userpreference (confidence 0.8)
    • referencetopology (confidence 0.7)
  • Deduplicates by content hash
  • Stores with source: "claude-auto-memory" tag

Important

  • This is non-destructive — it only adds to amem, never modifies Claude auto-memory
  • Duplicates are automatically skipped
  • Safe to run multiple times
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 First seen · 43 lines · 34 tokens per session scan A 6adcf8688835

Subscribe to this mod's changes

sync is a skill published in the GitHub repository amanasmuei/amem (2 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 324 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

qdrant-clients-sdk

Qdrant provides client SDKs for various programming languages, allowing easy integration with Qdrant deployments.

qdrant/skills · 28 tokens

qdrant-relevance-feedback

Expanding the candidate pool via relevance feedback, as an alternative to reranking when a dense retriever is too weak. Use when someone asks about 'Qdrant's Relevance Feedback API', 'improving dense search relevance/recall', 'how to discover/get more relevant results from vector search', 'cheaper/better alternative…

qdrant/skills · 146 tokens

qdrant-hybrid-search-prefetches

Constructing prefetch queries for hybrid retrieval, including sparse/dense and multi-field setups, and choosing a sparse embedding model. Use when someone asks 'dense and sparse in one search?', 'how to combine multiple fields for retrieval?', 'payloads or sparse vectors for lexical?', 'which sparse embedding model to…

qdrant/skills · 81 tokens

qdrant-sizing

Sizes a Qdrant deployment before it is provisioned. Use when someone asks 'how much RAM do I need', 'how many nodes', 'how big should my cluster be', 'sizing', 'capacity planning', 'will N vectors fit', 'what instance type should I pick', or gives a vector count and dimensions and asks what to provision. Also use when…

qdrant/skills · 94 tokens

qdrant-advisor

Diagnose, troubleshoot, and advise on any Qdrant deployment by loading the latest official Qdrant skills live from skills.qdrant.tech. Use this whenever someone raises a Qdrant problem or question — slow or degraded search, high or growing memory / OOM crashes, optimizer stuck or slow, indexing slowness, scaling and…

qdrant/skills · 216 tokens

qdrant-model-migration

Guides embedding model migration in Qdrant without downtime. Use when someone asks 'how to switch embedding models', 'how to migrate vectors', 'how to update to a new model', 'zero-downtime model change', 'how to re-embed my data', or 'can I use two models at once'. Also use when upgrading model dimensions, switching…

qdrant/skills · 88 tokens