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

fclones

$ fclones Community Med Risk
Piotr Kolaczkowski · Files & Search · MIT · macos / linux / windows

fclones separates read-only duplicate discovery (fclones group --format json) from deduplication actions (fclones link and fclones remove) via Unix pipes. Discovery never modifies files, and every mutation subcommand supports --dry-run and priority rules before hardlinking, reflinking, or deleting.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install fclones
CLI vs MCP Decision CLI Only

Multi-threaded local hashing and fclones group --format json outclass any MCP wrapper for deduplication.

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

Clean UNIX pipeline architecture with fclones group --format json, --dry-run on all mutators, and zero interactive prompts.

  • Native --format json on fclones group
  • Every write subcommand supports --dry-run
Trust & Safety 22 / 25

Read-only group phase cannot delete files; link/remove support --dry-run and priority retention policies.

  • Two-stage discovery-then-action pipeline with --dry-run
Setup & Portability 14 / 15

Cross-platform Rust binary available via brew install fclones, cargo install fclones, and GitHub releases.

  • Supports macOS, Linux, and Windows
Utility & Efficiency 15 / 15

Multi-stage size/prefix/full hashing achieves extreme throughput while supporting hardlinks, CoW reflinks, and removal.

  • Parallel multi-stage hashing with zero false positives
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed Rust project (pkolaczk/fclones).

  • Well-tested upstream repository
Docs & Verifiability 9 / 10

Comprehensive README and subcommand --help covering group, link, dedupe, remove, and --format json.

  • Detailed examples and flag docs in README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates on local files and optional local hash cache.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# fclones Agent Rules
- Always start with `fclones group --format json` (read-only) before piping into `link` or `remove`.
- Run `fclones remove --dry-run` or `fclones link --dry-run` first, and prefer `link`/`dedupe` over `remove` when possible.

Agent-Ready Command Recipes

Safe Read-Only Queries

Find duplicate files as structured JSON
fclones group --format json --min 1024 ./assets

Scans files >=1024 bytes read-only and outputs duplicate groups, hashes, sizes, and paths in JSON.

Preview deduplication via dry-run pipe
fclones group ./assets | fclones remove --dry-run

Shows exactly which duplicate copies would be removed without touching any file on disk.

Controlled Writes & Previews

Replace duplicate files with hardlinks safely
fclones group ./assets | fclones link

Preserves file contents across all paths while reclaiming disk space via hardlinks (preview with --dry-run first).

Strengths for Agents

  • + Strict separation between read-only fclones group --format json and piped link/remove.
  • + --dry-run available on every destructive or mutating subcommand.

Caveats & Pitfalls

  • ! fclones remove permanently deletes duplicates if run without --dry-run; always preview first.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI