跳到正文
DEV Community· Niraj Nagrale·· 2026-10-23AI 評分38

SlothSort:整理下載資料夾的本地 AI 助手

SlothSort: A Local AI Assistant for the Downloads Folder

AI 導讀

SlothSort 會分析檔名,使用本地 AI 模型建議分類和更清晰的檔名,並在用戶確認後才移動檔案。它以 Streamlit 建構介面,透過本地 Ollama 伺服器執行開放權重模型 qwen2.5:3b,只處理檔名。模型下載後,每個檔案的推理無須付費,提示詞、分類清單和模型選擇均可檢視及更改。

正文

Niraj Nagrale

Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady Submission 🦥

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady

What I Built

SlothSort helps tidy a folder without the tedious drag-and-drop routine. It looks at filenames, asks a local AI model to suggest categories and clearer names, and presents the proposed moves for review. Files are only moved after the user confirms the plan.

Demo

The project currently runs locally. Install the dependencies and follow the Ollama setup in the README. There is no public demo yet.

Code

View the source code on GitHub.

How I Built It

The interface uses Streamlit, and the app asks a local Ollama server to run the open-weight qwen2.5:3b model. The model sees filenames only and returns a category plus a suggested name. The Python app validates that response, sanitizes names, checks for conflicts, and requires explicit approval before moving anything.

Why Does Open Innovation Matter?

Filenames can contain personal or work-related details. Local inference keeps them on the user's machine rather than sending them to a cloud API. After the one-time model download, there is no per-file inference fee. The prompt, category list, and model choice are all open to inspection and change.

My Agent Session

I do not have a shareable DevRelay session link for this project.

The Lazy Payoff

SlothSort turns a pile of filenames into a proposed folder structure in one step, while keeping the final decision with the user. Add a real time-saved estimate here after trying it on a folder and timing the manual alternative.

來源:DEV Community · dev.to