group-by-camera

group-by-camera is a command for Claude Code from danielrosehill/Claude-Image-Production-Plugin. It costs 0 tokens per session (428 once invoked), scanned A, original, MIT.

A command for grouping photos by the camera make and model recorded in their EXIF metadata. EXIF is information stored inside an image file, such as the camera, lens, and capture details.

In plain words
What is it for?
Use it to organise a photo folder by camera, create linked folders, or produce a CSV list showing each image’s camera and group.
Why use it?
It replaces manual sorting and keeps photos with missing or incomplete camera information in separate folders. It shows the proposed groups before files are moved or linked.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the image-production plugin — 29 skills, 19 commands shipped together

Good fit Use it to organise a photo folder by camera, create linked folders, or produce a CSV list showing each image’s camera and group.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/danielrosehill/claude-image-production-plugin/group-by-camera
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/danielrosehill/Claude-Image-Production-Plugin

Made for: Claude Code.

Or install image-production, the plugin that ships this one along with the rest of its 29 skills, 19 commands.

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 group-by-camera

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielrosehill/claude-image-production-plugin/group-by-camera.svg)](https://agentmods.dev/commands/danielrosehill/claude-image-production-plugin/group-by-camera)
Your own site
<a href="https://agentmods.dev/commands/danielrosehill/claude-image-production-plugin/group-by-camera"><img src="https://agentmods.dev/badge/commands/danielrosehill/claude-image-production-plugin/group-by-camera.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 428 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 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.1 $0.00000 $0.00428
Opus 5 $0.00000 $0.00214
Sonnet 5 $0.00000 $0.00086
Haiku 4.5 $0.00000 $0.00043

Measured 8d ago against content hash 88c9ba9c9c81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

group-by-camera 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 8d 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.

commands/group-by-camera.md · 34 lines

What it actually says

Group Images by Camera

Cluster images by EXIF camera Make + Model.

Task

  1. Ask which folder to operate on — default is the current working directory. Confirm recursion; default flat.

  2. Read camera metadata for each image:

    exiftool -s -s -s -Make -Model -LensModel "image.jpg"
    

    Build a bucket label of the form {Make}_{Model} with spaces and slashes replaced by hyphens (e.g. NIKON-CORPORATION_NIKON-D850, Apple_iPhone-15-Pro, SONY_ILCE-7M3).

  3. Bucket files:

    • {Make}_{Model}/ — one folder per unique (Make, Model) pair
    • no-exif/ — images with no readable camera metadata (screenshots, scrubbed photos, generated art)
    • unknown/ — EXIF present but Make or Model missing
  4. Preview before acting — table of bucket label → count, plus a sample filename per bucket. Wait for user confirmation. Offer to merge near-duplicate bucket names (common: NIKON CORPORATION vs NIKON).

  5. Prefer symlinks or CSV manifest over physical moves:

    • Option A: symlinked subfolders
    • Option B: metadata/camera-buckets.csv with filename,make,model,bucket
    • Option C: physical move on explicit confirmation
  6. Log to notes/group-by-camera-{timestamp}.md with bucket counts and the no-EXIF / unknown tallies.

Notes

  • Lens model is interesting but produces fragmented buckets — include it in the CSV manifest but not in the folder label.
  • Phone photos often have consistent Make/Model but many firmware variants; don't try to split on firmware.
  • If a user's library is dominated by no-exif/, that usually means it was previously scrubbed — note this in the log.
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. 8d ago First seen · 34 lines · 0 tokens per session scan A 88c9ba9c9c81

Subscribe to this mod's changes

group-by-camera is a command published in the GitHub repository danielrosehill/Claude-Image-Production-Plugin (16 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 428 tokens. 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-30.