memory-rotation

memory-rotation is a skill for Claude Code, Codex from Sistema2D/FrameCode-VibeWork. It costs 14 tokens per session (386 once invoked), scanned A, original, Apache-2.0.

A session-management guide for archiving old working notes while keeping their evidence and links available.

In plain words
What is it for?
It helps review sessions, preserve sourced knowledge, move older files into dated archives, update indexes and links, and check the archive for consistency.
Why use it?
It prevents active context from growing too large or becoming cluttered, without deleting records or hiding past decisions.

Skill for Claude CodeCodex

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/sistema2d/framecode-vibework/memory-rotation
Any agent
npx skills add Sistema2D/FrameCode-VibeWork --skill memory-rotation
Clone the repo
git clone --depth 1 https://github.com/Sistema2D/FrameCode-VibeWork

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sistema2d/framecode-vibework/memory-rotation.svg)](https://agentmods.dev/skills/sistema2d/framecode-vibework/memory-rotation)
Your own site
<a href="https://agentmods.dev/skills/sistema2d/framecode-vibework/memory-rotation"><img src="https://agentmods.dev/badge/skills/sistema2d/framecode-vibework/memory-rotation.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 386 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.00386
Opus 5 $0.00007 $0.00193
Sonnet 5 $0.00003 $0.00077
Haiku 4.5 $0.00001 $0.00039

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

Security

Grade A, and why

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

FCVW/skills/memory-rotation/SKILL.md · 63 lines

What it actually says

Memory rotation

Purpose

Keep active session context bounded while preserving historical evidence and promoting sourced reusable knowledge.

Use when

  • active sessions exceed 10 files, 100 KB, or the project's context budget;
  • duplicated or stale session summaries impair retrieval;
  • the user requests archive, rotation, or memory consolidation.

Do not use for

  • deleting evidence to make validation appear clean;
  • rewriting published history;
  • replacing canonical project documents with session narrative.

Inputs

  • MEMORY.md;
  • wiki/schema.md;
  • active and archived session indexes;
  • retention/legal requirements.

Procedure

  1. Inventory active sessions and choose a bounded archive range.
  2. Identify decisions, patterns, failures, and unresolved conflicts.
  3. Promote only sourced, reusable knowledge; update an existing canonical page before creating a duplicate.
  4. Create wiki/archive/YYYY/README.md with range, sources, destination paths, and unresolved items.
  5. Move selected sessions to wiki/archive/YYYY/.
  6. Keep the latest 3–10 relevant sessions active.
  7. Update index, log, metrics, and backlinks.
  8. Run wiki lint in incremental mode.

Required output

Record files moved, knowledge promoted, duplicates merged, unresolved conflicts, retention decision, and validation.

Validation and exit

  • no source session is lost;
  • archive links resolve;
  • active session IDs remain unique;
  • promoted claims cite sources;
  • active memory is within the configured budget.
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 · 63 lines · 14 tokens per session scan A e557e9a935f5

Subscribe to this mod's changes

memory-rotation is a skill published in the GitHub repository Sistema2D/FrameCode-VibeWork (23 stars, last pushed 3d ago), licensed Apache-2.0. It adds 14 tokens to every session and 386 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

evaluate-pattern-adoption

Run or plan this repository's pattern-adoption evidence evaluation locally with signed-in Codex agents. Use when asked to refresh stale evidence, assess stable or exploratory patterns, evaluate one or all catalog patterns, discover possible new patterns, or prepare a reviewable evidence PR without model-backed GitHub…

PaulDuvall/ai-development-patterns · 68 tokens

llm-wiki

Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 14 custom tools (+3 opt-in agent-trajectory tools).

zosmaai/pi-llm-wiki · 52 tokens

neurolink-guide

Guide for using the NeuroLink SDK and CLI. Invoke when users ask how to use neurolink, integrate AI providers, add MCP tools, configure RAG, set up memory, deploy servers, or work with multimodal content. Covers SDK, CLI, providers, tools, and enterprise features.

juspay/neurolink · 65 tokens

vc-context-discovery

Discover and load all relevant context for the current task. Lists feature group nested files with full paths, loads process/context/ files by domain routing. Called at the start of every agent session.

withkynam/vibecode-pro-max-kit · 43 tokens

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

sage-memory

Persistent, consensus-validated memory for AI agents via SAGE MCP server. Gives you institutional memory that survives across conversations — memories go through BFT consensus, carry confidence scores, and decay over time. Use this skill when working with a SAGE MCP server to manage persistent agent memory, recall…

l33tdawg/sage · 97 tokens