Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/roccodaffuso/siftnpx agentmods add rules/roccodaffuso/sift/sift-memoryWrote 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/rules/roccodaffuso/sift/sift-memory)<a href="https://agentmods.dev/rules/roccodaffuso/sift/sift-memory"><img src="https://agentmods.dev/badge/rules/roccodaffuso/sift/sift-memory/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/rules/roccodaffuso/sift/sift-memory"><img src="https://agentmods.dev/badge/rules/roccodaffuso/sift/sift-memory.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.00043 | $0.00397 |
| Opus 5.5 | $0.00017 | $0.00159 |
| Sonnet 5.5 | $0.00009 | $0.00079 |
| Haiku 4.5 | $0.00004 | $0.00040 |
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 3mo 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.
What it actually says
Sift Memory
Use sift as local memory search for prior AI coding-assistant sessions.
Commands
Prefer the installed CLI:
sift index --json
sift "<query>" --limit 10 --json
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
sift show "<ref>" --json
sift list --limit 10 --json
When working inside the sift repo and the global command is unavailable, use:
node ./bin/sift.js index --json
node ./bin/sift.js "<query>" --limit 10 --json
node ./bin/sift.js show "<ref>" --json
node ./bin/sift.js list --limit 10 --json
Use sift index --full only when the user asks, parser/index behavior changed, or incremental results look stale.
Behavior
- Search before answering when local session history could materially improve accuracy.
- Use focused queries based on project names, command names, file names, bug symptoms, package names, or prior decisions.
- Follow only relevant search refs with
sift showwhen surrounding messages are needed. - Summarize only relevant findings. Do not paste large raw logs.
- Keep the workflow local: no network calls, no telemetry, no sync, no writes to Claude Code, Codex, Cursor, or OpenCode source logs/databases.
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.
- 3mo ago First seen · 43 lines · 43 tokens per session scan A 2501f0c156c9
sift-memory is a cursor rule published in the GitHub repository roccodaffuso/sift (4 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 397 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-08-31.
sift-memory compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sift-memoryroccodaffuso/sift | Cursor rule | 4 | 4mo ago | MIT | A | 43 | Cursor |
| use-profilepaladini/mcp-me | Cursor rule | 21 | 17d ago | MIT | A | 394 | Cursor |
| swamr-obsidian-brainVedthakar/swamr | Cursor rule | 17 | 1mo ago | MIT | A | 62 | Cursor |
| haive-memoriesDoucs91/hivelore | Cursor rule | 4 | 18d ago | Apache-2.0 | A | 1,588 | Cursor |
| cursornitingupta220/riperflow | Cursor rule | 18 | 1mo ago | MIT | A | 313 | Cursor |
| haive-mcp-requiredDoucs91/hivelore | Cursor rule | 4 | 18d ago | Apache-2.0 | A | 245 | Cursor |
| shared-agents-knowledgenetgrade-digital/shared-agents | Cursor rule | 5 | 1mo ago | MIT | A | 946 | Cursor |