<?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: Axyz</title>
    <description>The latest articles on DEV Community by Axyz (@axyz97836).</description>
    <link>https://dev.to/axyz97836</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4180264%2Fedc5f902-f8fb-46eb-9e34-944ea5009094.jpg</url>
      <title>DEV Community: Axyz</title>
      <link>https://dev.to/axyz97836</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/axyz97836"/>
    <language>en</language>
    <item>
      <title>EchoArchive: Preserving Authentic Spoken Memories with Local Speech &amp; Grounded Open-Weight AI</title>
      <dc:creator>Axyz</dc:creator>
      <pubDate>Thu, 29 Oct 2026 08:11:31 +0000</pubDate>
      <link>https://dev.to/axyz97836/echoarchive-preserving-authentic-spoken-memories-with-local-speech-grounded-open-weight-ai-5g4i</link>
      <guid>https://dev.to/axyz97836/echoarchive-preserving-authentic-spoken-memories-with-local-speech-grounded-open-weight-ai-5g4i</guid>
      <description>&lt;p&gt;&lt;em&gt;This article is submitted for the Hacktoberfest 2026 Week 4 Challenge: Ghost in the Machine (October 26–31, 2026).&lt;/em&gt;&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;EchoArchive&lt;/strong&gt; is a local-first application designed to preserve authentic spoken oral histories and organize them into &lt;strong&gt;Traceable Memories&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In recent years, generative AI has been increasingly used to "resurrect" deceased loved ones through synthetic voice clones, conversational chatbots, and fabricated memories. These approaches risk distorting genuine human history, inventing biographical facts, and putting unsaid words into real people's mouths.&lt;/p&gt;

&lt;p&gt;EchoArchive takes the exact opposite philosophical and architectural approach:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The original recording and the human-reviewed transcript are the sole authorities. Local AI serves strictly as an indexing and summarization assistant.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every AI-generated memory card in EchoArchive is verifiably grounded in the speaker's actual spoken words. When viewing a memory card, the user can see the authoritative transcript segment and click &lt;strong&gt;"Listen to Spoken Passage"&lt;/strong&gt; to seek the audio player to that exact second.&lt;/p&gt;

&lt;h3&gt;
  
  
  Core Capabilities
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;100% Local Inference:&lt;/strong&gt; Offline speech recognition via &lt;code&gt;whisper.cpp&lt;/code&gt; (Metal GPU accelerated) and local language modeling via &lt;code&gt;qwen2.5:1.5b&lt;/code&gt; through Ollama. Zero telemetry, zero analytics, zero external cloud APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Affirmative Consent by Default:&lt;/strong&gt; Explicit affirmative confirmation required before any audio can be recorded or uploaded. No automatic microphone access.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Traceable Memories &amp;amp; Evidence Validator:&lt;/strong&gt; Server-side validation rejects any memory card citing non-existent segments, cross-story passages, or hallucinated quotations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human Review Authority:&lt;/strong&gt; Machine transcripts begin unreviewed. Editing a transcript invalidates prior review status and marks existing cards stale. Memory extraction strictly rejects unreviewed transcripts at the API boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Byte-Range Seekable Playback:&lt;/strong&gt; HTTP 206 Partial Content streaming allows users to hear the authentic voice behind every AI summary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Parameterized Search:&lt;/strong&gt; 100% offline search across stories, speakers, transcript passages, and memory cards with contextual excerpt snippets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Portable Air-Gapped Export:&lt;/strong&gt; Generates self-contained ZIP archives containing pristine original audio, structured JSON metadata, SHA-256 manifests (&lt;code&gt;echoarchive-export-v1&lt;/code&gt;), and an offline standalone reader (&lt;code&gt;story.html&lt;/code&gt;) with zero remote CDNs, fonts, or scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crash-Safe Deletion Journal:&lt;/strong&gt; Deletes stories safely using an atomic SQLite cleanup journal (&lt;code&gt;deletion_journal&lt;/code&gt;) that reconciles filesystem media purges across power interruptions or worker restarts.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/zWXvw_L0HS4" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/zWXvw_L0HS4" rel="noopener noreferrer"&gt;Watch the EchoArchive Demo&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Duration:&lt;/strong&gt; 3:51.73 | &lt;strong&gt;Resolution:&lt;/strong&gt; 1920 × 1080 (30 fps) | &lt;strong&gt;Format:&lt;/strong&gt; H.264 / AAC stereo&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Narration:&lt;/strong&gt; Synthetic local voiceover (macOS &lt;code&gt;Samantha&lt;/code&gt;, 175 wpm, EBU R128 normalized)&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Source Audio Playback:&lt;/strong&gt; Authentic fictional recording excerpt audible at 02:01 – 02:09.5&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Export Note:&lt;/strong&gt; The video captures the genuine in-app ZIP export workflow; the resulting offline standalone &lt;code&gt;story.html&lt;/code&gt; reader was verified independently with zero remote CDNs.&lt;br&gt;&lt;br&gt;
A complete timed narration guide and scene-by-scene script using synthetic fixtures is documented in &lt;a href="https://github.com/axyz97836/EchoArchive/blob/develop/docs/DEMO_GUIDE_AND_SCRIPT.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/DEMO_GUIDE_AND_SCRIPT.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The complete EchoArchive user journey follows six coordinated screens designed in the archival &lt;strong&gt;Archive After Dark&lt;/strong&gt; design system (Midnight Ink &lt;code&gt;#1B252B&lt;/code&gt;, Aged Parchment &lt;code&gt;#F3E8D6&lt;/code&gt;, Marigold Amber &lt;code&gt;#E5B65F&lt;/code&gt;, and Muted Burgundy &lt;code&gt;#8C4B4A&lt;/code&gt;):&lt;/p&gt;

&lt;h3&gt;
  
  
  The 6-Screen Architecture
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Home / Entry Screen:&lt;/strong&gt; Real-time health monitor displaying local speech engine, audio preprocessor, Ollama, and SQLite storage readiness.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam4138h6yomgzb56ijfx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fam4138h6yomgzb56ijfx.png" alt="Home Screen" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Microphone Studio &amp;amp; Ingest:&lt;/strong&gt; Live Web Audio API level metering on an HTML5 canvas, 5-minute duration limit, and affirmative consent confirmation.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyek8oy9jfg4szlhd3o90.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyek8oy9jfg4szlhd3o90.png" alt="Record &amp;amp; Upload Screen" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Transcript Review Workspace:&lt;/strong&gt; Chronological segments with timestamped audio seeking, inline human error correction, revision increments, and explicit review confirmation.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fokpfn5rtzim53l4lz5dw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fokpfn5rtzim53l4lz5dw.png" alt="Transcript Review" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Memory Extraction Stepper:&lt;/strong&gt; Real-time background job tracking through truthful stages (&lt;code&gt;queued&lt;/code&gt; → &lt;code&gt;analyzing&lt;/code&gt; → &lt;code&gt;validating&lt;/code&gt; → &lt;code&gt;saving&lt;/code&gt; → &lt;code&gt;succeeded&lt;/code&gt;).&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffoanexx7bcixbtyplebx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffoanexx7bcixbtyplebx.png" alt="Extracting Memories" width="800" height="1160"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Story Archive Library:&lt;/strong&gt; Preserved collection grid with real-time local search and verified memory counts.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frvujmelz9vl9a6z45eov.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frvujmelz9vl9a6z45eov.png" alt="Story Archive" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Traceable Memory Detail:&lt;/strong&gt; Interpretive summaries labeled with theme chips and authoritative spoken passages featuring click-to-seek audio playback.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr9fx8sg120elrbwbjy3r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr9fx8sg120elrbwbjy3r.png" alt="Memory Detail" width="800" height="518"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;All demo screenshots and automated tests utilize synthetic, fictional test audio fixtures.&lt;/em&gt;&lt;/p&gt;




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

&lt;p&gt;EchoArchive is open-source under the MIT License:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/axyz97836/EchoArchive" rel="noopener noreferrer"&gt;https://github.com/axyz97836/EchoArchive&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Official Release (v1.0.0):&lt;/strong&gt; &lt;a href="https://github.com/axyz97836/EchoArchive/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;https://github.com/axyz97836/EchoArchive/releases/tag/v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Active Branch:&lt;/strong&gt; &lt;code&gt;develop&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Architecture Overview
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Browser (http://127.0.0.1:8766)
  │ (HTML5 / Vanilla JavaScript / Web Audio API)
  ▼
FastAPI API Boundary (Loopback: 127.0.0.1:8766)
  ├── Host &amp;amp; Origin Security Middleware (Rejects untrusted external callers)
  ├── Upload Validator ──────&amp;gt; Streaming size limits (25 MiB cap)
  ├── Job Controller   ──────&amp;gt; Single-worker queue with SQLite persistence
  ├── Speech Adapter   ──────&amp;gt; FFmpeg (16 kHz mono) + whisper.cpp (GGML tiny.en)
  ├── Extraction Engine ─────&amp;gt; Local Qwen2.5:1.5b via Ollama (/api/chat)
  ├── Evidence Validator ────&amp;gt; Relational join integrity &amp;amp; quotation verification
  ├── Export Generator ──────&amp;gt; Self-contained ZIP with offline HTML reader
  ├── Deletion Journal ──────&amp;gt; Durable two-phase filesystem/database cleanup
  └── Relational DB    ──────&amp;gt; SQLite3 (PRAGMA foreign_keys = ON, WAL mode)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






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

&lt;p&gt;EchoArchive was built from the ground up to solve the core architectural challenges of offline, privacy-preserving AI on modest consumer hardware (Apple Silicon Mac with 8 GiB RAM).&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Offline Speech Recognition Pipeline
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Used &lt;code&gt;whisper.cpp&lt;/code&gt; (v1.9.5) compiled with Apple Metal GPU acceleration.&lt;/li&gt;
&lt;li&gt;Ingested audio is normalized to 16 kHz mono WAV using local &lt;code&gt;ffmpeg&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A background worker thread executes &lt;code&gt;whisper-cli&lt;/code&gt; via &lt;code&gt;subprocess.run&lt;/code&gt; (strictly passing argument arrays, &lt;strong&gt;never &lt;code&gt;shell=True&lt;/code&gt;&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;Parses machine-readable JSON output into chronological segments with start/end millisecond timestamps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Structured Local Extraction with Qwen2.5
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Employs &lt;code&gt;qwen2.5:1.5b&lt;/code&gt; running through local Ollama (&lt;code&gt;http://127.0.0.1:11434&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Prompts use structured JSON schemas constraining output to titles, summaries, thematic tags, and non-empty lists of cited segment IDs.&lt;/li&gt;
&lt;li&gt;Execution is strictly bounded with timeouts and validated on receipt.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Server-Side Evidence Validation (Traceable Memories)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Because large language models can hallucinate plausible-sounding citations, EchoArchive never trusts the model's claims.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;EvidenceValidator&lt;/code&gt; verifies:

&lt;ol&gt;
&lt;li&gt;Every cited segment ID exists in the database and belongs to the &lt;strong&gt;same story&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The segment was generated from the &lt;strong&gt;current transcript revision&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Any direct quotations inside summaries or titles exist verbatim in the source transcript segments.&lt;/li&gt;
&lt;li&gt;Cards failing evidence validation are rejected, preventing fabricated claims from ever reaching the user.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Gated Review Semantics &amp;amp; Optimistic Concurrency
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Machine-generated transcripts begin with &lt;code&gt;transcript_reviewed_at = NULL&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Human corrections (&lt;code&gt;PATCH /api/stories/{id}/segments/{id}&lt;/code&gt;) increment &lt;code&gt;transcript_revision&lt;/code&gt; and invalidate review status.&lt;/li&gt;
&lt;li&gt;Memory extraction unconditionally rejects unreviewed transcripts (&lt;code&gt;422 REVIEW_REQUIRED&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;If an API caller attempts to bypass review (&lt;code&gt;require_review: false&lt;/code&gt;), the backend returns &lt;code&gt;422 REVIEW_BYPASS_FORBIDDEN&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When a user corrects a transcript after memories were already extracted, older cards are marked stale and blocked from acceptance until re-reviewed and regenerated.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Durable Crash-Safe Deletion
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;SQLite transactions cannot atomically include arbitrary filesystem &lt;code&gt;unlink&lt;/code&gt; operations.&lt;/li&gt;
&lt;li&gt;To prevent orphaned media files if a server crashes mid-deletion, EchoArchive implements a durable cleanup journal:

&lt;ol&gt;
&lt;li&gt;Deletion requests acquire a per-story worker lock and verify no jobs are active (&lt;code&gt;409 JOB_ACTIVE&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Inside a single SQLite transaction, the files to be purged are recorded in &lt;code&gt;deletion_journal&lt;/code&gt; and the story row is deleted (cascading foreign keys remove segments and cards).&lt;/li&gt;
&lt;li&gt;Filesystem audio, transcripts, and temporary files are unlinked.&lt;/li&gt;
&lt;li&gt;If all unlinks succeed, the journal row is cleared.&lt;/li&gt;
&lt;li&gt;If an interruption or power loss occurs, &lt;code&gt;recover_pending_deletions()&lt;/code&gt; runs at startup to safely purge remnant files.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  6. Portable Self-Contained ZIP Export
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Produces a user-owned ZIP file containing:

&lt;ul&gt;
&lt;li&gt;Original, unmodified audio bytes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;story.json&lt;/code&gt;, &lt;code&gt;transcript.json&lt;/code&gt;, and &lt;code&gt;memories.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;manifest.json&lt;/code&gt; with SHA-256 member checksums (&lt;code&gt;echoarchive-export-v1&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;story.html&lt;/code&gt;: a standalone, responsive reader with inline CSS that plays the audio via relative path without remote CDNs, web fonts, or scripts.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  7. Lessons Learned: Security Hardening, Review Bypasses &amp;amp; CI Integrity
&lt;/h3&gt;

&lt;p&gt;During Phase F hardening and pre-release audits, several subtle architectural vulnerabilities and engineering lessons emerged:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Review Bypass Trap:&lt;/strong&gt; A pre-flight audit revealed that &lt;code&gt;POST /api/stories/{id}/extract&lt;/code&gt; accepted an optional &lt;code&gt;require_review: bool = false&lt;/code&gt; flag in its schema. While intended for internal automated testing, exposing this parameter on public API endpoints created a loophole where callers could bypass human review. We eliminated this vulnerability by strictly requiring &lt;code&gt;transcript_reviewed_at IS NOT NULL&lt;/code&gt; at the backend domain boundary, rejecting any bypass attempts with &lt;code&gt;422 REVIEW_BYPASS_FORBIDDEN&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filesystem vs. Database Atomicity:&lt;/strong&gt; In relational databases, rolling back a transaction cannot undo a deleted file on disk. Introducing the staged &lt;code&gt;deletion_journal&lt;/code&gt; ensured that crash recovery can resume pending deletions cleanly on startup without leaving orphaned audio files or corrupting referential integrity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI Runner Isolation &amp;amp; Mocking:&lt;/strong&gt; GitHub Actions virtual environments lack Apple Metal hardware acceleration and GPU access. Establishing isolated synthetic audio fixtures, mocking subprocess executions with deterministic outputs in automated test harnesses, and tuning single-worker polling intervals allowed 115 deterministic unit and integration tests to execute in under 2 seconds in GitHub Actions CI, while live local speech recognition (&lt;code&gt;whisper.cpp&lt;/code&gt;) and Ollama Qwen 2.5 extraction run on localhost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authentic Demonstration Verification:&lt;/strong&gt; Rather than relying on simulated mockups, the complete end-to-end workflow was recorded live via headless browser automation driving real inference on localhost, ensuring that every timestamp, UI transition, and model output reflected true runtime behavior.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;Open innovation—grounded in open-weight models, open-source runtimes, and local execution—is essential for personal memory preservation for three fundamental reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Data Sovereignty and Intimacy:&lt;/strong&gt; Personal stories and family voices are among the most intimate data a human being produces. Requiring people to stream private recordings to proprietary cloud APIs risks surveillance, model training on private voices, and sudden loss of access when a commercial service shuts down or changes its terms.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Longevity and Archival Durability:&lt;/strong&gt; Proprietary cloud services come and go. Open-weight models (like Qwen) and open-source tools (like &lt;code&gt;whisper.cpp&lt;/code&gt;, &lt;code&gt;ffmpeg&lt;/code&gt;, and SQLite) can be archived, compiled, and executed decades into the future on independent hardware without reliance on external servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditability and Truth:&lt;/strong&gt; Proprietary AI systems operate as black boxes, hiding system prompts and hallucination rates behind closed APIs. Open-source architectures permit full inspection: every prompt, every schema, and every evidence validation check is verifiable by the user and the community.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;The theme of Hacktoberfest 2026 Week 4 is &lt;strong&gt;Ghost in the Machine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Many contemporary AI applications interpret this theme by creating synthetic ghosts: training voice clones to mimic deceased relatives, generating conversational avatars that pretend to possess the memories of people who have died, or inventing fictionalized family trees.&lt;/p&gt;

&lt;p&gt;EchoArchive offers an alternative interpretation:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The real ghost in the machine is the authentic human voice that was actually recorded.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When a person speaks, the nuances of their breathing, hesitation, timbre, and regional accent carry profound emotional and historical weight. A language model should not invent what they might have said or mimic how they might have sounded.&lt;/p&gt;

&lt;p&gt;In EchoArchive, the machine's role is not to replace the human, but to serve as a faithful, humble archivist: transcribing the voice, accepting human corrections, organizing thematic memories, and always keeping the listener exactly one click away from the authentic, living recording.&lt;/p&gt;




&lt;h2&gt;
  
  
  AI-Assisted Development &amp;amp; Media Disclosures
&lt;/h2&gt;

&lt;p&gt;In accordance with DEV community standards and Hacktoberfest AI disclosure guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core Design &amp;amp; Human Consent:&lt;/strong&gt; EchoArchive is architected to preserve authentic, original recordings from consenting human speakers. The application rejects voice cloning, deepfake synthesis, and resurrective persona generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fictional Test Fixtures:&lt;/strong&gt; All demonstration audio files (&lt;em&gt;Aunt Clara's Maple Sugar Cabin&lt;/em&gt; and &lt;em&gt;Echoes of the Ancient Olive Grove&lt;/em&gt;) are 100% fictional synthetic recordings created strictly for software verification and demonstration, containing zero private, personal, or real-world family recordings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Video Demonstration:&lt;/strong&gt; Demonstration video interactions were driven via headless Chromium automation (Playwright) operating against the live local application stack. All speech recognition (&lt;code&gt;whisper.cpp&lt;/code&gt;) and memory extraction (Qwen 2.5) during the recorded run were executed live on localhost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Synthetic Voiceover:&lt;/strong&gt; Demonstration video narration was generated offline using macOS local speech synthesis (&lt;code&gt;Samantha&lt;/code&gt;, &lt;code&gt;en_US&lt;/code&gt; at 175 wpm) and normalized via FFmpeg EBU R128 loudness filtering. No human voice was mimicked or cloned.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export &amp;amp; Reader Verification:&lt;/strong&gt; The demonstration video captures the in-app portable ZIP export workflow; the extracted standalone offline &lt;code&gt;story.html&lt;/code&gt; reader was verified independently in a separate test pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Interpretations &amp;amp; Evidence Validation:&lt;/strong&gt; Extracted memory summaries and thematic tags represent machine interpretations generated by &lt;code&gt;qwen2.5:1.5b&lt;/code&gt;. While EchoArchive's server-side Evidence Validator cryptographically guarantees that segment citations belong to the same story revision and quotations are verbatim, automated validation cannot guarantee that conceptual summaries are factually flawless or complete. Human review remains the ultimate authority.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code &amp;amp; Architecture Assistance:&lt;/strong&gt; EchoArchive was developed through agentic pair programming with Google DeepMind's Antigravity assistant, which assisted in architectural formulation, SQLite schema and migration design, FastAPI route implementation, evidence validation logic, test suite authoring, and documentation. All code, database schemas, and cryptographic checksums were verified via 116 automated local tests (115 deterministic unit and integration tests executing in under 2 seconds in CI plus genuine live local inference validation) with a 100% pass rate.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Verified Engineering Limitations
&lt;/h2&gt;

&lt;p&gt;To maintain honesty and technical integrity:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Local Storage Encryption:&lt;/strong&gt; Stored audio recordings in &lt;code&gt;data/media/&lt;/code&gt; and SQLite databases reside as unencrypted local files on the host filesystem. Device-level encryption (e.g., Apple FileVault or Linux LUKS) is required for encryption-at-rest. Localhost binding does not substitute for multi-user operating system boundaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SSD Physical Wear-Leveling:&lt;/strong&gt; File deletion unlinks filesystem pointers and removes database rows. On modern SSDs, underlying flash memory blocks are managed by hardware wear-leveling controllers and do not constitute certified cryptographic forensic erasure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sequential Job Concurrency:&lt;/strong&gt; Inference jobs are bounded by a single background worker (concurrency = 1) to prevent memory contention on 8 GiB RAM laptop environments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Target Environment:&lt;/strong&gt; Verified on macOS 26.6.2 (Darwin arm64, Apple M2, 8 GiB RAM). Linux and Windows deployments require separate validation of whisper-cli and FFmpeg binary paths.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Interpretation Boundaries:&lt;/strong&gt; Language model extraction provides an organizing aid, not an infallible historical record. Users should always consult the original recorded audio and human-verified transcript as primary sources.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>SlothDesk: I Built a Local AI File Organizer So I Could Stop Sorting Files Manually</title>
      <dc:creator>Axyz</dc:creator>
      <pubDate>Fri, 23 Oct 2026 16:19:39 +0000</pubDate>
      <link>https://dev.to/axyz97836/slothdesk-i-built-a-local-ai-file-organizer-so-i-could-stop-sorting-files-manually-id2</link>
      <guid>https://dev.to/axyz97836/slothdesk-i-built-a-local-ai-file-organizer-so-i-could-stop-sorting-files-manually-id2</guid>
      <description>&lt;p&gt;This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady.&lt;/p&gt;

&lt;p&gt;Every few days, I find myself doing the same boring task: opening random files, figuring out what they contain, deciding where they belong, and renaming them so I can actually find them later.&lt;/p&gt;

&lt;p&gt;notes_final.txt, untitled_2.md, script_v2.py... the filenames don't always tell the whole story.&lt;/p&gt;

&lt;p&gt;And honestly, organizing files is one of those tasks that's easy to postpone until the folder becomes a complete mess.&lt;/p&gt;

&lt;p&gt;So for Hacktoberfest Week 3, I decided to build something that would let me be a little lazier.&lt;/p&gt;

&lt;p&gt;Meet SlothDesk, an open-source, privacy-first AI file organizer that runs locally on your computer.&lt;/p&gt;

&lt;p&gt;The idea is simple: let AI do the thinking, but let the human make the final decision.&lt;/p&gt;

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

&lt;p&gt;SlothDesk is a local AI-powered file organizer that reads supported documents, understands their contents, and recommends meaningful filenames and categories.&lt;/p&gt;

&lt;p&gt;Instead of manually opening and sorting every document, I can place files in an Inbox and let SlothDesk prepare an organization plan.&lt;/p&gt;

&lt;p&gt;Here's how it works:&lt;/p&gt;

&lt;p&gt;Add files to the Inbox. SlothDesk discovers supported text and code files.&lt;/p&gt;

&lt;p&gt;Choose which files to analyze. Select individual files or analyze a batch.&lt;/p&gt;

&lt;p&gt;Let local AI understand the contents. Qwen2.5 generates a suggested category, filename, summary, and explanation.&lt;/p&gt;

&lt;p&gt;Review the recommendations. Edit suggested filenames and categories, or exclude recommendations you don't want.&lt;/p&gt;

&lt;p&gt;Approve the organization. Only then does SlothDesk move the selected files into their destination folders.&lt;/p&gt;

&lt;p&gt;Undo when needed. The latest organization batch can be safely reverted.&lt;/p&gt;

&lt;p&gt;For example, a file named untitled_2.md containing programming notes might receive a recommendation to move it into the Study category with a clearer filename.&lt;/p&gt;

&lt;p&gt;The AI doesn't have permission to make that decision for me. It only prepares the suggestion.&lt;/p&gt;

&lt;p&gt;Features I implemented&lt;/p&gt;

&lt;p&gt;Local AI inference: Uses Ollama with the open-weight Qwen2.5 1.5B model.&lt;/p&gt;

&lt;p&gt;Content-aware organization: Suggests categories, filenames, summaries, and reasons based on file contents.&lt;/p&gt;

&lt;p&gt;Human-in-the-loop approval: Files never move simply because the model recommends it.&lt;/p&gt;

&lt;p&gt;Selective analysis: Analyze only the files you choose, up to 12 per batch.&lt;/p&gt;

&lt;p&gt;Real-time progress: Follow which file is currently being analyzed.&lt;/p&gt;

&lt;p&gt;Partial-failure recovery: Successfully analyzed files remain available even if another file fails.&lt;/p&gt;

&lt;p&gt;Retry support: Retry failed files without duplicating previous recommendations.&lt;/p&gt;

&lt;p&gt;Safe file operations: Path validation, destination collision protection, and rollback safeguards.&lt;/p&gt;

&lt;p&gt;Undo and history: Review organization batches and undo the latest active batch.&lt;/p&gt;

&lt;p&gt;CSV export: Export the suggested organization plan.&lt;/p&gt;

&lt;p&gt;Two visual themes: Warm Ivory with Emerald Green and Vermilion accents, plus a complementary Emerald Night theme.&lt;/p&gt;

&lt;p&gt;Keyboard accessibility: Keyboard shortcuts, visible focus indicators, and responsive layouts.&lt;/p&gt;

&lt;p&gt;The result is a lightweight application that lets me spend less time sorting files and more time working with them.&lt;/p&gt;

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

&lt;p&gt;SlothDesk runs entirely on your computer using Ollama and the open-weight Qwen2.5:1.5b model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Watch SlothDesk in Action
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://youtu.be/2Ciw7B5OaD4" rel="noopener noreferrer"&gt;https://youtu.be/2Ciw7B5OaD4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Watch SlothDesk analyze documents locally, generate AI-powered recommendations, organize approved files, and demonstrate the Undo functionality.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SlothDesk in Action
&lt;/h2&gt;

&lt;p&gt;Here's a look at SlothDesk running locally with Ollama and Qwen2.5:1.5b. Every screenshot shows the actual application using fictional sample files.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Warm Ivory: The Main Workspace
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F492etyyppbovze5p2pui.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F492etyyppbovze5p2pui.jpeg" alt="SlothDesk Warm Ivory interface showing the Inbox, AI Suggestions, organized folders, and history" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Warm Ivory workspace brings file selection, local model status, AI suggestions, and organization history together in one interface.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Emerald Night: Dark Mode
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvjlrngfxkfekjw5bf045.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvjlrngfxkfekjw5bf045.jpeg" alt="SlothDesk Emerald Night dark theme showing the local AI file organizer" width="800" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Emerald Night theme offers the same functionality with a darker, focused visual style.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Organizing Files and Tracking History
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9dndk9c5jfw62dsglxh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9dndk9c5jfw62dsglxh.jpeg" alt="SlothDesk organized files with category counts and batch history" width="799" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Files are grouped into categories after approval, and SlothDesk keeps a history of organization batches.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Local AI Analysis in Action
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flqp5ygq7s6jl1pzahj00.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flqp5ygq7s6jl1pzahj00.jpeg" alt="Qwen2.5 analyzing files locally and generating editable AI recommendations" width="800" height="482"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Qwen2.5 analyzes documents locally and suggests categories, filenames, and summaries. Users can review and modify every recommendation before moving files.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Approval, Organization, and Undo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F972yiyew7lcfbodctl8t.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F972yiyew7lcfbodctl8t.jpeg" alt="SlothDesk showing organized files, updated category counts, and undo history" width="799" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;After approval, files move into their categories. The latest organization batch can be undone to restore the files.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Try SlothDesk Locally
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/axyz97836/slothdesk" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Official Release:&lt;/strong&gt; &lt;a href="https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also follow the installation instructions in the README to run SlothDesk on your own computer.&lt;/p&gt;

&lt;p&gt;SlothDesk is a local-first application, so there is no publicly hosted version. The interface runs on 127.0.0.1:8765, and the AI model runs through Ollama on the user's computer.&lt;/p&gt;

&lt;p&gt;You can explore the project, its setup instructions, and the source code here:&lt;/p&gt;

&lt;p&gt;Try SlothDesk locally&lt;/p&gt;

&lt;p&gt;First, install Ollama and download the model:&lt;/p&gt;

&lt;p&gt;ollama pull qwen2.5:1.5b&lt;/p&gt;

&lt;p&gt;Make sure Ollama is running, then clone the project:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/axyz97836/slothdesk.git" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk.git&lt;/a&gt;&lt;br&gt;
cd slothdesk&lt;br&gt;
python3 app.py&lt;/p&gt;

&lt;p&gt;Open:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://127.0.0.1:8765" rel="noopener noreferrer"&gt;http://127.0.0.1:8765&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From there, load the fictional sample files, select the files you want analyzed, review the AI suggestions, approve an organization plan, and try the Undo functionality.&lt;/p&gt;

&lt;p&gt;The complete setup and troubleshooting instructions are available in the repository's README.&lt;/p&gt;

&lt;p&gt;What the workflow looks like&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    Files in Inbox
          |
          v
   Select Documents
          |
          v
  Local Ollama + Qwen
          |
          v
   AI Recommendations
   /       |        \
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Category   Filename   Summary&lt;br&gt;
       \       |        /&lt;br&gt;
              v&lt;br&gt;
         Human Review&lt;br&gt;
              |&lt;br&gt;
              v&lt;br&gt;
       Explicit Approval&lt;br&gt;
              |&lt;br&gt;
              v&lt;br&gt;
        Organized Files&lt;br&gt;
              |&lt;br&gt;
              v&lt;br&gt;
         Undo Available&lt;/p&gt;

&lt;p&gt;Everything happens on the user's own machine.&lt;/p&gt;

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

&lt;p&gt;SlothDesk is fully open-source and available under the MIT License.&lt;/p&gt;

&lt;p&gt;Source Code:&lt;br&gt;
&lt;a href="https://github.com/axyz97836/slothdesk" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Official Release:&lt;br&gt;
&lt;a href="https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository includes the application source, automated tests, setup instructions, changelog, contribution guidelines, and security documentation.&lt;/p&gt;

&lt;p&gt;The main technologies are:&lt;br&gt;
Component&lt;br&gt;
Technology&lt;br&gt;
Backend&lt;br&gt;
Python standard library&lt;br&gt;
Frontend&lt;br&gt;
HTML, CSS, Vanilla JavaScript&lt;br&gt;
AI runtime&lt;br&gt;
Ollama&lt;br&gt;
Open-weight model&lt;br&gt;
Qwen2.5:1.5b&lt;br&gt;
Data storage&lt;br&gt;
Local filesystem and JSON history&lt;br&gt;
Testing&lt;br&gt;
Python unittest and GitHub Actions&lt;br&gt;
License&lt;br&gt;
MIT&lt;br&gt;
No external database, cloud inference service, or frontend framework is required.&lt;/p&gt;

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

&lt;p&gt;I started with a simple question:&lt;/p&gt;

&lt;p&gt;Can a small language model running on my laptop understand enough about a document to help me organize it?&lt;/p&gt;

&lt;p&gt;Instead of building a complicated autonomous agent, I decided to keep the architecture straightforward.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Running open-weight AI locally&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The core of SlothDesk is Qwen2.5 1.5B, running through Ollama.&lt;/p&gt;

&lt;p&gt;I chose a relatively small open-weight model because this task doesn't require a massive general-purpose reasoning system.&lt;/p&gt;

&lt;p&gt;For every supported file, the Python backend reads its contents and sends an organization request to the local model.&lt;/p&gt;

&lt;p&gt;The model returns structured recommendations containing information such as:&lt;/p&gt;

&lt;p&gt;A suggested category&lt;/p&gt;

&lt;p&gt;A clearer filename&lt;/p&gt;

&lt;p&gt;A short summary&lt;/p&gt;

&lt;p&gt;An explanation for the recommendation&lt;/p&gt;

&lt;p&gt;The frontend then presents these as editable proposals.&lt;/p&gt;

&lt;p&gt;One of the biggest advantages is that file contents don't need to be uploaded to a third-party AI inference service.&lt;/p&gt;

&lt;p&gt;After installing Ollama and downloading the model, inference can run locally without an internet connection.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keeping the architecture lightweight&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;SlothDesk uses Python's standard library for its backend and regular HTML, CSS, and JavaScript for its frontend.&lt;/p&gt;

&lt;p&gt;I deliberately avoided adding a heavy frontend framework, database, or background-job system.&lt;/p&gt;

&lt;p&gt;The backend serves the interface, handles local AI requests, validates files, and performs approved filesystem operations.&lt;/p&gt;

&lt;p&gt;The frontend handles file selection, recommendation review, progress indicators, editing, and user feedback.&lt;/p&gt;

&lt;p&gt;This keeps the project approachable for anyone who wants to understand or modify it.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Making AI recommendations safe&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This was one of the most important engineering decisions.&lt;/p&gt;

&lt;p&gt;Language models can generate useful suggestions, but they can also produce unexpected filenames or incorrect classifications.&lt;/p&gt;

&lt;p&gt;I didn't want a model response to immediately trigger file operations.&lt;/p&gt;

&lt;p&gt;SlothDesk separates the workflow into two stages:&lt;/p&gt;

&lt;p&gt;Stage 1: Analysis&lt;/p&gt;

&lt;p&gt;The AI reads supported files and prepares recommendations.&lt;/p&gt;

&lt;p&gt;Stage 2: Approval&lt;/p&gt;

&lt;p&gt;The user reviews, edits, and explicitly approves the selected recommendations before any files are moved.&lt;/p&gt;

&lt;p&gt;The backend also validates source paths, destination filenames, file types, and file existence.&lt;/p&gt;

&lt;p&gt;Destination creation uses no-overwrite safeguards, while organization history supports undoing the latest active batch.&lt;/p&gt;

&lt;p&gt;These safeguards are useful, although they are not a claim that every possible filesystem race or platform behavior has been eliminated.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Handling failures without losing progress&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Originally, one failed AI request could disrupt an entire analysis batch.&lt;/p&gt;

&lt;p&gt;I improved the workflow so that SlothDesk processes files individually and tracks real progress.&lt;/p&gt;

&lt;p&gt;If the third file in a five-file batch fails, the successful results are preserved and the remaining files can still be processed.&lt;/p&gt;

&lt;p&gt;Failed files are identified, and the user can retry them without generating duplicate recommendation cards.&lt;/p&gt;

&lt;p&gt;I also added clearer error messages for situations such as Ollama being offline, inference timeouts, and malformed model responses.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A real bug I encountered during CI&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the most interesting problems appeared after the application passed its local tests.&lt;/p&gt;

&lt;p&gt;A GitHub Actions test failed on Linux because of inode reuse on the ext4 filesystem.&lt;/p&gt;

&lt;p&gt;During a simulated rollback race, a destination file was removed and immediately recreated by another process. Linux reused the same inode number, which caused the original rollback identity check to mistake the new file for the old one.&lt;/p&gt;

&lt;p&gt;The fix strengthened destination identity verification using device and inode information along with file size and timestamps.&lt;/p&gt;

&lt;p&gt;It was a useful lesson: passing tests locally doesn't guarantee that filesystem behavior will be identical across operating systems.&lt;/p&gt;

&lt;p&gt;The improved checks passed the regression tests on GitHub Actions. They reduce the identified risk, but they are not an absolute guarantee against every possible concurrent filesystem modification.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Building an interface I'd actually enjoy using&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I also wanted SlothDesk to feel like a real productivity tool rather than a generic AI dashboard.&lt;/p&gt;

&lt;p&gt;I created a two-pane workspace, with Inbox on one side and AI Suggestions on the other.&lt;/p&gt;

&lt;p&gt;The design uses three main colors:&lt;/p&gt;

&lt;p&gt;Warm Ivory for calm, readable surfaces.&lt;/p&gt;

&lt;p&gt;Emerald Green for primary actions and selection.&lt;/p&gt;

&lt;p&gt;Vermilion for distinctive visual accents.&lt;/p&gt;

&lt;p&gt;There's also an Emerald Night theme for dark-mode users.&lt;/p&gt;

&lt;p&gt;I added subtle animations tied to real events, including file analysis, new recommendations, successful organization, and undo.&lt;/p&gt;

&lt;p&gt;The interface also supports keyboard navigation, accessible focus states, and layouts for smaller screens.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Testing the complete workflow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I used AI-assisted development during the project, but I treated generated code as something that still needed review and verification.&lt;/p&gt;

&lt;p&gt;The application went through multiple stages covering filesystem safety, UI design, inference reliability, accessibility, and documentation.&lt;/p&gt;

&lt;p&gt;The final reported verification included:&lt;/p&gt;

&lt;p&gt;38 passing automated Python tests&lt;/p&gt;

&lt;p&gt;Python and JavaScript syntax checks&lt;/p&gt;

&lt;p&gt;Successful GitHub Actions workflows&lt;/p&gt;

&lt;p&gt;Real inference with Qwen2.5:1.5b&lt;/p&gt;

&lt;p&gt;Full Inbox → Analysis → Approval → Organization → Undo testing&lt;/p&gt;

&lt;p&gt;Responsive checks from 320px to 1440px&lt;/p&gt;

&lt;p&gt;Error and recovery testing&lt;/p&gt;

&lt;p&gt;The tests cover important regression cases, but like any project, they cannot prove the absence of all bugs.&lt;/p&gt;

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

&lt;p&gt;For me, open innovation isn't just about having access to source code.&lt;/p&gt;

&lt;p&gt;It's about who controls the software, the model, and the data.&lt;/p&gt;

&lt;p&gt;SlothDesk is a good example of why that matters.&lt;/p&gt;

&lt;p&gt;Privacy without unnecessary uploads&lt;/p&gt;

&lt;p&gt;The files SlothDesk processes can include personal notes, study materials, source code, or financial documents.&lt;/p&gt;

&lt;p&gt;Using local inference means those contents do not need to be sent to a hosted AI provider for classification.&lt;/p&gt;

&lt;p&gt;The application runs its inference through Ollama on the user's own machine.&lt;/p&gt;

&lt;p&gt;Freedom to experiment&lt;/p&gt;

&lt;p&gt;Because the model runs locally and the application is open-source, developers can inspect its behavior, improve prompts, change its organization rules, and extend its supported model configuration.&lt;/p&gt;

&lt;p&gt;The AI component isn't hidden behind a proprietary service that users have no control over.&lt;/p&gt;

&lt;p&gt;No per-request API billing&lt;/p&gt;

&lt;p&gt;SlothDesk doesn't require a paid cloud inference API.&lt;/p&gt;

&lt;p&gt;Users still bear their own hardware and electricity costs, but they don't need to purchase API credits just to classify a few documents.&lt;/p&gt;

&lt;p&gt;Offline capability&lt;/p&gt;

&lt;p&gt;Once the application, runtime, and model are installed, SlothDesk can perform its core analysis without an internet connection.&lt;/p&gt;

&lt;p&gt;That's particularly useful for a local file utility.&lt;/p&gt;

&lt;p&gt;The ability to learn from the implementation&lt;/p&gt;

&lt;p&gt;I learned a lot from building the complete system, especially around local model integration, structured outputs, filesystem safety, concurrency, and testing.&lt;/p&gt;

&lt;p&gt;Making the project open-source means someone else can study these decisions, challenge them, and improve them.&lt;/p&gt;

&lt;p&gt;That's what I like most about open innovation: you're not only using technology, you're able to understand and change the technology you're relying on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;SlothDesk doesn't completely eliminate file management. It eliminates much of the repetitive decision-making involved.&lt;/p&gt;

&lt;p&gt;Instead of repeatedly opening documents, figuring out their purpose, deciding which category fits, and thinking of better filenames, I can review a plan prepared by local AI.&lt;/p&gt;

&lt;p&gt;The difference is that I'm reviewing decisions rather than starting each decision from scratch.&lt;/p&gt;

&lt;p&gt;In local testing, the application successfully analyzed fictional sample documents, generated recommendations, organized approved files, and restored them through Undo.&lt;/p&gt;

&lt;p&gt;A sample inference run took approximately 3.2 seconds per file on the tested local hardware. That's an inference measurement, not a measured time-saving benchmark.&lt;/p&gt;

&lt;p&gt;The actual productivity benefit will depend on the user's files, model performance, and how often they need to correct the suggestions.&lt;/p&gt;

&lt;p&gt;And I intentionally kept approval in the workflow.&lt;/p&gt;

&lt;p&gt;The goal isn't to let AI take control of my files. It's to make organizing them less tedious while keeping me in control.&lt;/p&gt;

&lt;p&gt;What I'd Improve Next&lt;/p&gt;

&lt;p&gt;SlothDesk is a working first release, but there are still areas I'd like to explore:&lt;/p&gt;

&lt;p&gt;Support for additional document formats, with appropriate parsing and privacy controls.&lt;/p&gt;

&lt;p&gt;Better organization suggestions using filename and content context.&lt;/p&gt;

&lt;p&gt;More flexible batch history and undo.&lt;/p&gt;

&lt;p&gt;Further testing across operating systems and filesystem types.&lt;/p&gt;

&lt;p&gt;Improved performance for larger collections.&lt;/p&gt;

&lt;p&gt;Additional small local models for users with different hardware.&lt;/p&gt;

&lt;p&gt;For now, the focus is on keeping the tool lightweight, understandable, and safe for its supported use cases.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;Hacktoberfest Week 3's theme was Slow and Steady, and that's exactly the philosophy I tried to follow.&lt;/p&gt;

&lt;p&gt;I didn't want to build an AI tool that aggressively changes everything on its own.&lt;/p&gt;

&lt;p&gt;I wanted one that quietly does the boring thinking, gives useful recommendations, and lets me decide what happens next.&lt;/p&gt;

&lt;p&gt;A little slower, perhaps, but much more deliberate.&lt;/p&gt;

&lt;p&gt;That's SlothDesk.&lt;/p&gt;

&lt;p&gt;If you're interested in local AI, Python, Ollama, or privacy-first developer tools, feel free to explore the repository, open an issue, or contribute.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/axyz97836/slothdesk" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Release: &lt;a href="https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;https://github.com/axyz97836/slothdesk/releases/tag/v1.0.0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>My first post</title>
      <dc:creator>Axyz</dc:creator>
      <pubDate>Mon, 12 Oct 2026 20:15:46 +0000</pubDate>
      <link>https://dev.to/axyz97836/my-first-post-42e6</link>
      <guid>https://dev.to/axyz97836/my-first-post-42e6</guid>
      <description>&lt;p&gt;hello there!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
