rclone_dedupe

rclone_dedupe is a command for Claude Code from chaunsin/agent-skills. It costs 11 tokens per session (1,837 once invoked), scanned A, a copy of rclone_dedupe, Apache-2.0.

A command for finding files with duplicate names or duplicate contents in cloud storage managed by rclone. Rclone is a command-line tool for connecting to and managing files on storage services.

In plain words
What is it for?
Use it to deduplicate files by name or by matching file hash, and to merge directories with the same name. It can delete files, so review its choices carefully first.
Why use it?
It helps clean up repeated files while letting you choose whether to delete extras or rename them.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to deduplicate files by name or by matching file hash, and to merge directories with the same name. It can delete files, so review its choices carefully first.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/chaunsin/agent-skills/rclone_dedupe
Install

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.

Clone the repo
git clone --depth 1 https://github.com/chaunsin/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rclone_dedupe

README.md
[![agentmods](https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_dedupe/github.svg)](https://agentmods.dev/commands/chaunsin/agent-skills/rclone_dedupe)
Your own site
<a href="https://agentmods.dev/commands/chaunsin/agent-skills/rclone_dedupe"><img src="https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_dedupe/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rclone_dedupe

Your own site · 80×15
<a href="https://agentmods.dev/commands/chaunsin/agent-skills/rclone_dedupe"><img src="https://agentmods.dev/badge/commands/chaunsin/agent-skills/rclone_dedupe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.01837
Opus 5.5 $0.00004 $0.00735
Sonnet 5.5 $0.00002 $0.00367
Haiku 4.5 $0.00001 $0.00184

Measured 3mo ago against content hash 620cce0eaea1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rclone_dedupe 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 3mo ago.

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.

Origin

This is a copy

97% identical to rclone_dedupe — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/rclone-cli/references/commands/rclone_dedupe.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Official documentation: https://rclone.org/commands/rclone_dedupe/

rclone dedupe

Interactively find duplicate filenames and delete/rename them.

Synopsis

By default dedupe interactively finds files with duplicate names and offers to delete all but one or rename them to be different. This is known as deduping by name.

Deduping by name is only useful with a small group of backends (e.g. Google Drive, Opendrive) that can have duplicate file names. It can be run on wrapping backends (e.g. crypt) if they wrap a backend which supports duplicate file names.

However if --by-hash is passed in then dedupe will find files with duplicate hashes instead which will work on any backend which supports at least one hash. This can be used to find files with duplicate content. This is known as deduping by hash.

If deduping by name, first rclone will merge directories with the same name. It will do this iteratively until all the identically named directories have been merged.

Next, if deduping by name, for every group of duplicate file names / hashes, it will delete all but one identical file it finds without confirmation. This means that for most duplicated files the dedupe command will not be interactive.

dedupe considers files to be identical if they have the same file path and the same hash. If the backend does not support hashes (e.g. crypt wrapping Google Drive) then they will never be found to be identical. If you use the --size-only flag then files will be considered identical if they have the same size (any hash will be ignored). This can be useful on crypt backends which do not support hashes.

Next rclone will resolve the remaining duplicates. Exactly which action is taken depends on the dedupe mode. By default, rclone will interactively query the user for each one.

Important: Since this can cause data loss, test first with the --dry-run or the --interactive/-i flag.

Here is an example run.

Read the full file on GitHub · 167 lines

Changes

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.

  1. 3mo ago First seen · 167 lines · 11 tokens per session scan A 620cce0eaea1

Subscribe to this mod's changes

rclone_dedupe is a command published in the GitHub repository chaunsin/agent-skills (2 stars, last pushed 12d ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,837 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to rclone_dedupe, differing in 2 lines, and is treated as a copy.

Related

rclone_dedupe compared with commands from other repositories

rclone_dedupe next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rclone_dedupechaunsin/agent-skillsCommand212d agoApache-2.0A11Claude Code
initnekocode/filetree-skillCommand1634mo agononeA25Claude Code
uninstallnekocode/filetree-skillCommand1634mo agononeA36Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code