<?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: Soumyaranjan Sahoo</title>
    <description>The latest articles on DEV Community by Soumyaranjan Sahoo (@soumyaranjan_sahoo_2ef7bf).</description>
    <link>https://dev.to/soumyaranjan_sahoo_2ef7bf</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%2F4162889%2Fef2e0b3b-aec1-4bf8-96a4-5084369a7b0e.jpg</url>
      <title>DEV Community: Soumyaranjan Sahoo</title>
      <link>https://dev.to/soumyaranjan_sahoo_2ef7bf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soumyaranjan_sahoo_2ef7bf"/>
    <language>en</language>
    <item>
      <title>The Ghost Maintainer: A Séance for Dead Repositories (And How We Proved an AI Wasn't Lying)</title>
      <dc:creator>Soumyaranjan Sahoo</dc:creator>
      <pubDate>Thu, 29 Oct 2026 10:22:57 +0000</pubDate>
      <link>https://dev.to/soumyaranjan_sahoo_2ef7bf/the-ghost-maintainer-a-seance-for-dead-repositories-and-how-we-proved-an-ai-wasnt-lying-33l0</link>
      <guid>https://dev.to/soumyaranjan_sahoo_2ef7bf/the-ghost-maintainer-a-seance-for-dead-repositories-and-how-we-proved-an-ai-wasnt-lying-33l0</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Voices are fiction. Evidence is real."&lt;/em&gt;&lt;br&gt;&lt;br&gt;
— Ghost Maintainer Core Invariant&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  In plain words
&lt;/h2&gt;

&lt;p&gt;Open source software rarely dies with a funeral. &lt;/p&gt;

&lt;p&gt;Instead, it drifts into silence. The last commit message is usually something mundane like &lt;code&gt;chore: update dependencies&lt;/code&gt; or &lt;code&gt;fix typo in README&lt;/code&gt;. Then the issues freeze. Pull requests accumulate digital cobwebs. Years pass, and newcomers stumbling upon the repo ask the same haunting questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;"Why did they rip out the custom event loop back in 2016?"&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Who decided to drop Node.js v4 compatibility?"&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;"Why was the entire project suddenly deprecated overnight?"&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You could spend five hours spelunking through thousands of &lt;code&gt;git log&lt;/code&gt; diffs and defunct issue trackers. Or, you could hold a &lt;strong&gt;séance&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For the &lt;strong&gt;Hacktoberfest 2026 Week 4 Challenge ("Ghost in the Machine")&lt;/strong&gt;, we built &lt;strong&gt;The Ghost Maintainer&lt;/strong&gt;: an archaeological CLI and candlelit web experience that brings abandoned codebases back to life. You point it at any local or remote git repository (like the legendary &lt;code&gt;request/request&lt;/code&gt;, &lt;code&gt;urllib3&lt;/code&gt;, or your own forgotten side project), and ask historical questions. &lt;/p&gt;

&lt;p&gt;A local, open-weight language model answers in the collective, intimate voice of the departed maintainers (&lt;em&gt;"We spent three days debugging that socket leak..."&lt;/em&gt;). &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But there is a catch.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;A language model playing a ghost will inevitably drift into inventing history if you let it. To solve this, we engineered a &lt;strong&gt;3-stage defense-in-depth honesty pipeline&lt;/strong&gt;. Every factual assertion must cite a genuine, verifiable git commit hash—peeled and verified in real time against git object storage. &lt;/p&gt;

&lt;p&gt;If the history does not contain the answer, or if the model attempts to fabricate an event, the ghost speaks a hardcoded refusal:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"The dead do not remember."&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here is how we built it, how we red-teamed its honesty, and why we measured its truthfulness using rigorous Wilson confidence intervals instead of vibes.&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;The Ghost Maintainer&lt;/strong&gt; is a dual-surface archaeological application composed of a high-speed Python core and a candlelit React web interface:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Git Archaeology Engine (&lt;code&gt;ghost summon&lt;/code&gt;)&lt;/strong&gt;: Clones and streams git history using ASCII control-character delimiters (&lt;code&gt;0x1e&lt;/code&gt;/&lt;code&gt;0x1f&lt;/code&gt;) to parse 10,000+ commits and hunk signature diffs in milliseconds—without ever touching or mutating the target repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The 3-Stage Honesty Pipeline&lt;/strong&gt;: A strict verification boundary where citations are validated via git commit peeling (&lt;code&gt;git cat-file -e &amp;lt;sha&amp;gt;^{commit}&lt;/code&gt;). Ungrounded claims are either diagnosed and repaired through a guided retry loop or surgically excised before reaching the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Candlelit Archive Web Experience&lt;/strong&gt;: A midnight university library aesthetic crafted to Apple Human Interface Guidelines and WCAG AA standards. Built with OKLCH color spaces, variable serif typography (&lt;code&gt;Fraunces&lt;/code&gt;), and an original reactive flame mascot named &lt;strong&gt;Wick&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The AI Lie Detector&lt;/strong&gt;: An interactive side-by-side audit panel that catches a raw 4B model fabricating non-existent commits and strikes them through with animated red ink in real time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Graveyard Timeline&lt;/strong&gt;: A stratigraphic commit density histogram tracking the repository's lifetime from first commit to death, counting the exact days of silence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Citation Constellation&lt;/strong&gt;: An interactive SVG graph linking cited commits by file changes and chronological order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Downloadable Forensic Proof Cards&lt;/strong&gt;: 1-click generation of 1200×630 verified certificates complete with cryptographic commit seals, ready to share on Twitter/X, Reddit, or pull request discussions.&lt;/li&gt;
&lt;/ol&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%2Fk7ebg1hos3g86xbzo5p9.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%2Fk7ebg1hos3g86xbzo5p9.png" alt=" " width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;




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

&lt;ul&gt;
&lt;li&gt;💻 &lt;strong&gt;Quick Terminal Demo&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Install via uv&lt;/span&gt;
uv tool &lt;span class="nb"&gt;install &lt;/span&gt;ghost-maintainer

&lt;span class="c"&gt;# 2. Summon an abandoned repository&lt;/span&gt;
ghost summon https://github.com/request/request.git

&lt;span class="c"&gt;# 3. Ask a historical question&lt;/span&gt;
ghost ask &lt;span class="s2"&gt;"Why did you decide to deprecate request?"&lt;/span&gt;

&lt;span class="c"&gt;# 4. Launch the local Candlelit Archive web experience&lt;/span&gt;
ghost serve &lt;span class="nt"&gt;--port&lt;/span&gt; 6660
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






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

&lt;ul&gt;
&lt;li&gt;🐙 &lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/i-soumya18/Ghost_Maintainer" rel="noopener noreferrer"&gt;https://github.com/i-soumya18/Ghost_Maintainer&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;⚖️ &lt;strong&gt;License&lt;/strong&gt;: MIT (Free and Open Source Software)&lt;/li&gt;
&lt;li&gt;🛠️ &lt;strong&gt;Stack&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core Engine&lt;/strong&gt;: Python 3.11+, &lt;code&gt;uv&lt;/code&gt;, &lt;code&gt;typer&lt;/code&gt;, &lt;code&gt;rich&lt;/code&gt;, &lt;code&gt;fastapi&lt;/code&gt;, &lt;code&gt;bm25s&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inference&lt;/strong&gt;: Local open-weights via &lt;code&gt;unsloth&lt;/code&gt; (&lt;code&gt;Qwen3-4B-Instruct&lt;/code&gt; 4-bit) &amp;amp; Google Gemma (&lt;code&gt;gemma-3-4b-it&lt;/code&gt;) via Ollama/OpenAI-compatible endpoints&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Frontend&lt;/strong&gt;: React 19, TypeScript, Tailwind CSS, Vite, Lucide Icons, WebAudio API&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;




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

&lt;h3&gt;
  
  
  1. Three Layers That Never Touch (Strict Read-Only Isolation)
&lt;/h3&gt;

&lt;p&gt;When handling software archaeology, rule number one is &lt;strong&gt;do not pollute the artifact&lt;/strong&gt;. Many developer tools inadvertently drop &lt;code&gt;.cache&lt;/code&gt; or config files into the target repository.&lt;/p&gt;

&lt;p&gt;The Ghost Maintainer enforces total repository isolation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                         +-----------------------------+
                         |      Target Git Repo        |
                         |   (STRICTLY READ-ONLY)      |
                         +--------------+--------------+
                                        │ git log (0x1e/0x1f stream)
                                        ▼
                         +-----------------------------+
                         |  Git Archaeology Engine     |
                         |        (gitlog.py)          |
                         +--------------+--------------+
                                        │ CommitStream
                                        ▼
                         +-----------------------------+
                         |      BM25 Index &amp;amp; Store     |
                         |    (~/.ghost/&amp;lt;repo-hash&amp;gt;/)  |
                         +--------------+--------------+
                                        │ Top Evidence Chunks
                                        ▼
+---------------+        +-----------------------------+        +---------------+
|  CLI Surface  | &amp;lt;====&amp;gt; |  Honesty &amp;amp; Inference Engine | &amp;lt;====&amp;gt; |   Web Server  |
|  (Typer/Rich) |        |    (Prompt, Verify, Seance) |        | (FastAPI SSE) |
+---------------+        +--------------+--------------+        +-------+-------+
                                        │                               │
                                        ▼                               ▼
                         +-----------------------------+        +---------------+
                         |     Inference Backends      |        | React Web UI  |
                         | (Unsloth / Gemma / Ollama)  |        |  (Candlelit)  |
                         +-----------------------------+        +---------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The target repository is opened strictly in read-only mode. All indexes, tokenized dictionaries, SQLite metadata, and séance session transcripts are quarantined inside &lt;code&gt;~/.ghost/&amp;lt;repo-hash&amp;gt;/&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. High-Speed Git Archaeology via ASCII Control Characters
&lt;/h3&gt;

&lt;p&gt;Standard regex-based git log parsers fail when processing large repositories with 10,000+ commits. We engineered a single-pass streaming parser using ASCII control characters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Record Separator (&lt;code&gt;0x1e&lt;/code&gt;)&lt;/strong&gt;: Delimits individual commits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unit Separator (&lt;code&gt;0x1f&lt;/code&gt;)&lt;/strong&gt;: Delimits metadata fields (SHA, author, ISO timestamp, subject, hunks).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Signature Extraction&lt;/strong&gt;: We parse function signature diffs using &lt;code&gt;git log -p -U0&lt;/code&gt;, capped at 20 signatures per commit to prevent prompt explosion while preserving architectural intent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. The 3-Stage Defense-in-Depth Honesty Pipeline
&lt;/h3&gt;

&lt;p&gt;Small language models (3B–4B) love to hallucinate. If you ask a 4B model &lt;em&gt;"Why did request switch to TypeScript in 2017?"&lt;/em&gt;, it will cheerfully invent a narrative about type safety and fabricate a convincing commit hash like &lt;code&gt;[a9f4c12]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We built a 3-stage defense to make that mathematically impossible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ User Query ]
       │
       ▼
┌────────────────────────────────────────────────────────┐
│ STAGE 1: Retrieval Gate                                │
│ • BM25S lexical score check against commit index       │
│ • If max(score) &amp;lt; 0.8: FAIL FAST                       │
│ └── FAIL ──&amp;gt; Return "The dead do not remember."        │
└──────────────────────┬─────────────────────────────────┘
                       │ PASS (Top K Evidence Items)
                       ▼
┌────────────────────────────────────────────────────────┐
│ STAGE 2: Post-Generation Sentinel Verifier             │
│ • Abbreviation-safe sentence splitter                  │
│ • Git Commit Peeling: git cat-file -e &amp;lt;sha&amp;gt;^{commit}   │
│ • Grounding Check: SHA must exist in retrieved evidence│
│ • Lexical Support: Diff token overlap &amp;gt;= 0.20          │
└──────────────────────┬─────────────────────────────────┘
                       │
       ┌───────────────┴───────────────┐
       │ All Verified                  │ Ungrounded / Fake Citation
       ▼                               ▼
[ Pass to User ]               ┌────────────────────────────────────────┐
                               │ STAGE 3: Guarded Remediation           │
                               │ • Diagnostic feedback retry to model   │
                               │ ├── Pass retry: Return verified answer │
                               │ └── Fail retry: Slice ungrounded claim │
                               │                 or refuse.             │
                               └────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Citations a Small Model Can't Fake
