fclones
$ fclones Community Med Riskfclones 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.
brew install fclones Multi-threaded local hashing and fclones group --format json outclass any MCP wrapper for deduplication.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean UNIX pipeline architecture with fclones group --format json, --dry-run on all mutators, and zero interactive prompts.
- Native
--format jsononfclones group - Every write subcommand supports
--dry-run
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
Cross-platform Rust binary available via brew install fclones, cargo install fclones, and GitHub releases.
- Supports macOS, Linux, and Windows
Multi-stage size/prefix/full hashing achieves extreme throughput while supporting hardlinks, CoW reflinks, and removal.
- Parallel multi-stage hashing with zero false positives
Actively maintained MIT-licensed Rust project (pkolaczk/fclones).
- Well-tested upstream repository
Comprehensive README and subcommand --help covering group, link, dedupe, remove, and --format json.
- Detailed examples and flag docs in README
Security, Auth & Guardrails
None required; operates on local files and optional local hash cache.
100% free, offline, and open-source (MIT).
# 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
fclones group --format json --min 1024 ./assets
Scans files >=1024 bytes read-only and outputs duplicate groups, hashes, sizes, and paths in JSON.
fclones group ./assets | fclones remove --dry-run
Shows exactly which duplicate copies would be removed without touching any file on disk.
Controlled Writes & Previews
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 jsonand pipedlink/remove. - +
--dry-runavailable on every destructive or mutating subcommand.
Caveats & Pitfalls
- !
fclones removepermanently deletes duplicates if run without--dry-run; always preview first.