sync-memory

sync-memory is a command for Claude Code from PavelTkachenk0/ContextTax. It costs 14 tokens per session (291 once invoked), scanned A, original, MIT.

A command that reconciles a project's in-repository memory files with the latest completed Superpowers plan. It reviews what was built and proposes focused updates to the project's roadmap, architecture, decisions, and conventions.

In plain words
What is it for?
Use it after a Superpowers work cycle to update the roadmap, record architecture changes or decisions, and capture newly established project conventions.
Why use it?
It keeps project documentation aligned with completed work without copying an entire planning document into the memory bank. Changes are shown for confirmation before they are applied.

Command for Claude Code

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 commands/paveltkachenk0/contexttax/sync-memory
Clone the repo
git clone --depth 1 https://github.com/PavelTkachenk0/ContextTax

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/paveltkachenk0/contexttax/sync-memory.svg)](https://agentmods.dev/commands/paveltkachenk0/contexttax/sync-memory)
Your own site
<a href="https://agentmods.dev/commands/paveltkachenk0/contexttax/sync-memory"><img src="https://agentmods.dev/badge/commands/paveltkachenk0/contexttax/sync-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 291 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.00014 $0.00291
Opus 5 $0.00007 $0.00146
Sonnet 5 $0.00003 $0.00058
Haiku 4.5 $0.00001 $0.00029

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

Security

Grade A, and why

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

.claude/commands/sync-memory.md · 23 lines

What it actually says

Fold the outcomes of the most recent superpowers cycle back into the memory bank. This is the Definition of Done for every cycle.

  1. Find the most recent plan in docs/superpowers/plans/ (and its spec in docs/superpowers/specs/). If $ARGUMENTS names a specific plan, use that.
  2. Review what was actually built (git log / diff since the cycle started).
  3. Propose minimal edits to .claude/memory-bank/:
    • roadmap.md — mark the sub-project/feature done; set "Next". Always.
    • architecture.md — if components / boundaries / dependencies changed.
    • decisions/ — a new ADR (use the /adr template) for any notable decision not yet recorded.
    • conventions.md — only if a new convention/pattern was established.
  4. Show the proposed diffs and apply after confirmation.
  5. Do not copy raw plan prose into the memory bank — distill. Plans are the journal; the memory bank is the current truth.

Targets layer 2 (the in-repo project memory bank), not layer 1 (personal memory — that is the consolidate-memory skill).

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 · 23 lines · 14 tokens per session scan A 15d80eac1ae9

Subscribe to this mod's changes

sync-memory is a command published in the GitHub repository PavelTkachenk0/ContextTax (5 stars, last pushed 2mo ago), licensed MIT. It adds 14 tokens to every session and 291 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-31.