organize-files

organize-files is a command for Gemini CLI from bybren-llc/rendertrust. It costs 0 tokens per session (890 once invoked), scanned A, a copy of organize-files, Apache-2.0.

A command that examines files by their contents, renames them, and places them into meaningful folders. It can handle images, PDFs, documents, audio, code, and data files, including duplicate detection by content similarity.

In plain words
What is it for?
Use it to sort screenshots, photos, diagrams, documents, audio, code, and data, add dates to image names, and find likely duplicates.
Why use it?
It helps when a directory is cluttered, files have unclear names, or extensions do not reveal what they contain. Content-based organization can group items more usefully than sorting by file type alone.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

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/bybren-llc/rendertrust/organize-files
Clone the repo
git clone --depth 1 https://github.com/bybren-llc/rendertrust

Made for: Gemini CLI.

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 organize-files

README.md
[![agentmods](https://agentmods.dev/badge/commands/bybren-llc/rendertrust/organize-files.svg)](https://agentmods.dev/commands/bybren-llc/rendertrust/organize-files)
Your own site
<a href="https://agentmods.dev/commands/bybren-llc/rendertrust/organize-files"><img src="https://agentmods.dev/badge/commands/bybren-llc/rendertrust/organize-files.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 890 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% 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.00000 $0.00890
Opus 5 $0.00000 $0.00445
Sonnet 5 $0.00000 $0.00178
Haiku 4.5 $0.00000 $0.00089

Measured yesterday against content hash b40167ec2963, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

organize-files 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 yesterday.

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

100% identical to organize-files — 0 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.

.gemini/commands/media/organize-files.toml · 147 lines

How it starts

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

description = "Organize and rename files based on content analysis"

prompt = """

Organize Files Command

Intelligently organize files using Gemini's multimodal analysis to understand content, not just extensions.

Target Directory: {{args}}

Capabilities

  • Analyze file contents (images, PDFs, documents)
  • Rename based on actual content
  • Organize into semantic folders
  • Add EXIF dates to image filenames
  • Detect duplicates by content similarity

Workflow

1. Scan Directory

!{find {{args}} -type f -not -path "*/.*" 2>/dev/null | head -50}

Get file statistics:

!{find {{args}} -type f -not -path "*/.*" 2>/dev/null | wc -l}

2. Analyze File Types

Categorize files by type:

Category Extensions Analysis Method
Images png, jpg, gif, webp Visual content analysis
Documents pdf, doc, docx Text extraction
Audio mp3, wav, aac Metadata/transcription
Code js, ts, py, etc. Purpose detection
Data json, csv, xml Schema analysis

3. Content-Based Organization

For Images:

  • Screenshots → screenshots/
  • Photos (with faces) → photos/people/
  • Product images → photos/products/
  • Diagrams → diagrams/
  • Icons → icons/

For Documents:

  • Invoices → documents/invoices/
  • Contracts → documents/contracts/
  • Reports → documents/reports/
  • Receipts → documents/receipts/

For Code:

  • Components → by framework/purpose
  • Tests → tests/
  • Utilities → utils/

4. Smart Renaming

Apply naming conventions:

Images with EXIF:

IMG_1234.jpg → 2025-01-14_vacation_beach_sunset.jpg

Documents:

Document1.pdf → 2025-01-14_invoice_acme_corp_1234.pdf

Screenshots:

Screenshot 2025-01-14.png → screenshot_vscode_debug_panel.png

5. Generate Organization Plan

Before making changes, show plan:

## File Organization Plan

### Will Create Folders:
- photos/
- documents/invoices/
- screenshots/

### Will Rename:
| Original | New Name | Reason |
|----------|----------|--------|
| IMG_1234.jpg | 2025-01-14_beach.jpg | EXIF date + content |
| doc.pdf | invoice_acme_123.pdf | Invoice detected |

### Will Move:
| File | From | To |
|------|------|-----|
| screenshot.png | ./ | screenshots/ |

Proceed? (y/n)

Read the full file on GitHub · 147 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. yesterday First seen · 147 lines · 0 tokens per session scan A b40167ec2963

Subscribe to this mod's changes

organize-files is a command published in the GitHub repository bybren-llc/rendertrust (7 stars, last pushed 5mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 890 tokens. A static security scan graded it A with 0 findings. It is 100% identical to organize-files, differing in 0 lines, and is treated as a copy.