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.07783 | $0.07783 |
| Opus 5.5 | $0.03113 | $0.03113 |
| Sonnet 5.5 | $0.01557 | $0.01557 |
| Haiku 4.5 | $0.00778 | $0.00778 |
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 9d 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 — 109 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). 7 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.
- 9d ago Changed · +1 lines · +363 tokens per session 682352ece8a2
- 11d ago Changed · +9 lines · +447 tokens per session 00cd97616665
- 1mo ago Changed · +1 lines · +14 tokens per session d7a0b3a864fc
- 1mo ago Changed · +4 lines · +2,239 tokens per session 255ddeb87fd0
- 1mo 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 (928 stars, last pushed 3d ago), licensed MIT. It adds 7,783 tokens to every session, about $0.0311 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).