Lazy Inbox Cleaner:以 AI 自動整理檔案
Lazy Inbox Cleaner: Automated File Sorting with AI
Lazy Inbox Cleaner 以 Gemini 模型分析待整理檔案內容,並在背景自動分類及移動檔案至相應資料夾。工具以 Python 建構,按檔名及文字片段分類檔案。架構亦可改用本機開放權重模型,例如透過 Ollama 使用 Gemma 2,讓私人文件留在本機。
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
I built Lazy Inbox Cleaner, an automated background file organizer that cures messy Downloads and Desktop folders.
Instead of forcing you to waste time opening, reading, and dragging cluttered files into subfolders, this tool automatically inspects new unorganized files (code snippets, logs, invoices, or general docs), uses an AI model to classify their contents, and moves them into neatly labeled directories. Anyone who constantly leaves files sitting in their downloads folder gets to be a little lazier.
Demo
Code
Lazy Inbox Cleaner 🦥📁
An automated background file sorter built for the Hacktoberfest 2026 Week 3 DEV Challenge (Theme: Slow and Steady).
📖 Overview
Are you tired of standing over a cluttered Downloads or Desktop folder, opening random files, and manually dragging them into subfolders? Lazy Inbox Cleaner lets you channel your inner sloth and let AI do the heavy lifting.
It automatically inspects unorganized files in a target directory, analyzes their contents using a fast, lightweight AI model, and organizes them into categorized folders (Invoices, Code, Logs, Docs, Misc).
✨ Features
- Zero Effort: Automatically categorizes files based on both filename and internal text snippets.
- Smart Classification: Uses Google's Gemini models to distinguish between source code, system logs, invoices, and standard documents.
- Privacy-Conscious Architecture: Designed to seamlessly swap to local open-weight models (e.g., Gemma 2 via Ollama) so private documents never leave…
How I Built It
The core application is built in Python. It scans a target directory, extracts snippets from unorganized text files, and sends a classification prompt to Gemini (configured to target fast, lightweight inference). The script parses the structural category (Invoices, Code, Logs, or Docs), dynamically creates the appropriate directory, and moves the file automatically using shutil.
Why Does Open Innovation Matter?
Open innovation and open-weight models (like Gemma via Ollama) are crucial for personal desktop utilities.
Running file-sorting logic over local personal files—such as financial receipts, server logs, or private code—requires privacy. An open-weight model running locally or through light inference ensures that your personal data stays on your machine, requires zero paid API lock-in, and allows you to automate daily digital clutter without sending private documents to third-party databases.
Prize Categories
Best Use of Gemma
來源:DEV Community · dev.to
