memex-sync

memex-sync is a skill for Claude Code, Codex from iamtouchskyer/memex. It costs 15 tokens per session (589 once invoked), scanned A, original, MIT.

A synchronization tool for Zettelkasten cards, which are small linked notes used to build a personal knowledge system, across devices through Git.

In plain words
What is it for?
Use it to configure a Git remote, check sync status, manually synchronize cards, or enable or disable automatic syncing after notes are written or archived.
Why use it?
It keeps notes aligned between devices by pulling changes, committing local updates, and pushing them to a remote repository.

Skill for Claude CodeCodex

Part of the memex plugin — 7 skills, 2 hooks, 1 MCP server 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/iamtouchskyer/memex/memex-sync
Any agent
npx skills add iamtouchskyer/memex --skill memex-sync
Clone the repo
git clone --depth 1 https://github.com/iamtouchskyer/memex

Made for: Claude Code, Codex.

Or install memex, the plugin that ships this one along with the rest of its 7 skills, 2 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/iamtouchskyer/memex/memex-sync.svg)](https://agentmods.dev/skills/iamtouchskyer/memex/memex-sync)
Your own site
<a href="https://agentmods.dev/skills/iamtouchskyer/memex/memex-sync"><img src="https://agentmods.dev/badge/skills/iamtouchskyer/memex/memex-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 589 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.00015 $0.00589
Opus 5 $0.00008 $0.00295
Sonnet 5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade A, and why

memex-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 4d 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.

skills/memex-sync/SKILL.md · 60 lines

What it actually says

Memory Sync

Sync your Zettelkasten cards across devices using git.

Tools Available

  • memex sync --init <url> — initialize sync with a git remote
  • memex sync --init — auto-create a private GitHub repo via gh CLI
  • memex sync — pull remote changes, commit local changes, push
  • memex sync --status — show sync configuration and last sync time
  • memex sync on|off — enable/disable auto-sync after every write/archive

Process

digraph sync {
    "User invokes /memex-sync" -> "memex sync --status";
    "memex sync --status" -> "Configured?" [shape=diamond];
    "Configured?" -> "memex sync" [label="yes"];
    "Configured?" -> "Ask user for repo URL" [label="no"];
    "Ask user for repo URL" -> "User provides URL?" [shape=diamond];
    "User provides URL?" -> "memex sync --init <url>" [label="yes"];
    "User provides URL?" -> "memex sync --init (auto-create via gh)" [label="no, use gh"];
    "memex sync --init <url>" -> "Report success";
    "memex sync --init (auto-create via gh)" -> "Report success";
    "memex sync" -> "Report result";
}

Step 1: Check status

Run memex sync --status to see if sync is already configured.

Step 2: Initialize (if needed)

If sync is not configured:

  1. Ask the user if they have a git repo URL for their cards
  2. If yes: memex sync --init <url>
  3. If no: memex sync --init (auto-creates a private memex-cards repo on GitHub via gh CLI)

Step 3: Sync

If already configured, run memex sync to push and pull changes.

Step 4: Report

Tell the user the result. If sync failed, show the error message.

Rules

  • Never force-pushmemex sync uses git fetch + git merge then git push
  • On conflict — report the error and tell the user to resolve manually in ~/.memex
  • Auto-sync — only suggest memex sync on if the user asks about it; don't enable by default
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. 4d ago First seen · 60 lines · 15 tokens per session scan A d70735cdb92c

Subscribe to this mod's changes

memex-sync is a skill published in the GitHub repository iamtouchskyer/memex (141 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 589 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories