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

icdiff

$ icdiff Community Low Risk
Jeff Kaufman · Files & Search · PSF-2.0 · macos / linux / windows

icdiff compares two files or directory trees (-r) side-by-side in the terminal with line numbers and intra-line color highlights. While deterministic and non-interactive, wide side-by-side columns and ANSI sequences make plain diff -u or difft --display json better suited for LLM context.

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

Local side-by-side file comparison belongs directly in shell commands (icdiff) or git difftool.

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 14 / 25

Exits non-interactively with clean status, yet produces wide side-by-side ANSI columns with no --json or built-in --no-color toggle.

  • Non-interactive execution with --cols override
  • Side-by-side ANSI formatting is noisy for LLM parsing
Trust & Safety 25 / 25

Strictly read-only local comparison script with zero network or write actions.

  • Read-only file and directory diffing
Setup & Portability 13 / 15

Single-file Python script installable via brew, pip, uvx, and distro packages on macOS, Linux, and Windows.

  • Pure Python stdlib script with zero external dependencies
Utility & Efficiency 10 / 15

Convenient human side-by-side git difftool alternative, though less token-efficient for agents than unified diffs.

  • Supports recursive -r directory diffs and --exclude-lines
Maintenance & Lineage 7 / 10

Long-running community Python utility (jeffkaufman/icdiff) under PSF-2.0 with occasional maintenance releases.

  • Mature open-source repo with stable CLI
Docs & Verifiability 7 / 10

Clear README and --help covering color maps, --cols, and git-icdiff integration.

  • Concise README and built-in --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on local files and directories.

Side Effects
Read-Only
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# icdiff Agent Rules
- Always pass `--cols=<width>` (e.g., `--cols=120`) in non-TTY shells where terminal width detection falls back to 80 columns.
- Prefer `git diff` or `difft --display json` when agents parse diffs, reserving `icdiff` for human side-by-side review.

Agent-Ready Command Recipes

Safe Read-Only Queries

Compare two files side-by-side with explicit column width
icdiff --line-numbers --cols=120 a.py b.py

Forces fixed --cols=120 width so non-TTY invocations do not fail terminal width auto-detection.

Recursively diff two directories
icdiff -r --cols=120 dir_old dir_new

Compares matching files across dir_old and dir_new read-only.

Strengths for Agents

  • + Zero-dependency Python script easy to run via brew or uvx.
  • + Strictly read-only with recursive -r directory diffing.

Caveats & Pitfalls

  • ! Side-by-side column alignment and ANSI color codes waste tokens and hinder machine parsing.
  • ! Requires --cols in headless shells to avoid narrow 80-column wrapping.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI