Borrowing it
Nothing to install: this file belongs to umputun/revdiff. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/umputun/revdiff/master/CLAUDE.mdgit clone --depth 1 https://github.com/umputun/revdiffWrote 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/instructions/umputun/revdiff/claude-md)<a href="https://agentmods.dev/instructions/umputun/revdiff/claude-md"><img src="https://agentmods.dev/badge/instructions/umputun/revdiff/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.
<a href="https://agentmods.dev/instructions/umputun/revdiff/claude-md"><img src="https://agentmods.dev/badge/instructions/umputun/revdiff/claude-md.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.09249 | $0.09249 |
| Opus 5.5 | $0.03700 | $0.03700 |
| Sonnet 5.5 | $0.01850 | $0.01850 |
| Haiku 4.5 | $0.00925 | $0.00925 |
Grade A, and why
revdiff 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
revdiff
TUI for reviewing diffs, files, and documents with inline annotations, built with bubbletea.
Architecture: see docs/ARCHITECTURE.md for system design, data flows, interfaces, and design decisions.
Commands
- Build:
make build(output:.bin/revdiff) - Test:
make test(race detector + coverage, excludes mocks) - Lint:
make lintorgolangci-lint run - Format:
make fmtor~/.claude/format.sh - Generate mocks:
go generate ./... - Vendor after adding deps:
go mod vendor
Project Structure
app/- all Go sourceapp/revdiff/- composition root (package main), split by concern:main.go(entrypoint +run()),config.go(options/parsing),stdin.go(stdin mode),renderer_setup.go(VCS wiring),themes.go(theme CLI + adapter),history_save.go(session save)app/diff/- VCS interaction (git + hg + jj), unified diff parsing, VCS detection, Mercurial + Jujutsu support.compare.go—CompareReaderrenderer for--compare-old/--compare-new(runsgit diff --no-index, no repo required)app/ui/- bubbletea TUI package. SingleModelstruct with state grouped into sub-structs (cfg,layout,file,modes,nav,search,annot), methods split across files by concern (~500 lines each). Each source file has a matching_test.go. Seeapp/ui/doc.gofor package docs,docs/ARCHITECTURE.mdfor file-by-file breakdown. Does not importapp/themeorapp/fsutil— theme operations go through theThemeCataloginterfaceapp/ui/style/- color/style resolution: hex-to-ANSI, lipgloss styles, SGR tracking, HSL math. Types:Resolver,Renderer,SGR. Alsodisplay.go- package-levelSanitizeFilenameForDisplayandTruncateLeftToWidth, the shared helpers every filename-rendering surface must route throughapp/ui/sidepane/- file tree + markdown TOC components with cursor/offset managementapp/ui/worddiff/- intra-line word-diff: tokenizer, LCS, line pairing, highlight insertionapp/ui/overlay/- layered popups: help, annotation list, theme selector, file picker. Manager enforces one-at-a-timeapp/highlight/- chroma syntax highlighting, foreground-only ANSIapp/keymap/- configurable keybindings (Actionconstants, parser, defaults, dump)app/theme/- Catalog-centric theme system:Theme(data + serialization) andCatalog(discovery, loading, installation, gallery). Zero standalone functions — all logic as methods. Files:theme.go(Theme struct),catalog.go(Catalog struct + all operations). 8 bundled + community galleryapp/annotation/- in-memory annotation store and structured outputapp/editor/- external$EDITORinvocation for multi-line annotations: temp-file lifecycle, editor resolution ($EDITOR → $VISUAL → vi), andCommand()API returning*exec.Cmd+ completion func fortea.ExecProcess. Consumed byapp/uivia theExternalEditorinterfaceapp/handoff/- prepares user-configured post-flush shell commands. Annotation snapshots are provided on stdin; stdout is suppressed so helpers cannot overwrite the TUI. Consumed byapp/uivia thePostFlushHookinterface andtea.ExecProcessapp/history/- review session auto-save to~/.config/revdiff/history/app/fsutil/- filesystem utilitiesapp/ptybridge/- macOS/Linux PTY bridge (package main) built on demand byplugins/opencode/v2/runtime-check.tsto run a real OpenCode CLI in a terminal. Test helper only:make buildand goreleaser build./app/revdiffalone, so it never shipsapp/ui/mocks/- moq-generated mocks (never edit manually)
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.
- 10d ago Changed · +21 tokens per session 1ea0d684b9e3
- 19d ago Changed · +1 lines · +1,029 tokens per session a78a7c5c350d
- 27d ago Changed 193c14b77d1e
- 1mo ago Changed · +1 lines · +416 tokens per session 36726d9887ee
- 1mo ago Changed · +1 lines · +363 tokens per session 682352ece8a2
- 1mo ago Changed · +9 lines · +447 tokens per session 00cd97616665
- 2mo ago Changed · +1 lines · +14 tokens per session d7a0b3a864fc
- 2mo ago Changed · +4 lines · +2,239 tokens per session 255ddeb87fd0
- 3mo ago First seen · 94 lines · 4,720 tokens per session scan A a0f7c5c98e9c
revdiff CLAUDE.md is an instructions file published in the GitHub repository umputun/revdiff (974 stars, last pushed today), licensed MIT. It adds 9,249 tokens to every session, about $0.0370 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.
revdiff CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| revdiff CLAUDE.mdumputun/revdiff | Instructions file | 974 | today | MIT | A | 9,249 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | today | MIT | A | 3,077 | GitHub Copilot |