SlothSort: Let a Local Gemma Model Clean Up Your Messy Folder
说明与用途
SlothSort 是一个隐私优先的 CLI,利用通过 Ollama 运行的本地 Gemma 模型对文件进行分类并移动,提供 dry‑run 预览和撤销功能。
问题
Users struggle to organize files in a messy folder while preserving privacy and avoiding accidental data loss.
结果
SlothSort enables safe, privacy‑preserving organization of a single folder’s immediate files using a local Gemma model, with dry‑run, apply, and undo features.
工作流
- Select target folder
- Read file names, extensions, and sizes
- Send metadata to local Gemma model via Ollama
- Validate returned JSON plan
- Show dry‑run preview
- Apply moves when --apply is provided
- Create undo manifest
- Undo last operation with --undo
证据
SlothSort is a privacy‑first Python CLI that organizes the immediate files in a messy folder.
It shows a dry‑run first, never overwrites files, and can undo the latest organization pass.
SlothSort scans only the immediate files in the selected folder and sends their names, extensions, and sizes to a local gemma3:1b model through Ollama's HTTP API.
I treated model output as untrusted input. SlothSort rejects malformed JSON, invented or duplicated files, incomplete plans, path traversal, unsafe category names, and overwrite collisions.
- 记录日期: 2026-10-26T10:11:33.456Z