Claude-Mem, now presented as Grok Mem, records an agent's work, compresses it with AI, and brings relevant notes into later sessions so the agent can remember decisions and next steps. It is intended for persistent context across agent conversations and supports multiple coding-agent environments. The catalogue add-ons provide the workflows and integrations used to operate this memory system.
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.
npx skills add thedotmack/claude-mem --skill cloud-syncgit clone --depth 1 https://github.com/thedotmack/claude-memWrote 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.
[](https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync)<a href="https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/cloud-sync/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.
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/cloud-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.01482 |
| Opus 5.5 | $0.00026 | $0.00593 |
| Sonnet 5.5 | $0.00013 | $0.00296 |
| Haiku 4.5 | $0.00006 | $0.00148 |
Grade A, and why
cloud-sync scanned grade A with 1 finding 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 today.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
# settings.json (nothing when unset) and curl reads it from stdin, so it stays out of argv and chat. How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cloud Sync (cmem.ai Pro)
The installed worker syncs through SyncHub. There is one client, one durable operation log, and no separate sync daemon. This skill checks status and points the user to the installer's cmem.ai sign-in, which writes the connection.
Security rule: never ask the user to paste the sync token into this chat,
and never put it in a command you write, print it, put it in argv, or log it. A
secret pasted into a chat lands in the transcript, which claude-mem itself can
capture and sync. The installer writes the token to
~/.claude-mem/settings.json (mode 0600) without it ever passing through
this conversation.
1. Check status
Resolve the worker port and query the always-registered status route:
PORT="${CLAUDE_MEM_WORKER_PORT:-$(node -e '
const fs = require("node:fs"), path = require("node:path");
const home = require("node:os").homedir();
const windows = process.platform === "win32";
let dir = process.env.CLAUDE_MEM_DATA_DIR || path.join(home, ".claude-mem");
if (dir === "~") dir = home;
else if (dir.startsWith("~/") || (windows && dir.startsWith("~\\"))) {
dir = path.join(home, dir.slice(2));
}
let port;
try {
const doc = JSON.parse(fs.readFileSync(path.join(dir, "settings.json"), "utf8").replace(/^\uFEFF/, ""));
const env = doc?.env;
const settings = env && typeof env === "object" && !Array.isArray(env)
&& Object.keys(env).some(key => key.startsWith("CLAUDE_MEM_")) ? env : doc;
port = settings?.CLAUDE_MEM_WORKER_PORT;
} catch {}
// Keep the default in step with src/shared/install-port.ts.
if (!port) {
const uid = process.getuid?.();
const folder = windows ? path.win32.resolve(dir).toLowerCase() : path.resolve(dir);
const offset = uid === undefined
? require("node:crypto").createHash("sha256").update(folder, "utf8").digest().readUInt32BE(0) % 100
: ((uid % 100) + 100) % 100;
port = 37700 + offset;
}
process.stdout.write(String(port));
' 2>/dev/null)}"
# With CLAUDE_MEM_LOCAL_API_TOKEN set, the worker wants the token: node prints the header from
# settings.json (nothing when unset) and curl reads it from stdin, so it stays out of argv and chat.
node -e "try{const t=String(JSON.parse(require('fs').readFileSync(require('path').join(require('os').homedir(),'.claude-mem','settings.json'),'utf-8')).CLAUDE_MEM_LOCAL_API_TOKEN||'').trim();if(t)process.stdout.write('X-Claude-Mem-Token: '+t+'\\n')}catch{}" | curl -s -H @- "http://127.0.0.1:${PORT}/api/sync/status"
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.
- today Changed · +27 lines 3995095e1dc9
- 21d ago Changed · +2 lines c4e21bd50b1c
- 2mo ago Changed · -17 lines a8941dcafd0c
- 3mo ago First seen · 108 lines · 64 tokens per session scan A 671a0723613c
cloud-sync is a skill published in the GitHub repository thedotmack/claude-mem (121,614 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 1,482 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cloud-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloud-syncthedotmack/claude-mem | Skill | 122k | today | Apache-2.0 | A | 64 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 22d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 22d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemindactiveloopai/hivemind | Skill | 1.7k | 22d ago | Apache-2.0 | A | 32 | Claude Code |
| dejavu-rulescmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 56 | Claude Code |
| dejavucmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 51 | Claude Code |
| dejavu-reportcmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 37 | Claude Code |