docsift CLAUDE.md

docsift CLAUDE.md is an instructions file for coding agents 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

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 instructions/anishmoncivarghese/docsift/claude-md
Clone the repo
git clone --depth 1 https://github.com/anishmoncivarghese/docsift

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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00718 $0.00718
Opus 5 $0.00359 $0.00359
Sonnet 5 $0.00144 $0.00144
Haiku 4.5 $0.00072 $0.00072

Measured 5d ago against content hash 6e0209d15302, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (6 stars, last pushed 23d ago), licensed MIT. It adds 718 tokens to every session, about $0.0036 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.