rclone_sync

rclone_sync is a command for Claude Code from olorehq/olore. It costs 10 tokens per session (3,044 once invoked), scanned A, a copy of rclone_copyto, MIT.

A command that changes a destination so it matches a source, including deleting destination files that are not in the source. It compares files using their size and modification time or checksums.

In plain words
What is it for?
Use it for one-way synchronization between local folders and remote storage; test with a dry run or interactive mode first.
Why use it?
It keeps two storage locations identical, but can delete data from the destination if used incorrectly.

Command for Claude Code

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

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.

agentmods
npx agentmods add commands/olorehq/olore/rclone_sync
Clone the repo
git clone --depth 1 https://github.com/olorehq/olore

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_sync

README.md
[![agentmods](https://agentmods.dev/badge/commands/olorehq/olore/rclone_sync.svg)](https://agentmods.dev/commands/olorehq/olore/rclone_sync)
Your own site
<a href="https://agentmods.dev/commands/olorehq/olore/rclone_sync"><img src="https://agentmods.dev/badge/commands/olorehq/olore/rclone_sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 78% 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.00010 $0.03044
Opus 5 $0.00005 $0.01522
Sonnet 5 $0.00002 $0.00609
Haiku 4.5 $0.00001 $0.00304

Measured 2d ago against content hash 4536ebf4cae5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rclone_sync 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 2d 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

78% identical to rclone_copyto — 101 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.

vault/packages/rclone/1.74.3/contents/commands/rclone_sync.md · 251 lines

How it starts

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

rclone sync

Make source and dest identical, modifying destination only.

Synopsis

Sync the source to the destination, changing the destination only. Doesn't transfer files that are identical on source and destination, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary (except duplicate objects, see below). If you don't want to delete files from destination, use the copy command instead.

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

rclone sync --interactive SOURCE remote:DESTINATION

Files in the destination won't be deleted if there were any errors at any point. Duplicate objects (files with the same name, on those providers that support it) are not yet handled. Files that are excluded won't be deleted unless --delete-excluded is used. Symlinks won't be transferred or deleted from local file systems unless --links is used.

It is always the contents of the directory that is synced, not the directory itself. So when source:path is a directory, it's the contents of source:path that are copied, not the directory name and contents. See extended explanation in the copy command if unsure.

If dest:path doesn't exist, it is created and the source:path contents go there.

It is not possible to sync overlapping remotes. However, you may exclude the destination from the sync with a filter rule or by putting an exclude-if-present file inside the destination directory and sync to a destination that is inside the source directory.

Rclone will sync the modification times of files and directories if the backend supports it. If metadata syncing is required then use the --metadata flag.

Note that the modification time and metadata for the root directory will not be synced. See https://github.com/rclone/rclone/issues/7652 for more info.

Note: Use the -P/--progress flag to view real-time transfer statistics

Read the full file on GitHub · 251 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. 2d ago First seen · 251 lines · 10 tokens per session scan A 4536ebf4cae5

Subscribe to this mod's changes

rclone_sync is a command published in the GitHub repository olorehq/olore (103 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 3,044 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 78% identical to rclone_copyto, differing in 101 lines, and is treated as a copy.