sift

sift is a skill for Claude Code from xobotyi/cc-foundry. It costs 52 tokens per session (1,143 once invoked), scanned A, original, MIT.

A skill for reviewing and removing Claude Code's saved memory entries with the user. It separates lasting facts from working rules that belong in CLAUDE.md, a file for approved instructions.

In plain words
What is it for?
Use it to clean up, prune, review, or audit auto-memory entries and move standing rules into CLAUDE.md.
Why use it?
It helps prevent outdated or incorrect memories from steering future sessions while avoiding accidental removal without the user's input.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the better-memory plugin — 1 skill shipped together

Good fit Use it to clean up, prune, review, or audit auto-memory entries and move standing rules into CLAUDE.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xobotyi/cc-foundry/sift
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.

Any agent
npx skills add xobotyi/cc-foundry --skill sift
Clone the repo
git clone --depth 1 https://github.com/xobotyi/cc-foundry

Made for: Claude Code.

Or install better-memory, the plugin that ships this one along with the rest of its 1 skill.

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 sift

README.md
[![agentmods](https://agentmods.dev/badge/skills/xobotyi/cc-foundry/sift/github.svg)](https://agentmods.dev/skills/xobotyi/cc-foundry/sift)
Your own site
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/sift"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/sift/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.

agentmods 80×15 button for sift

Your own site · 80×15
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/sift"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/sift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00052 $0.01143
Opus 5.5 $0.00021 $0.00457
Sonnet 5.5 $0.00010 $0.00229
Haiku 4.5 $0.00005 $0.00114

Measured 2d ago against content hash 2b2b7bbb082d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sift 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 2d 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.

plugins/better-memory/skills/sift/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory holds facts that stay true after the session that wrote them; rules on how to work belong in a CLAUDE.md the user approved. An entry kept by mistake steers every later session, while one removed by mistake costs a rediscovery, so removal is the safe error. The user is present for this pass, and their answer is the evidence nothing else can give.

Where things are

  • The memory directory is the path the auto-memory section of the system prompt names. better-memory keeps its data in a sibling directory, never inside it: for <dir>/memory/, the review file is <dir>/better-memory/review.md. That file holds instructions from entries written before better-memory, already moved out of memory and waiting for the user.
  • With mcp__better-memory__remove_entry in the tool list, better-memory guards the directory. Remove an entry only with that tool, and save one only with mcp__better-memory__write_entry. Write, Edit, and shell commands that change the directory are refused, and better-memory writes MEMORY.md itself.
  • Without it, the entries are plain files. MEMORY.md is their index, one line per entry: delete an entry file and its line together.

Phase 1 — Inventory

Read every entry file, MEMORY.md, better-memory/review.md when it exists, and the instruction files in force: the project's CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md, its .claude/rules/ files, ~/.claude/CLAUDE.md, and the ~/.claude/rules/ files.

Phase 2 — Judge

Give each entry one verdict:

  • keep — a fact that still holds about the user, the project's situation, or an external system. A fact that names a file, path, command, version, or setting is checked against the project before it is kept: read the file, grep for the name, or run the command. A fact the project contradicts is removed.
  • instruction — guidance on how to work: what to always or never do, a preference about the agent's behavior. It becomes a CLAUDE.md line, never a memory entry. Every item in review.md is an instruction.
  • remove — progress of finished or current work, plans, a request for one task, a fact that no longer holds, and a duplicate of another entry or of an instruction file.

Read the full file on GitHub · 75 lines

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. 2d ago First seen · 75 lines · 52 tokens per session scan A 2b2b7bbb082d

Subscribe to this mod's changes

sift is a skill published in the GitHub repository xobotyi/cc-foundry (23 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,143 once invoked, about $0.0002 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-11-07.

Related

sift compared with skills from other repositories

sift next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
siftxobotyi/cc-foundrySkill23yesterdayMITA52Claude Code
esp32-expertjohnkozaris/jko-claude-pluginsSkill114d agoMITA137Claude Code
evolving-statusclaude-world/director-mode-liteSkill8019d agoMITA17Claude Code
peekaboojohnkozaris/jko-claude-pluginsSkill114d agoMITA104Claude Code
mobile-flows-maestrojohnkozaris/jko-claude-pluginsSkill114d agoMITA102Claude Code
performance-auditgreglas75/zuvoSkill76d agoMITA90Claude Code
validate-mobilejohnkozaris/jko-claude-pluginsSkill114d agoMITA20Claude Code