sift-memory

sift-memory is a skill for Claude Code, Codex from roccodaffuso/sift. It costs 75 tokens per session (829 once invoked), scanned A, original, MIT.

A local search layer for finding relevant details in earlier AI coding-assistant sessions. It searches logs from Claude Code, Codex, Cursor, and OpenCode stored on your computer.

In plain words
What is it for?
Use it to refresh the index and search previous coding sessions for project history, fixes, decisions, or troubleshooting context.
Why use it?
It removes the need to remember which past conversation contained a debugging explanation or implementation decision. The search index is kept locally.

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/roccodaffuso/sift/sift-memory
Any agent
npx skills add roccodaffuso/sift --skill sift-memory
Clone the repo
git clone --depth 1 https://github.com/roccodaffuso/sift

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/roccodaffuso/sift/sift-memory.svg)](https://agentmods.dev/skills/roccodaffuso/sift/sift-memory)
Your own site
<a href="https://agentmods.dev/skills/roccodaffuso/sift/sift-memory"><img src="https://agentmods.dev/badge/skills/roccodaffuso/sift/sift-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 829 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.00075 $0.00829
Opus 5 $0.00037 $0.00415
Sonnet 5 $0.00015 $0.00166
Haiku 4.5 $0.00007 $0.00083

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

Security

Grade A, and why

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

.agents/skills/sift-memory/SKILL.md · 109 lines

How it starts

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

Sift Memory

Use sift as a local memory search layer for prior AI coding-assistant sessions. It reads only local Claude Code, Codex, Cursor, and OpenCode logs/databases and writes only its own index under ~/.sift/.

Command Resolution

Prefer the installed CLI:

sift --help

When working inside the sift repository and the global command is unavailable, use:

node ./bin/sift.js --help

Do not use npx or any network-based install path. If neither command works, tell the user to install sift locally.

Actions

sift_index

Refresh the local index before memory-heavy work, after new logs were created, or when search says no index exists:

sift index --json

Use the repo-local fallback when needed:

node ./bin/sift.js index --json

Use a full rebuild only when the user asks, parser/index behavior changed, or results look stale after an incremental run:

sift index --full --json

sift_search

Search prior local sessions with targeted queries:

sift "<query>" --limit 10 --json

Filter by source when useful:

sift "<query>" --tool codex --limit 10 --json
sift "<query>" --tool claude --limit 10 --json
sift "<query>" --tool cursor --limit 10 --json
sift "<query>" --tool opencode --limit 10 --json

Good queries are concrete: project names, command names, file names, bug symptoms, package names, decisions, or user phrasing. Prefer a few focused searches over one broad search.

sift_show

Follow a search result ref when the surrounding conversation is needed:

sift show "<ref>" --json

Use --context N only when the default two messages before and after are insufficient.

sift_list

List recent indexed sessions when you need orientation before choosing search terms:

sift list --limit 10 --json

Filter by source when useful:

sift list --tool codex --limit 10 --json

Workflow

  1. Use this skill when local session memory could materially improve the answer.
  2. Run sift index unless the task is tiny or the index is known to be fresh.
  3. Run sift_search with 1-3 focused queries and structured JSON output.
  4. Follow only the most relevant result refs with sift_show when more context is needed.
  5. Use the results as private local context. Summarize only the relevant facts needed for the task.
  6. Do not paste large raw logs. Do not expose secrets, credentials, tokens, private personal data, or unrelated session contents.

Read the full file on GitHub · 109 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 109 lines · 75 tokens per session scan A 798562327742

Subscribe to this mod's changes

sift-memory is a skill published in the GitHub repository roccodaffuso/sift (2 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 829 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

daily-journal

A passive daily work journal that Claude keeps FOR you so you never have to write it yourself. Append short entries after meaningful work (what was done, what you focused on, artifacts touched) to 01-daily/journal/YYYY-MM-DD.md. Run a guided reflection at night or in the morning. Use when you run /daily-journal, say…

huytieu/COG-second-brain · 107 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens

kiro-steering-custom

Create custom steering documents for specialized project contexts.

gotalab/cc-sdd · 14 tokens

honey-memory

Per-project persistent memory files indexed in MEMORY.md.

Green-PT/honey-for-devs · 14 tokens

doc-drift

Use this skill when the user wants to audit the memory and documents Claude Code loads into context — CLAUDE.md (user global + project + nested), MEMORY.md, @imports, .claude/skills, .claude/agents, .claude/commands, installed plugins — and detect three kinds of issues: outdated claims, mutually contradictory…

AlexZio00/sovereign-skills · 223 tokens