drip CLAUDE.md

A set of instructions for Drip, a Rust command-line tool that reads and processes files. It covers building, testing, formatting, linting, local runs, and performance benchmarks.

In plain words
What is it for?
Use it to build debug or release versions, run the test suite or individual tests, check code quality, try Drip on a real file, and run benchmarks.
Why use it?
It puts the project's exact development commands and platform-specific considerations in one place, reducing guesswork when changing or checking the code.

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/drip-cli/drip/claude-md
Clone the repo
git clone --depth 1 https://github.com/drip-cli/drip
Per session 2,300 This file is loaded in full into every session.
When invoked 2,300 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 $0.02300 $0.02300
Opus 5 $0.01150 $0.01150
Sonnet 5 $0.00460 $0.00460
Haiku 4.5 $0.00230 $0.00230

Measured yesterday against content hash 47c75a157a3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

drip 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 yesterday.

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Build, test, lint

cargo build                                  # debug
cargo build --release                        # release (use this for benches)
cargo test                                   # full suite (~431 tests)
cargo test diff_accuracy::                   # run a module
cargo test modified_file_returns_unified     # run a single test by name
cargo fmt --all -- --check                   # CI enforces
cargo clippy --all-targets --locked -- -D warnings   # CI enforces

rusqlite uses the bundled feature — no system SQLite needed. CI matrix runs on Ubuntu / macOS / Windows; OS-specific paths exist for FSEvents (macOS), inotify (Linux), and ReadDirectoryChangesW (Windows) in drip watch.

Trying a local build against a real read

cargo build --release
DRIP_DATA_DIR=/tmp/drip-dev DRIP_SESSION_ID=dev \
  ./target/release/drip read README.md

Benchmarks (release binary only)

bash scripts/bench_reddit.sh                 # 4-language realistic workload
bash scripts/bench_multilang.sh              # 8-language compression matrix
cargo test --release diff_perf::             # 50 KB / 99 KB diff perf assertions
cargo test concurrency::                     # 15-process SQLite contention

Numbers from these scripts feed BENCHMARKS.md — re-run when changing the diff path or session storage.

Repository conventions

  • Branch from develop, not main. PRs target develop. main is release-only (driven by release-please).
  • Conventional Commits are enforced by CI (commitlint runs on PRs). Subject ≤ 100 chars, imperative, no trailing period. Sloppy subjects break the auto-generated CHANGELOG.
  • Every behavioural change needs a test. Refactors that don't change behaviour and don't unlock a future change won't be merged.
  • New dependencies need a clear perf or correctness justification — the binary is intentionally < 5 MB.
  • CHANGELOG.md is generated by release-please; never edit by hand.

Read the full file on GitHub · 109 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. yesterday First seen · 109 lines · 2,300 tokens per session scan A 47c75a157a3a

Subscribe to this mod's changes

drip CLAUDE.md is an instructions file published in the GitHub repository drip-cli/drip (5 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 2,300 tokens to every session, about $0.0115 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.