Siftly: Instructions file for Claude Code

CLAUDE.md

Siftly CLAUDE.md is an instructions file for Claude Code from viperrcrypto/Siftly. It costs 1,079 tokens per session, scanned A, original, MIT.

Project instructions for Siftly, a self-hosted web app for organizing, searching, and visualizing saved Twitter/X bookmarks with AI categorization.

In plain words
What is it for?
Use them when setting up Siftly, checking its AI login status, running development commands, or navigating its project structure.
Why use it?
They explain how to start the app, authenticate its AI features, check types, update the database, and build it for deployment.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is viperrcrypto/Siftly's own configuration. It tells Claude Code how to work on Siftly itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Siftly configures →

About the project

Siftly is a self-hosted application that imports Twitter/X bookmarks and organizes them into a searchable, categorized visual knowledge base using AI. It is for people who want to browse, search, visualize, and export their bookmarks while keeping the application data on their own machine. Its catalogue entry provides an instruction for using the project.

viperrcrypto/Siftly · 3,087 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to viperrcrypto/Siftly. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/viperrcrypto/Siftly/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/viperrcrypto/Siftly

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 Siftly CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/viperrcrypto/siftly/claude-md/github.svg)](https://agentmods.dev/instructions/viperrcrypto/siftly/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/viperrcrypto/siftly/claude-md"><img src="https://agentmods.dev/badge/instructions/viperrcrypto/siftly/claude-md/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 Siftly CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/viperrcrypto/siftly/claude-md"><img src="https://agentmods.dev/badge/instructions/viperrcrypto/siftly/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,079 This file is loaded in full into every session.
When invoked 1,079 The same file — it is already loaded in full.
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.01079 $0.01079
Opus 5.5 $0.00432 $0.00432
Sonnet 5.5 $0.00216 $0.00216
Haiku 4.5 $0.00108 $0.00108

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

Security

Grade A, and why

Siftly CLAUDE.md 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 2mo 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.md · 117 lines

How it starts

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

Siftly

Self-hosted Twitter/X bookmark manager with AI-powered categorization, search, and visualization.

Quick Setup

./start.sh            # installs deps, sets up DB, opens browser

Or manually:

npm install
npx prisma generate && npx prisma db push
npx next dev

App runs at http://localhost:3000

AI Authentication — No API Key Needed

If the user is signed into Claude Code CLI, Siftly uses their Claude subscription automatically. No API key configuration required.

How it works:

  • lib/claude-cli-auth.ts reads the OAuth token from the macOS keychain (Claude Code-credentials)
  • Uses authToken + anthropic-beta: oauth-2025-04-20 header in the Anthropic SDK
  • Falls back to: DB-saved API key → ANTHROPIC_API_KEY env var → local proxy

To verify it's working, hit: GET /api/settings/cli-status

Key Commands

npx next dev          # Start dev server (port 3000)
npx tsc --noEmit      # Type check
npx prisma studio     # Database GUI
npx prisma db push    # Apply schema changes to DB
npm run build         # Production build

Project Structure

app/
  api/
    categorize/       # 4-stage AI pipeline (start/stop/status via SSE)
    import/           # Bookmark JSON import + dedup
    search/ai/        # FTS5 + Claude semantic search
    settings/
      cli-status/     # GET — returns Claude CLI auth status
      test/           # POST — validates API key or CLI auth
    analyze/images/   # Vision analysis progress + trigger
    bookmarks/        # CRUD + filtering
    categories/       # Category management
    mindmap/          # Graph data
    stats/            # Dashboard counts
  import/             # 3-step import UI
  mindmap/            # Interactive force graph
  settings/           # API keys, model selection
  ai-search/          # Natural language search UI
  bookmarks/          # Browse + filter UI
  categorize/         # Pipeline monitor

lib/
  claude-cli-auth.ts  # Claude CLI OAuth session (macOS keychain)
  categorizer.ts      # AI categorization + default categories
  vision-analyzer.ts  # Image vision + semantic tagging
  fts.ts              # SQLite FTS5 full-text search
  rawjson-extractor.ts # Entity extraction from tweet JSON
  parser.ts           # Multi-format bookmark JSON parser
  exporter.ts         # CSV / JSON / ZIP export

prisma/schema.prisma  # SQLite schema (Bookmark, Category, MediaItem, Setting, ImportJob)

Read the full file on GitHub · 117 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. 2mo ago First seen · 117 lines · 1,079 tokens per session scan A a41301491e87

Subscribe to this mod's changes

Siftly CLAUDE.md is an instructions file published in the GitHub repository viperrcrypto/Siftly (3,087 stars, last pushed 7mo ago), licensed MIT. It adds 1,079 tokens to every session, about $0.0043 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-30.

Related

Siftly CLAUDE.md compared with instructions from other repositories

Siftly CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Siftly CLAUDE.mdviperrcrypto/SiftlyInstructions file3.1k7mo agoMITA1,079Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode