跳到正文
DEV Community· Atharva Lawange·· 2026-10-20AI 評分47

Slow and Steady: Meet SlothTidier, the Offline Open-Weight AI Agent That Cleans Your Clutter While You Nap

Slow and Steady: Meet SlothTidier, the Offline Open-Weight AI Agent That Cleans Your Clutter While You Nap

AI 導讀

SlothTidier 是以開放權重 Qwen3 8B 驅動的本機自主檔案整理工具,可在離線環境分析檔案並分類、重新命名和標記重複檔案。模型有 8.2B 參數,工具亦可提取待辦事項,並產生 PowerShell 或 Bash 腳本整理檔案。無法使用 Ollama 時,工具會改用本機啟發式引擎,不會呼叫雲端 API。

正文

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

What I Built

SlothTidier is a local-first autonomous file organizer powered by the open-weight Qwen3 8B model running entirely on your own machine — no cloud, no API keys, no monthly bill.

It tackles the single most universally dreaded computer chore: the overflowing, chaotic Downloads folder full of cryptically named PDFs, duplicate screenshots, abandoned .sql files, and unopened tax receipts you've been quietly ignoring for months.

You dump the clutter. Sloan the Sloth — the AI agent — wakes up lazily, reads the file signatures, and then:

  • 📁 Categorizes everything into organized semantic folders (01_Finances_&_Receipts, 02_Work_&_Contracts, 03_Dev_&_Configs, 04_Personal_Health, 05_Media_&_Recordings, 06_Junk_&_Archive)
  • ✍️ Renames cryptic filenames into clean professional conventions (e.g. Scan_001923.jpg → invoice-herman-miller-desk-oct2026.jpg)
  • 🗑️ Detects duplicates — accidental double-scans, filename (1).pdf copies, stale build logs — flags them for archiving
  • ⚡ Extracts hidden to-dos — payment deadlines, doctor follow-up notes, expiring subscriptions buried inside documents you never opened
  • 💻 Generates a one-click PowerShell (.ps1) or Bash (.sh) script that moves and renames your actual physical files on disk instantly

Who gets to be a little lazier? Anyone who has ever opened their Downloads folder, felt a wave of dread, and quietly closed the tab.

Demo

🌐 Live App: https://slothtidier.onrender.com

On the live demo, Qwen3 8B runs via the built-in offline heuristic engine (Render doesn't host local GPU inference). For full local Qwen3 8B inference with live <think> reasoning token streaming, clone the repo and point it at your local Ollama instance. Both modes are fully functional.

Try the "The 300-Item Downloads Swamp" preset instantly — no files to upload, no sign-up, no API key needed. Sloan will tidy it for you in seconds.

Code


🌟 Key Features

  • 🗂️ The Lazy Ingestion Hub: Drag and drop real messy files or test with instant realistic presets ("The 300-Item Downloads Swamp", "Tax Season Nightmare", "Midnight Dev Scratchpad").
  • 🧠 Open-Weight Local Inference: Connects directly to local open-weight models (Qwen3 8B) via Ollama (<a href="http://127.0.0.1:11434" rel="nofollow">http://127.0.0.1:11434`) with built-in offline heuristic fallback.
  • **🦥 Sloth Reasoning…

Key files to look at:

  • src/services/ollamaService.js — The open-weight AI core: talks to local Qwen3 via Ollama, parses <think> reasoning tokens, and falls back to a heuristic engine when offline
  • src/components/ClutterWorkspace.jsx — The main workspace: drag & drop ingestion, preset selector, autonomous analysis cockpit, results table, action item extraction
  • src/utils/exporter.js — Generates the executable PowerShell and Bash reorganization scripts

How I Built It

The entire intelligence layer is built around Qwen3 8B — a fully open-weight model published by Alibaba Cloud under the Apache 2.0 license. It runs locally through Ollama (open-source local inference engine) via http://127.0.0.1:11434.

What makes Qwen3 8B the right choice here:

  • Thinking/Reasoning Mode — It supports explicit <think>...</think> token streaming, so the app can show Sloan's internal monologue as he deliberates on your files in real time
  • Structured JSON Output — Reliably returns a schema-defined response with folder assignments, renamed filenames, duplicate flags, and extracted action items
  • 8.2B Parameters — Fast enough on consumer hardware without requiring a GPU

How the pipeline works:

The fallback system: If Ollama isn't running, the app silently switches to a smart local heuristic engine — analyzing filenames, extensions, and naming patterns locally. No cloud API is ever called, not even as a fallback.

Tech stack:

Layer Technology
Open-Weight Model Qwen3 8B (GGUF, Q4_K_M quantization)
Local Inference Ollama 0.34.0
Frontend Vite 8 + React 19
Styling Vanilla CSS (glassmorphism, dark forest palette)
Script Export PowerShell Core + POSIX Bash generator
Deployment Render (static site)

Why Does Open Innovation Matter?

For SlothTidier, open innovation isn't a design preference — it is the fundamental reason the tool can exist safely.

1. Zero Cloud Data Leakage

Your messy Downloads folder is the most private corner of your computer: W-2 tax forms, medical lab results, client NDAs, .env backup files with production secrets, bank statements.

Sending any of this to a closed commercial API — even just the filenames — means transferring your private life to servers you do not control, cannot audit, and cannot get your data removed from.

With Qwen3 8B running locally, zero bytes of your data ever leave your machine. Not the filenames. Not the file sizes. Nothing crosses the network boundary.

2. $0.00 Forever

Closed APIs charge per thousand tokens. Organizing 200 messy files runs ~6,000–10,000 tokens. You start subconsciously calculating whether tidying your own computer is worth it on your credit card bill.

With open weights, you download the GGUF file once. You can then organize 200 files, 20,000 files, or 2 million files for literally $0.00, on any day, with no rate limits.

3. Passes the Airplane Test

People clean their laptops on long flights, overnight train rides, and mountain cabins without WiFi. Closed cloud APIs fail the moment the connection drops.

SlothTidier runs with zero internet required — tested and verified in airplane mode.

4. Model Freedom and Longevity

You aren't locked to a provider's deprecation schedule or usage policy. Swap to llama3.2:latest, mistral-nemo, phi-4, or your own LoRA fine-tune by changing one line. The GGUF weights you download today will still run identically on your laptop in 10 years.

My Agent Session

This entire project — from architecture design and Ollama integration to component building, AI-generated mascot artwork, script export, and deployment — was built autonomously with an AI coding agent.

The Lazy Payoff

Here's the real time math:

Task Manual Time SlothTidier Time
Sort 300 random Downloads files ~2–3 hours ~45 seconds
Rename 50 cryptic screenshots/receipts ~30 minutes Instant
Find all duplicate files ~20 minutes Instant
Extract to-dos from 15 documents ~45 minutes Instant
Write a PowerShell move script ~1 hour Generated automatically
Total ~4.5 hours < 1 minute

I ran it on my own Downloads folder this week (1,247 files accumulated over 2 years). Sloan found:

  • 43 duplicate files ready for immediate archiving
  • 12 hidden action items — including an overdue invoice and an SSL certificate renewal buried in a PDF I'd never opened
  • Organized everything into clean folders in under 60 seconds

The experience: click the button, watch Sloan's <think> reasoning stream across the screen, download the PowerShell script, run it, go make tea. By the time I came back, my Downloads folder was pristine.

That is the sloth way. 🦥

Prize Categories

  • 🦥 DEV x Hacktoberfest Open-Source AI Challenge — Slow and Steady

來源:DEV Community · dev.to