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.
npx agentmods add instructions/umputun/revdiff/claude-mdgit clone --depth 1 https://github.com/umputun/revdiffWhat 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 | $0.04720 | $0.04720 |
| Opus 5 | $0.02360 | $0.02360 |
| Sonnet 5 | $0.00944 | $0.00944 |
| Haiku 4.5 | $0.00472 | $0.00472 |
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 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.
How it starts
The opening of the file, as written. The whole thing — 94 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/- 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/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.
- yesterday 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 (826 stars, last pushed 3d ago), licensed MIT. It adds 4,720 tokens to every session, about $0.0236 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-30.
Other instructions, from other repositories
hunk AGENTS.md
Instructions for modem-dev/hunk, covering hunk agent notes, purpose, architecture, shared review seam and architectural rules.
critique AGENTS.md
Instructions for remorses/critique, covering opentui, using unreleased opentui versions, bun, react and rules.
hunk CLAUDE.md
Instructions for modem-dev/hunk, a project described as: Review-first terminal diff viewer for agentic coders.
darq CLAUDE.md
Instructions for dark-builders/darq, covering claude.md, project, build & test commands, workspace structure and architecture.
darq AGENTS.md
Instructions for dark-builders/darq: For project context, conventions, architecture, and implementation rules, see.
patch-file-mcp-fork AGENTS.md
AGENTS.md instructions for matdev83/patch-file-mcp-fork, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.