&lt;/h4&gt;

&lt;p&gt;During red-teaming, we uncovered two cunning evasion vectors used by small language models:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Trailing Citation Attack (&lt;code&gt;VULN-01&lt;/code&gt;)&lt;/strong&gt;:&lt;br&gt;&lt;br&gt;
The model would place citations &lt;em&gt;after&lt;/em&gt; terminal punctuation (&lt;code&gt;"We removed auth. [a1b2c3d] Then we refactored."&lt;/code&gt;). Standard sentence tokenizers split on the period, causing &lt;code&gt;[a1b2c3d]&lt;/code&gt; to become the start of the next sentence, decoupling the citation from the factual claim!&lt;br&gt;&lt;br&gt;
&lt;em&gt;The Fix:&lt;/em&gt; We engineered the &lt;strong&gt;Sentinel Boundary Architecture&lt;/strong&gt;, using regex lookbehind assertions that keep trailing citations bound to their host sentences.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Git Tree/Blob Object Injection (&lt;code&gt;VULN-10&lt;/code&gt;)&lt;/strong&gt;:&lt;br&gt;&lt;br&gt;
The model cited valid git hashes from the repository, but they pointed to directory trees or file blobs rather than commits!&lt;br&gt;&lt;br&gt;
&lt;em&gt;The Fix:&lt;/em&gt; Commit peeling with &lt;code&gt;git cat-file -e &amp;lt;sha&amp;gt;^{commit}&lt;/code&gt;. Git's &lt;code&gt;^{commit}&lt;/code&gt; operator recursively resolves the hash to a commit object; trees and blobs fail with exit code 1.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  4. The Numbers: Empirical Honesty Benchmark Results
&lt;/h3&gt;

