Skip to content

Packs / personal-productivity-public

duplicate-file-finder

Find duplicate files (same content) across folders and see how much space removing them would free

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-personal-productivity-public

Install

logicpacks pack use personal-productivity-public/duplicate-file-finder
get_pack personal-productivity-public/duplicate-file-finder

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-python
  • Checks: 1 in outcome/checks.yaml
  • Code: dupes.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Groups of identical files (size then SHA-256), with the wasted bytes per group and in total; a keep-first suggestion, no deletion.

Verified by: Self-test: 3 copies of one file and 2 of another in a temp tree give 2 groups and the exact wasted bytes.

Steps

  1. Run python3 code/dupes.py ~/Pictures ~/Downloads --min-size 1024.
  2. Review groups; delete or move extras yourself (Finder/trash) so it is recoverable.

Edge cases

  • Hard links show as duplicates but use no extra space (same inode is skipped).
  • Cloud placeholder files (iCloud/Dropbox not downloaded) are skipped by size 0.

Don'ts

  • The tool never deletes; don't add auto-delete.
  • Don't run on system folders or app bundles.