Borrowing it
Nothing to install: this file belongs to HelgDemidov/refigure. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/HelgDemidov/refigure/main/.claude/commands/memory-sync.mdgit clone --depth 1 https://github.com/HelgDemidov/refigureWrote 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/commands/helgdemidov/refigure/memory-sync)<a href="https://agentmods.dev/commands/helgdemidov/refigure/memory-sync"><img src="https://agentmods.dev/badge/commands/helgdemidov/refigure/memory-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/commands/helgdemidov/refigure/memory-sync"><img src="https://agentmods.dev/badge/commands/helgdemidov/refigure/memory-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00015 | $0.02327 |
| Opus 5.5 | $0.00006 | $0.00931 |
| Sonnet 5.5 | $0.00003 | $0.00465 |
| Haiku 4.5 | $0.00002 | $0.00233 |
Grade A, and why
memory-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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/memory-sync — audit and synchronize project memory against the real repo state
Recurring, not a one-off: bring every checkable claim in CLAUDE.md and the memory directory in line with the live code and history. Run manually, periodically, or before a large batch of work that will lean on memory being correct. Run in a fresh session, this task alone.
This is an audit of truth, not completeness — do NOT add new facts (that's /post-merge-sync's job), only fix stale/false claims and flag unverifiable ones. The evidence discipline below is mandatory because fact-checking by hand at this volume is impossible.
Paths: memory at the harness-provided project memory directory (the session states the resolved path — never hard-code one, it differs per machine/checkout). Audit working files at .claude/memory-sync/ (worklist, last-run record, backup archive) — created on first run; its absence means no audit has ever happened. This lives under .claude/, not docs/, because these are ephemeral, machine-tied run artifacts (worklist/backup churn on every run), not project documentation, even though docs/ is itself gitignored/local-only too now (2026-08-19) and wouldn't leak them publicly either — .gitignore's .claude/* rule keeps this specific state untracked the same way.
1. Sources of truth (descending priority)
- Live code:
refigure/,tests/, build/tool config (pyproject.toml,requirements.txt,requirements-dev.txt,.python-version),.gitignore, and.claude/commands/*.md. - Version control:
git log, merge history, PR metadata (gh). - Filesystem: path existence, directory layout, generated artifacts.
Note: .claude/commands/*.md IS tracked in this repo (.gitignore allow-lists it, unlike some sibling repos where it's local-only) — still a source of truth either way.
NOT sources of truth — they're the patients, or derivatives: CLAUDE.md, memory files, and docs/ (has its own sync via /post-merge-sync). Do not edit those as evidence. Exception: a memory claim ABOUT a document ("the spec lives at path X") — then that file IS the evidence.
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.
- 2mo ago First seen · 91 lines · 15 tokens per session scan A 184da64e6a18
memory-sync is a command published in the GitHub repository HelgDemidov/refigure (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 15 tokens to every session and 2,327 once invoked, about $0.0001 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-31.
memory-sync compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-syncHelgDemidov/refigure | Command | 0 | 3d ago | Apache-2.0 | A | 15 | Claude Code |
| wiki-queryzosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 18 | Claude Code |
| wiki-reqzosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 38 | Claude Code |
| wiki-retrozosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 25 | Claude Code |
| wiki-discoverzosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 19 | Claude Code |
| wiki-runzosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 20 | Claude Code |
| wiki-digestzosmaai/pi-llm-wiki | Command | 623 | 3d ago | MIT | A | 20 | Claude Code |