Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

riff

$ riff Community Low Risk
Johan Walles · Files & Search · MIT · macos / linux / windows

riff (crate riffdiff) reads unified diffs from stdin or compares two files/directories directly, highlighting exact changed tokens within modified lines. With --no-pager and --color=off it exits cleanly in pipes, though its core value is visual highlighting for human readers.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install riff
CLI vs MCP Decision CLI Only

Stream diff filtering belongs in Unix pipes (git diff | riff); agents should usually read plain git diff instead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

Supports --no-pager and --color=off for clean non-TTY piping, but lacks --json and defaults to spawning a pager with ANSI color highlights.

  • Explicit --no-pager and --color=off flags
  • No structured JSON output
Trust & Safety 25 / 25

Strictly read-only diff filter with zero write operations or network access.

  • Pure read-only stdin/file diff filter
Setup & Portability 14 / 15

Rust binary available via Homebrew, cargo install riffdiff, and GitHub releases across macOS, Linux, and Windows.

  • Single static Rust binary on major platforms
Utility & Efficiency 11 / 15

Greatly improves human diff scanning inside git pagers, while offering limited extra value to LLMs over git diff.

  • Intra-line word/character diff refinement
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed Rust project (walles/riff).

  • Consistent GitHub releases under MIT license
Docs & Verifiability 7 / 10

Concise GitHub README and --help output documenting git pager config and RIFF env var.

  • Clear CLI options and git integration examples

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads stdin or local files read-only.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# riff Agent Rules
- Always pass `--no-pager` (and `--color=off` when parsing) to prevent `riff` from spawning an interactive pager.
- Prefer plain `git diff` or `difft --display json` when an agent needs token-lean diff input.

Agent-Ready Command Recipes

Safe Read-Only Queries

Compare two files without launching a pager
riff --no-pager --color=off old.txt new.txt

Prints unified diff output cleanly to stdout using --no-pager and --color=off without ANSI escape codes.

Filter a git diff with inline word highlights
git diff HEAD~1 | riff --no-pager

Applies word-level diff refinement over git diff directly to stdout.

Strengths for Agents

  • + Strictly read-only with --no-pager and --color=off flags.
  • + Fast Rust binary that refines diffs down to exact changed character spans.

Caveats & Pitfalls

  • ! Spawns an interactive pager by default unless --no-pager is passed or stdout is redirected.
  • ! No --json output; designed primarily for human visual diff reading.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI