fix-dates

fix-dates is a command for coding agents from erhangundogan/videre. It costs 13 tokens per session (1,478 once invoked), scanned A, original, Apache-2.0.

A command that sets each photo file's modification time to the date recorded by the camera in its EXIF metadata.

In plain words
What is it for?
Use it to correct photo file dates before sorting, browsing, or organizing a photo collection. It offers a preview mode and asks for confirmation before changing files.
Why use it?
Copying or restoring photos often changes their file dates, making folders sort by the copy date instead of the day the photos were taken.

Command

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/erhangundogan/videre/fix-dates
Clone the repo
git clone --depth 1 https://github.com/erhangundogan/videre

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 fix-dates

README.md
[![agentmods](https://agentmods.dev/badge/commands/erhangundogan/videre/fix-dates.svg)](https://agentmods.dev/commands/erhangundogan/videre/fix-dates)
Your own site
<a href="https://agentmods.dev/commands/erhangundogan/videre/fix-dates"><img src="https://agentmods.dev/badge/commands/erhangundogan/videre/fix-dates.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 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,478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00013 $0.01478
Opus 5 $0.00006 $0.00739
Sonnet 5 $0.00003 $0.00296
Haiku 4.5 $0.00001 $0.00148

Measured 3d ago against content hash 9b5b16a0e345, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-dates 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 3d 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.

docs/src/content/docs/commands/fix-dates.md · 152 lines

How it starts

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

Sets each file's modification time from its EXIF date, so photos sort by when they were taken rather than when they were last copied.

:::danger[This is the only command that changes your files] There is no undo. Once a file's original modification time is overwritten, it is gone unless you have a backup. It asks for confirmation first, and --dry-run shows exactly what it would do. :::

videre fix-dates --dry-run             # show what would change, touch nothing
videre fix-dates                       # apply (asks for confirmation first)
videre fix-dates --yes                 # apply without asking (for scripts)
videre fix-dates --silent              # no per-file output
videre fix-dates --db ~/photos.db      # use a specific database

Why you would want this

Copying, syncing, restoring from backup, or exporting from a photo app all rewrite a file's modification time to now. A folder of holiday photos ends up all dated the day you copied them, and every tool that sorts by date, from ls to Finder to your file manager, shows them in the wrong order.

The date the camera recorded is still there, in EXIF, untouched by any of that. This copies it onto the file itself.

videre scan ~/Photos           # read the EXIF dates
videre fix-dates --dry-run     # see what would change
videre fix-dates               # apply

Exactly what changes

Changed: the file's modification time (mtime), and only that.

Not changed:

File contents Never read or rewritten. Only the timestamp metadata is set
Access time (atime) Left as it was
Creation / birth time Not touched. See the platform notes below
Filename, path, permissions Untouched
The database Not updated by this command; run videre prune to re-sync modified_at

Sub-second precision is set to zero, since EXIF dates have one-second resolution. A file whose mtime was 10:31:07.482 becomes 10:31:07.000.

Which files are affected

Read the full file on GitHub · 152 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. 3d ago First seen · 152 lines · 13 tokens per session scan A 9b5b16a0e345

Subscribe to this mod's changes

fix-dates is a command published in the GitHub repository erhangundogan/videre (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,478 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.