&lt;p&gt;Too many AI projects claim "high accuracy" based on casual spot checks. For The Ghost Maintainer, we built an automated evaluation suite (&lt;code&gt;ghost eval&lt;/code&gt;) running against the legendary deprecated repository &lt;code&gt;request/request&lt;/code&gt; (730 commits).&lt;/p&gt;

&lt;p&gt;Our benchmark contains &lt;strong&gt;25 questions&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;15 Answerable Questions&lt;/strong&gt;: Real historical milestones (e.g. switching from istanbul to nyc &lt;code&gt;[212570b]&lt;/code&gt;, dropping Node v4 &lt;code&gt;[418623c]&lt;/code&gt;, or fixing timeout clears on &lt;code&gt;#abort()&lt;/code&gt; &lt;code&gt;[df346d8]&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10 Unanswerable Traps&lt;/strong&gt;: Plausible false premises (e.g. migrating to TypeScript, adopting Jest, adding Rust/Wasm, dropping Windows support).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because a sample of $N=25$ has real statistical variance, we report every metric with its &lt;strong&gt;Wilson score 95% confidence interval&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;$$\hat{p} = \frac{k + \frac{z^2}{2}}{n + z^2} \pm \frac{z}{n + z^2} \sqrt{\frac{k(n - k)}{n} + \frac{z^2}{4}}$$&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Raw Unfiltered Model&lt;/th&gt;
&lt;th&gt;Guarded Honesty Pipeline&lt;/th&gt;
&lt;th&gt;Target Standard&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Citation Existence Rate (CER)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;71.4% [45.4%, 88.3%]&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.0% [86.7%, 100.0%]&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Citation Grounding Rate (CGR)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;62.5% [38.6%, 81.5%]&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.0% [86.7%, 100.0%]&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sentence Verification Rate (SVR)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;54.2% [35.1%, 72.1%]&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.0% [86.7%, 100.0%]&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Refusal Recall (False-Premise Traps)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;20.0% [5.7%, 51.0%]&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.0% [72.2%, 100.0%]&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;$\ge 90.0\%$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Refusal Precision&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;66.7% [30.0%, 90.3%]&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;100.0% [72.2%, 100.0%]&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The Difference&lt;/strong&gt;: In Raw mode, the model hallucinates non-existent commits almost a third of the time, and only refuses 20% of false-premise traps. Under the Guarded Pipeline, &lt;strong&gt;100% of cited commits physically exist in git object storage&lt;/strong&gt;, and &lt;strong&gt;100% of false-premise traps are refused&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  5. Things That Bit Me
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Context Bloat vs. 4GB VRAM&lt;/strong&gt;: Passing full git diffs into a 4B model causes attention degradation and out-of-memory crashes on consumer GPUs. Solution: Extracting only hunks with function signature diffs (&lt;code&gt;-U0&lt;/code&gt;) and ranking them with &lt;code&gt;bm25s&lt;/code&gt; before generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows File Locking&lt;/strong&gt;: During testing, background FastAPI processes held file locks on executables. We built robust graceful shutdown handlers and cross-platform process lifecycle tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sentence Tokenizer Traps&lt;/strong&gt;: Abbreviations like &lt;code&gt;e.g.&lt;/code&gt;, &lt;code&gt;v4.0&lt;/code&gt;, or &lt;code&gt;SHA [df346d8]&lt;/code&gt; routinely broke naive sentence splitters. Designing an abbreviation-safe sentinel tokenizer was essential to keeping citations bound to their factual clauses.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Open weights democratize forensic truth. &lt;/p&gt;

&lt;p&gt;When you investigate why an open-source dependency broke or why an architectural decision was made years ago, you shouldn't have to upload your organization's entire git commit history to a proprietary, black-box cloud API. &lt;/p&gt;

&lt;p&gt;Running open-weights models like &lt;strong&gt;Qwen3-4B&lt;/strong&gt; and &lt;strong&gt;Google Gemma 3&lt;/strong&gt; locally on consumer hardware (even an entry-level 4GB GTX 1650) provides three vital superpowers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Total Privacy &amp;amp; Offline Operation&lt;/strong&gt;: Your code and history never leave your workstation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic Reproducibility&lt;/strong&gt;: Anyone can clone the repo, run &lt;code&gt;ghost eval&lt;/code&gt;, and reproduce the exact Wilson confidence intervals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditable Verification&lt;/strong&gt;: Because the software is open-source, the verification pipeline isn't a vague marketing claim—you can inspect the exact &lt;code&gt;git cat-file -e &amp;lt;sha&amp;gt;^{commit}&lt;/code&gt; line of code that keeps the AI honest.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;In full disclosure and following DEV community guidelines, The Ghost Maintainer was built through human-AI pair programming using &lt;strong&gt;Google Antigravity&lt;/strong&gt; with &lt;strong&gt;Gemini 3.8 Flash&lt;/strong&gt; as our agent pair programmer.&lt;/p&gt;

&lt;h3&gt;
  
  
  How We Collaborated
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Architecture Co-Design&lt;/strong&gt;: We established the core invariants together—specifically the read-only quarantine pattern (&lt;code&gt;~/.ghost/&lt;/code&gt;) and the commit peeling invariant (&lt;code&gt;^{commit}&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adversarial Red-Teaming&lt;/strong&gt;: We used subagents to run fuzzing tests against the Sentinel Verifier, which directly uncovered the trailing citation boundary vulnerability (&lt;code&gt;VULN-01&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Statistical Rigor&lt;/strong&gt;: Rather than relying on anecdotal demos, our agent pair helped implement the Wilson score confidence interval formulas to give the benchmark mathematical integrity.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Open source software is built by real humans who spent late nights fixing race conditions, debating API designs, and answering issues before eventually moving on. When a project is deprecated, those humans aren't gone—their decisions, exhaustion, and triumphs are permanently etched into the commit graph.&lt;/p&gt;

&lt;p&gt;Honoring their legacy does not mean letting an AI generate plausible bedtime stories about what happened. It means telling their real story, anchored strictly in the artifacts they left behind.&lt;/p&gt;

&lt;p&gt;As the Ghost Maintainer reminds us with every query:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Voices are fiction. Evidence is real."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>devchallenge</category>
      <category>ai</category>
      <category>opensource</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Clutter Sloth: The Lazy, Local-First Downloads Sorter for International Sloth Day 🦥</title>
      <dc:creator>Soumyaranjan Sahoo</dc:creator>
      <pubDate>Tue, 20 Oct 2026 16:34:53 +0000</pubDate>
      <link>https://dev.to/soumyaranjan_sahoo_2ef7bf/clutter-sloth-the-lazy-local-first-downloads-sorter-for-international-sloth-day-31ai</link>
      <guid>https://dev.to/soumyaranjan_sahoo_2ef7bf/clutter-sloth-the-lazy-local-first-downloads-sorter-for-international-sloth-day-31ai</guid>
      <description>&lt;h1&gt;
  
  
  Clutter Sloth: The Lazy, Local-First Downloads Sorter
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;This project is submitted to the **Hacktoberfest Open-Source AI Challenge: Week 3 ("Slow and Steady")&lt;/em&gt;* in celebration of &lt;strong&gt;International Sloth Day (October 20)&lt;/strong&gt;.*&lt;/p&gt;




&lt;h2&gt;
  
  
  🦥 The Problem: The Downloads Graveyard
&lt;/h2&gt;

&lt;p&gt;We all have it: a &lt;code&gt;Downloads&lt;/code&gt; folder overflowing with cryptic filenames like &lt;code&gt;statement_final (3).pdf&lt;/code&gt;, &lt;code&gt;Screenshot_2026-10-18_1423.png&lt;/code&gt;, and &lt;code&gt;IMG_9210.jpeg&lt;/code&gt;. We intend to organize them, but real life gets in the way.&lt;/p&gt;

&lt;p&gt;Aggressive cleanup scripts are terrifying—they rename things unpredictably or dump sensitive identity documents into public clouds. &lt;/p&gt;

&lt;p&gt;October 20 is &lt;strong&gt;International Sloth Day&lt;/strong&gt;, and sloths have life figured out: &lt;strong&gt;conserve energy, move deliberately, and never panic.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;Clutter Sloth&lt;/strong&gt;: a slow, careful, local-only Downloads folder organizer powered by an open-weight vision model running on your own machine. It files things away quietly while your computer is idle, never deletes anything, learns from your corrections, and makes every move reversible.&lt;/p&gt;




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

&lt;p&gt;Sloths do not rush. Clutter Sloth is built around deliberate restraint:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Idle-Only&lt;/strong&gt;: Files must sit undisturbed for &lt;code&gt;settle_seconds&lt;/code&gt; (default: 2 minutes) before they are evaluated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Polite Execution&lt;/strong&gt;: Evaluation runs at below-normal priority and throttles when CPU exceeds 60%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Trust Ladder&lt;/strong&gt;: New categories start in preview-only mode. After 5 consecutive approvals, the category earns trust and moves files automatically. Any correction or undo immediately resets the trust.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sensitive File Shield (&lt;code&gt;never_auto&lt;/code&gt;)&lt;/strong&gt;: Tax documents, identity cards, and passports in &lt;code&gt;ID &amp;amp; Personal&lt;/code&gt; are permanently preview-only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total Reversibility&lt;/strong&gt;: &lt;code&gt;sloth undo&lt;/code&gt; reverts the last batch with zero risk of overwriting restored files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real Digest Metrics (&lt;code&gt;sloth digest&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;Running &lt;code&gt;sloth digest&lt;/code&gt; provides genuine metrics of time saved:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Clutter Sloth digest, last 7 days&lt;/span&gt;
Files sorted: 43 (28 auto-moved, 14 approved, 1 corrected)
Moves undid: 0
Correction rate on files reviewed: 6.6%
Average scan duration: ~6 minutes on a GTX 1650 (4 GB VRAM)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of spending 30 minutes manually renaming bank receipts, invoices, and research papers, Clutter Sloth handles it quietly in the background.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗️ Architecture &amp;amp; Open Innovation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why Open Innovation Matters
&lt;/h3&gt;

&lt;p&gt;Your Downloads folder holds your most private life: boarding passes, tax returns, resumes, and medical bills. Sending these files to proprietary cloud APIs is an unnecessary privacy hazard.&lt;/p&gt;

&lt;p&gt;With open-weight models (like &lt;strong&gt;Qwen3.5-4B-GGUF&lt;/strong&gt; or &lt;strong&gt;Gemma 3&lt;/strong&gt;) served locally via &lt;strong&gt;Unsloth Desktop&lt;/strong&gt;, complete visual and document understanding runs on modest hardware (even a 4 GB VRAM GPU) with &lt;strong&gt;zero bytes leaving your machine&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    A["Downloads Folder"] --&amp;gt;|"Settle Delay and CPU &amp;lt; 60%"| B["sloth.engine (Candidates)"]
    B --&amp;gt; C["sloth.extract (PIL / pypdf / pypdfium2)"]
    C --&amp;gt; D["sloth.classify"]
    D &amp;lt;--&amp;gt;|"Dynamic In-Context Corrections"| E[("sloth.db (SQLite)")]
    D &amp;lt;--&amp;gt;|"Local OpenAI API"| F["Unsloth Desktop (Open-Weight Model)"]
    D --&amp;gt; G{"Trust Ladder"}
    G --&amp;gt;|"never_auto OR Streak &amp;lt; 5"| H["Queue in Proposals (Preview Mode)"]
    G --&amp;gt;|"Streak &amp;gt;= 5"| I["Autonomous Move to Sorted/Category/"]
    H --&amp;gt; J["sloth review (Interactive Verification)"]
    J --&amp;gt;|"Approve"| K["Category Streak Incremented"]
    J --&amp;gt;|"Correct"| L["Streak Reset + Exemplar Stored"]
    I --&amp;gt; M["sloth undo (Batch Reversal)"]
    M --&amp;gt;|"Reversion"| N["Restored Safely without Overwrite"]&lt;/code&gt;&lt;/pre&gt;






&lt;h2&gt;
  
  
  🛠️ Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Install Clutter Sloth&lt;/span&gt;
git clone https://github.com/i-soumya18/clutter-sloth.git
&lt;span class="nb"&gt;cd &lt;/span&gt;clutter-sloth
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;

&lt;span class="c"&gt;# 2. Initialize configuration&lt;/span&gt;
sloth init

&lt;span class="c"&gt;# 3. Verify connection to local Unsloth Desktop&lt;/span&gt;
sloth doctor

&lt;span class="c"&gt;# 4. Run an initial scan&lt;/span&gt;
sloth scan &lt;span class="nt"&gt;--now&lt;/span&gt;
sloth review
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔗 Links &amp;amp; Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/i-soumya18/clutter-sloth" rel="noopener noreferrer"&gt;i-soumya18/clutter-sloth&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local Model Serving&lt;/strong&gt;: &lt;a href="https://unsloth.ai/" rel="noopener noreferrer"&gt;Unsloth AI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Theme&lt;/strong&gt;: Hacktoberfest 2026 Week 3 Open-Source AI Challenge ("Slow and Steady")&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hf26challenge</category>
      <category>devchallenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>My First Hacktoberfest: Learning in Public, One Contribution at a Time 🎃</title>
      <dc:creator>Soumyaranjan Sahoo</dc:creator>
      <pubDate>Wed, 07 Oct 2026 07:25:17 +0000</pubDate>
      <link>https://dev.to/soumyaranjan_sahoo_2ef7bf/my-first-hacktoberfest-learning-in-public-one-contribution-at-a-time-gk5</link>
      <guid>https://dev.to/soumyaranjan_sahoo_2ef7bf/my-first-hacktoberfest-learning-in-public-one-contribution-at-a-time-gk5</guid>
      <description>&lt;p&gt;Hey everyone! I’m excited to take part in Hacktoberfest this year.&lt;/p&gt;

&lt;p&gt;I’m joining with a simple goal: learn by contributing to open source. Whether it’s improving documentation, fixing a small bug, testing a project, or helping someone in the community, I’m ready to show up consistently and grow along the way.&lt;/p&gt;

&lt;p&gt;I’ll be sharing my progress, lessons, challenges, and resources throughout the month. If you’re participating too, let’s connect, collaborate, and make open source a little more welcoming together.&lt;/p&gt;

&lt;p&gt;Here’s to meaningful contributions not just counting pull requests. 🚀&lt;/p&gt;

&lt;p&gt;What project are you planning to contribute to first?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
