docsift: Instructions file for Claude Code

CLAUDE.md

docsift CLAUDE.md is an instructions file for Claude Code from anishmoncivarghese/docsift. It costs 718 tokens per session, scanned A, original, MIT.

A project guide for DocSift, a tool that turns PDFs and Office files into structured Markdown or JSON for AI systems. It also describes how the project is organized and tested.

In plain words
What is it for?
Use it when changing document conversion, token-sized text chunks, command-line behavior, architecture, or test and formatting workflows.
Why use it?
It helps contributors make product decisions using the project’s source documents and explain technical trade-offs in plain language.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is anishmoncivarghese/docsift's own configuration. It tells Claude Code how to work on docsift 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 docsift configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anishmoncivarghese/docsift. 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/anishmoncivarghese/docsift/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/anishmoncivarghese/docsift

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/anishmoncivarghese/docsift/claude-md"><img src="https://agentmods.dev/badge/instructions/anishmoncivarghese/docsift/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 718 This file is loaded in full into every session.
When invoked 718 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.00718 $0.00718
Opus 5.5 $0.00287 $0.00287
Sonnet 5.5 $0.00144 $0.00144
Haiku 4.5 $0.00072 $0.00072

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

Security

Grade A, and why

docsift 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 · 48 lines

How it starts

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

DocSift

Open-source document-preparation gateway: PDFs and Office files in → clean, structured, AI-ready Markdown/JSON + token-aware chunks out. Local-first, no paid APIs for core conversion.

Tagline: Convert documents once. Give agents only what they need.

Key documents (read before making product decisions)

  • PRD (source of truth for scope): ../DocSift_PRD_v0.2.md
  • v0.1 spec: docs/specs/v0.1-spec.md
  • Active plan: docs/superpowers/plans/2026-08-01-m2-comparison-harness.md

The product owner is a non-technical founder: explain trade-offs in plain language, keep responses concise, and never assume knowledge of programming jargon.

Commands

uv sync --all-extras            # install with both engines (docling is large)
uv sync --extra markitdown --extra api   # lighter install (what CI uses — no docling)
uv run pytest                   # unit tests (integration excluded by default)
uv run pytest -m integration    # real-engine tests (docling downloads models on first run)
uv run ruff check . && uv run ruff format --check .
uv run docsift --help

Architecture (src layout, package docsift)

  • core/ — Pydantic models (the engine-neutral schema), exceptions. No engine knowledge.
  • engines/ — base.py (ConversionEngine ABC), registry.py (lazy loading), router.py (file type → engine), one adapter module per engine.
  • processing/ — token_estimator; cleaner + chunker arrive in Milestone 3.
  • services/ — conversion_service.py orchestrates validate → route → convert → normalize → write.
  • cli/ — Typer app; entry point docsift.

Hard rules

  1. Engine imports stay lazy (inside methods). docsift --help must work with neither engine installed. Never import docling or markitdown at module top level.
  2. Docling and MarkItDown are dependencies, never vendored or forked (PRD §14). Pin via uv.lock.
  3. All PDFs route to Docling in auto mode. MarkItDown gets PDFs only via explicit --engine markitdown or compare mode. No PDF complexity detection — it is a PRD non-goal.
  4. No engine-specific types outside engines/. Everything downstream consumes core.models only.
  5. Never log or print document contents — not in logs, not in error messages, not in CLI output. Filenames and metrics are fine.
  6. uv only. No pip install, no poetry, no requirements.txt.
  7. TDD: failing test first, minimal implementation, then commit. Integration tests (real engine runs) are marked @pytest.mark.integration and excluded by default.
  8. Conventional commits: feat:, fix:, test:, chore:, ci:, docs:.

Read the full file on GitHub · 48 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 · 48 lines · 718 tokens per session scan A 6e0209d15302

Subscribe to this mod's changes

docsift CLAUDE.md is an instructions file published in the GitHub repository anishmoncivarghese/docsift (7 stars, last pushed 3mo ago), licensed MIT. It adds 718 tokens to every session, about $0.0029 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.

Related

docsift CLAUDE.md compared with instructions from other repositories

docsift CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docsift CLAUDE.mdanishmoncivarghese/docsiftInstructions file73mo agoMITA718Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file279ktodayMITA4,325Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot