{"slug": "sloath-ai", "title": "Sloath-AI", "summary": "A developer built SlothDesk AI, an open-source, privacy-first desktop assistant that uses a locally running Ollama model (tested with qwen2.5:1.5b) to sort messy folders into categories, rename PDFs and text documents based on their contents, answer natural-language file searches, and flag duplicates via SHA-256 hashing. The FastAPI-based tool stages changes in a preview before applying them, logs moves in SQLite for full undo, and falls back to regex search, extension mapping and hash deduplication when the model isn't running. The MIT-licensed project ships with 20 unit and security tests covering path traversal prevention and collision-safe file moves.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady](https://dev.to/challenges/hacktoberfest-week3-2026-10-19)*\n\nWhat I Built\n\nLet’s be honest: my Downloads folder was an absolute crime scene.\n\nBetween random PDF receipts, screenshots named Screenshot 2026-10-12 at 4.23.11 PM.png, three different copies of my resume, and half-finished Python scripts, finding anything felt like digging through digital junk mail. Every few months I'd promise myself I'd sit down and organize it all, only to get bored after sorting five files and give up.\n\nSo I decided to be properly lazy and build a tool to do the chore for me: SlothDesk AI.\n\nSlothDesk AI is a desktop productivity assistant that lives on your machine and cleans up your folders without you having to lift a finger:\n\nIt looks at a messy directory and automatically groups everything into clean folders like Documents, Code, Images, and Archives — but only after showing you a safe preview first.\n\nIt actually reads the first couple of pages of your PDFs or text documents using a local AI model and renames them from things like scan_004921.pdf to quarterly-tax-statement-2026.pdf.\n\nIt lets you ask questions like \"Where is my operating systems homework from last week?\" and finds the exact file without uploading your notes to any cloud.\n\nIt calculates cryptographic hashes of your files to find duplicate copies wasting gigabytes of space, staging them into a safe trash folder so nothing ever gets permanently deleted by accident.\n\nAnd if you ever make a mistake, there is a full undo button backed by SQLite that puts everything back where it came from.\n\nTo keep it fun, I built the UI with an obsidian black and electric yellow theme, complete with a friendly sloth mascot named Barnaby wearing little golden spectacles.\n\nDemo\n\nLive Web App: [https://slothdesk-ai-24yo.onrender.com](https://slothdesk-ai-24yo.onrender.com)\n\nAPI Documentation: [https://slothdesk-ai-24yo.onrender.com/docs](https://slothdesk-ai-24yo.onrender.com/docs)\n\nRunning Locally (with Ollama): Just clone the repo and run ./run.sh on Ubuntu Linux.\n\nCode\n\n**“Work less. Let your sloth handle the boring stuff.”**\n\n**🌐 Live Demo:** [https://slothdesk-ai-24yo.onrender.com](https://slothdesk-ai-24yo.onrender.com)\n\nSlothDesk AI is a **privacy-first desktop productivity assistant** built for the **“Slow and Steady” open-source AI challenge**. It brings open-weight local AI directly to your operating system to organize messy folders, suggest intelligent filenames based on document excerpts, search files through natural language queries, and prepare safe storage cleanup recommendations.\n\n`Documents`, `Images`, `Videos`, `Audio`, `Archives`, `Code`, and `Other`.` report (1).pdf`).`/etc`, `/proc`, `node_modules`, `.git`).\nThe code is completely open-source under the MIT license:\n\n👉 github.com/tani2112/Sloathdesk-AI\n\nIt includes a full suite of 20 unit and security tests checking path traversal prevention, duplicate hash checks, and collision-safe file moves.\n\nHow I Built It\n\nI wanted this app to be fast, safe, and above all, respectful of the user's computer:\n\nLocal Inference with Ollama: Instead of relying on an expensive cloud API, the backend hooks into a locally running Ollama instance. I tested it mainly with qwen2.5:1.5b because it’s super quick and runs smoothly even on older laptops, but you can switch to llama3.2 or any model you prefer right from the settings.\n\nGraceful Fallbacks: One thing that bugged me about a lot of AI apps is that they completely break if the model isn't running. I built SlothDesk so that if Ollama isn't started yet, it automatically falls back to regex search, file extension mapping, and SHA-256 deduplication. It still works 100% as a solid organizer even without the AI running.\n\nFastAPI & Python Standard Library: The backend uses FastAPI. For safety, I wrote strict path validation to make sure file operations never escape the selected folder or touch system directories like /etc or /proc. I also integrated Python's watchdog to detect when new files land in your downloads in real time.\n\nReact 19 & Tailwind CSS: The frontend is built on Vite, React, and Tailwind. I really wanted a unique look, so I went with an obsidian dark theme highlighted by neon yellow and amber gradients.\n\nDocker & Render Deployment: To make the web demo easy to check out, I wrote a multi-stage Dockerfile and a render.yaml blueprint that compiles the React bundle and serves it all as one unified service.\n\nWhy Does Open Innovation Matter?\n\nWhen you think about building a desktop assistant, the first instinct a lot of people have today is: \"Just send the files to an LLM cloud API.\"\n\nTo me, that felt totally wrong for a tool that lives on your personal computer.\n\nYour downloads folder has your pay stubs, bank statements, personal photos, and proprietary code. You shouldn't have to beam your private documents across the internet just to give them sensible names.\n\nWith open-weight models like Qwen and open runtime engines like Ollama, you get intelligent document understanding running right on your own CPU or GPU. It costs zero dollars in monthly API tokens, it works when your Wi-Fi drops, and your data never leaves your machine. That’s what open innovation makes possible: powerful tools that put the user in complete control.\n\nMy Agent Session\n\nI built and debugged this project—from the FastAPI security sandbox to the React frontend and Render container deployment—pairing with Antigravity (Google DeepMind).\n\nThe Lazy Payoff\n\nHere is my honest before-and-after:\n\nBefore building this, every Friday afternoon I’d stare at ~150 random files in my Downloads folder, squint at cryptic PDF names, open them one by one to see what they were, create five new folders, and drag things around manually. It took at least 20 minutes of brain-numbing clicking.\n\nNow:\n\nI open SlothDesk and click \"Organize Folder\".\n\nI check the dry-run preview table to verify where everything is heading.\n\nI hit \"Apply\", and in about 2 seconds, 150 files are tucked away into their proper category folders.\n\nI hit \"Scan Duplicates\" and wipe out 800MB of accidental double downloads.\n\nTotal time: about 30 seconds. That leaves me with 19 and a half minutes to do what Barnaby does best: kick back and relax.", "url": "https://wpnews.pro/news/sloath-ai", "canonical_source": "https://dev.to/tanishk_01bbcf75a8b9e35f9/sloath-ai-3gkh", "published_at": "2026-10-20 20:14:32+00:00", "updated_at": "2026-10-20 20:18:42.747557+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools", "ai-products", "large-language-models"], "entities": ["SlothDesk AI", "Ollama", "FastAPI", "qwen2.5:1.5b", "llama3.2", "SQLite", "Hacktoberfest", "GitHub"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/sloath-ai", "markdown": "https://wpnews.pro/news/sloath-ai.md", "text": "https://wpnews.pro/news/sloath-ai.txt", "jsonld": "https://wpnews.pro/news/sloath-ai.jsonld"}}