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.
npx agentmods add commands/erhangundogan/videre/prunegit clone --depth 1 https://github.com/erhangundogan/videreWrote 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.
[](https://agentmods.dev/commands/erhangundogan/videre/prune)<a href="https://agentmods.dev/commands/erhangundogan/videre/prune"><img src="https://agentmods.dev/badge/commands/erhangundogan/videre/prune.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00015 | $0.01348 |
| Opus 5 | $0.00008 | $0.00674 |
| Sonnet 5 | $0.00003 | $0.00270 |
| Haiku 4.5 | $0.00002 | $0.00135 |
Grade A, and why
prune 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Syncs the database with what is actually on disk. It never deletes real files: only database rows, and cached data derived from photos that are already gone.
videre prune --dry-run # show what would be removed
videre prune # remove stale entries and refresh metadata
videre prune --silent # no per-file output
videre prune --db ~/photos.db # use a specific database
videre prune --prune-unreachable # also drop entries whose folder is gone
videre prune --force # allow an unusually large cleanup
When to run it
The usual moment is right after deleting duplicates:
videre dedupe | xargs trash # files are gone from disk...
videre prune # ...now the database agrees
Until you do, videre stats still counts the deleted files, and reports still
list them (they are filtered out at generation time, but the rows remain).
Also worth running after moving or reorganising folders by hand, since rows are keyed by path: a moved file looks like a deletion plus a new file, and the old row lingers until pruned.
Always look first on a library you care about:
videre prune --dry-run
What one pass does
- Removes rows for files no longer on disk
- Refreshes the stored timestamp of any file whose modification time has changed since the last pass
- Deletes embeddings whose photo is gone, across every model
- Deletes cached thumbnails whose photo is gone
Steps 3 and 4 are the reason to prune at all rather than ignoring stale rows: they are what actually reclaims disk space.
Step 2 only touches rows that actually differ, so the count tells you something.
Its usual cause is videre fix-dates, which rewrites
modification times from EXIF and deliberately leaves the database alone; running
prune afterwards reports exactly the number of files it changed. On a library
nothing has touched, the count is zero and a second pass is a no-op.
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.
- 4d ago First seen · 139 lines · 15 tokens per session scan A f71f5372c8cb
prune is a command published in the GitHub repository erhangundogan/videre (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,348 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.
Other commands, from other repositories
review-renovate
Review and merge renovate PRs with automerge configuration updates.
monitor-ci
Monitors pull request CI checks until they are resolved (pass or fail).
plan-regression-tests
Plan regression tests for existing code with it.skip statements.
database-setup
Use when a project needs to store data and has no database yet. Setting up Supabase, creating tables, writing queries, and connecting them to the frontend. Written for designers.
ingest
Manually add knowledge to the Weaviate store.
symfony-migrations
Create and manage Doctrine migrations for database schema changes.