<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pushpraj Patel</title>
    <description>The latest articles on DEV Community by Pushpraj Patel (@vilaspatel938).</description>
    <link>https://dev.to/vilaspatel938</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Pushpraj Patel</title>
      <link>https://dev.to/vilaspatel938</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vilaspatel938"/>
    <language>en</language>
    <item>
      <title>Sloth Sorter</title>
      <dc:creator>Pushpraj Patel</dc:creator>
      <pubDate>Thu, 22 Oct 2026 18:59:59 +0000</pubDate>
      <link>https://dev.to/vilaspatel938/sloth-sorter-29oi</link>
      <guid>https://dev.to/vilaspatel938/sloth-sorter-29oi</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sloth Sorter&lt;/strong&gt; is a lazy file tidier. Point it at a messy folder (my Downloads folder was the victim) and it reads each file, decides where it belongs, gives it a clean descriptive name, and files it away. You review a plan and approve it with one flag.&lt;/p&gt;

&lt;p&gt;It saves the chore everyone puts off: dragging &lt;code&gt;Screenshot (47).png&lt;/code&gt;, &lt;code&gt;invoice_final_v2.pdf&lt;/code&gt; and &lt;code&gt;download(3).zip&lt;/code&gt; into folders and renaming them. Anyone with a cluttered Downloads folder gets to be a little lazier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;[Add your video or GIF link here. A 20-second terminal recording of the dry run followed by &lt;code&gt;--apply&lt;/code&gt; works well.]&lt;/p&gt;

&lt;p&gt;Example of the dry-run output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Screenshot 2026-10-12 at 9.41.03.png  -&amp;gt;  Images/dashboard-error-message.png
invoice_final_v2.pdf                  -&amp;gt;  Receipts/invoice-final-v2.pdf
notes.txt                             -&amp;gt;  Documents/meeting-notes-q4-planning.txt

Dry run: 3 files. Re-run with --apply to do it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub repo link here &lt;a href="https://dev.tourl"&gt;https://github.com/vikasfine17/sloth-sorter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's a single Python file using only the standard library, plus a README.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; an open-weight model served locally through &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;. The default is &lt;code&gt;llama3.2:3b&lt;/code&gt;, and &lt;code&gt;--model&lt;/code&gt; accepts anything Ollama can run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it works:&lt;/strong&gt; for each file, the script sends the name, size and a short text preview to the local model. The model returns JSON with a category and a short kebab-case name. The script validates the category against a fixed list, sanitizes the name, and plans the move.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No dependencies:&lt;/strong&gt; it talks to Ollama's local HTTP API with &lt;code&gt;urllib&lt;/code&gt;, so there's nothing to install beyond Ollama itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built to be trusted with your files:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Dry run by default, and nothing moves without &lt;code&gt;--apply&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Every move is logged to &lt;code&gt;.sloth-undo.json&lt;/code&gt;, so &lt;code&gt;--undo&lt;/code&gt; restores it.&lt;/li&gt;
&lt;li&gt;It never overwrites files; name collisions get a numeric suffix.&lt;/li&gt;
&lt;li&gt;It skips files modified in the last 10 minutes, so it won't touch a half-finished download.&lt;/li&gt;
&lt;li&gt;If the model is unreachable, it falls back to sorting by file extension.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;A Downloads folder is full of sensitive things: tax forms, IDs, receipts, contracts. Sending file names and previews to a hosted API just to tidy them would defeat the purpose.&lt;/p&gt;

&lt;p&gt;Running an open-weight model locally gave me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy:&lt;/strong&gt; file contents never leave the machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline use and zero cost:&lt;/strong&gt; no API key, no per-file charges, and it works without internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control:&lt;/strong&gt; I can swap models with one flag, or edit the categories and system prompt to match my own filing system. A closed API wouldn't let me do both of those while keeping the data local.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>hacktoberfest</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Sloth Sorter</title>
      <dc:creator>Pushpraj Patel</dc:creator>
      <pubDate>Thu, 22 Oct 2026 18:51:45 +0000</pubDate>
      <link>https://dev.to/vilaspatel938/sloth-sorter-3a2p</link>
      <guid>https://dev.to/vilaspatel938/sloth-sorter-3a2p</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sloth Sorter&lt;/strong&gt; is a lazy file tidier. Point it at a messy folder (my Downloads folder was the victim) and it reads each file, decides where it belongs, gives it a clean descriptive name, and files it away. You review a plan and approve it with one flag.&lt;/p&gt;

&lt;p&gt;It saves the chore everyone puts off: dragging &lt;code&gt;Screenshot (47).png&lt;/code&gt;, &lt;code&gt;invoice_final_v2.pdf&lt;/code&gt; and &lt;code&gt;download(3).zip&lt;/code&gt; into folders and renaming them. Anyone with a cluttered Downloads folder gets to be a little lazier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;[Add your video or GIF link here. A 20-second terminal recording of the dry run followed by &lt;code&gt;--apply&lt;/code&gt; works well.]&lt;/p&gt;

&lt;p&gt;Example of the dry-run output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Screenshot 2026-10-12 at 9.41.03.png  -&amp;gt;  Images/dashboard-error-message.png
invoice_final_v2.pdf                  -&amp;gt;  Receipts/invoice-final-v2.pdf
notes.txt                             -&amp;gt;  Documents/meeting-notes-q4-planning.txt

Dry run: 3 files. Re-run with --apply to do it.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;GitHub repo link here. &lt;a href="https://github.com/vikasfine17/sloth-sorter" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's a single Python file using only the standard library, plus a README.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Model:&lt;/strong&gt; an open-weight model served locally through &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;. The default is &lt;code&gt;llama3.2:3b&lt;/code&gt;, and &lt;code&gt;--model&lt;/code&gt; accepts anything Ollama can run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it works:&lt;/strong&gt; for each file, the script sends the name, size and a short text preview to the local model. The model returns JSON with a category and a short kebab-case name. The script validates the category against a fixed list, sanitizes the name, and plans the move.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No dependencies:&lt;/strong&gt; it talks to Ollama's local HTTP API with &lt;code&gt;urllib&lt;/code&gt;, so there's nothing to install beyond Ollama itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Built to be trusted with your files:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Dry run by default, and nothing moves without &lt;code&gt;--apply&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Every move is logged to &lt;code&gt;.sloth-undo.json&lt;/code&gt;, so &lt;code&gt;--undo&lt;/code&gt; restores it.&lt;/li&gt;
&lt;li&gt;It never overwrites files; name collisions get a numeric suffix.&lt;/li&gt;
&lt;li&gt;It skips files modified in the last 10 minutes, so it won't touch a half-finished download.&lt;/li&gt;
&lt;li&gt;If the model is unreachable, it falls back to sorting by file extension.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;A Downloads folder is full of sensitive things: tax forms, IDs, receipts, contracts. Sending file names and previews to a hosted API just to tidy them would defeat the purpose.&lt;/p&gt;

&lt;p&gt;Running an open-weight model locally gave me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy:&lt;/strong&gt; file contents never leave the machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline use and zero cost:&lt;/strong&gt; no API key, no per-file charges, and it works without internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control:&lt;/strong&gt; I can swap models with one flag, or edit the categories and system prompt to match my own filing system. A closed API wouldn't let me do both of those while keeping the data local.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
