<?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: Mayukh Jyoti Sarkar</title>
    <description>The latest articles on DEV Community by Mayukh Jyoti Sarkar (@mayukhjyotisarkar).</description>
    <link>https://dev.to/mayukhjyotisarkar</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%2F4156400%2Fa5be891b-0edc-47a8-bf7e-ba2eab4e5091.png</url>
      <title>DEV Community: Mayukh Jyoti Sarkar</title>
      <link>https://dev.to/mayukhjyotisarkar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mayukhjyotisarkar"/>
    <language>en</language>
    <item>
      <title>Phantom.exe</title>
      <dc:creator>Mayukh Jyoti Sarkar</dc:creator>
      <pubDate>Sat, 31 Oct 2026 15:09:11 +0000</pubDate>
      <link>https://dev.to/mayukhjyotisarkar/phantomexe-3iad</link>
      <guid>https://dev.to/mayukhjyotisarkar/phantomexe-3iad</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;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;PHANTOM.exe&lt;/strong&gt; — &lt;em&gt;The Ghost in Your Codebase&lt;/em&gt;, a local-first, open-source AI coding companion and static repository forensics tool with an atmospheric Cyberpunk CRT terminal persona.&lt;/p&gt;

&lt;p&gt;The central premise behind &lt;strong&gt;PHANTOM.exe&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"What if your abandoned codebase had a ghost that remembered everything?"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every developer has a graveyard of side projects, legacy microservices, or half-finished feature branches where context has been lost to time. Instead of acting like a generic cloud-hosted chatbot that requires uploading private source code to external servers, &lt;strong&gt;PHANTOM.exe&lt;/strong&gt; inhabits your local project directory like a sentient digital entity that remembers every unfinished function, every forgotten &lt;code&gt;TODO&lt;/code&gt;/&lt;code&gt;FIXME&lt;/code&gt;, every broken syntax tree, and every dormant file in your Git history.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;🔦 Haunted Codebase Scanner:&lt;/strong&gt; Static, read-only repository forensics using Python's &lt;code&gt;ast&lt;/code&gt; module and multi-language heuristics (across 35+ extensions). It detects &lt;code&gt;pass&lt;/code&gt; stubs, &lt;code&gt;...&lt;/code&gt; (Ellipsis) placeholders, functions raising &lt;code&gt;NotImplementedError&lt;/code&gt;, empty classes, mutable default arguments, bare &lt;code&gt;except:&lt;/code&gt; clauses, confirmed &lt;code&gt;SyntaxError&lt;/code&gt;s, &lt;code&gt;TODO&lt;/code&gt;/&lt;code&gt;FIXME&lt;/code&gt;/&lt;code&gt;HACK&lt;/code&gt;/&lt;code&gt;BUG&lt;/code&gt; markers, and orphan backup files—computing a &lt;strong&gt;Codebase Health Score (0–100)&lt;/strong&gt; and &lt;strong&gt;Haunt Level&lt;/strong&gt; without ever importing or executing target repository code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;👻 The Ghost AI (Local Ollama Inference):&lt;/strong&gt; Powered by open-weight language models running locally via &lt;strong&gt;Ollama&lt;/strong&gt; (&lt;code&gt;qwen2.5:3b&lt;/code&gt; by default, configurable to &lt;code&gt;qwen2.5-coder:7b&lt;/code&gt;, &lt;code&gt;llama3.2:3b&lt;/code&gt;, &lt;code&gt;mistral&lt;/code&gt;, etc.). PHANTOM speaks in a calm, eerie, observant, and developer-focused persona grounded strictly in actual repository telemetry so it never fabricates file names, commits, or bug counts. If Ollama is offline, PHANTOM degrades gracefully to a deterministic &lt;strong&gt;Echo Fallback Mode&lt;/strong&gt; while keeping all static analysis features 100% operational.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🕯️ Digital Memories (Git Forensics):&lt;/strong&gt; Dual-engine Git history analyzer (&lt;code&gt;GitPython&lt;/code&gt; + native &lt;code&gt;git&lt;/code&gt; CLI fallback) that extracts commit timelines, active branch (&lt;code&gt;DETACHED_HEAD&lt;/code&gt; and shallow-clone aware), contributor breakdowns, frequently modified hotspot files, and dormant files, while strictly separating &lt;strong&gt;Verified Git Facts (Objective)&lt;/strong&gt; from &lt;strong&gt;PHANTOM's Memory Whispers (AI Persona)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🧪 Paranormal Debugger:&lt;/strong&gt; Unified static diagnostic inspector categorized by severity (&lt;code&gt;critical&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;low&lt;/code&gt;) and confidence level (&lt;code&gt;confirmed AST parser&lt;/code&gt;, &lt;code&gt;AST analysis&lt;/code&gt;, &lt;code&gt;heuristic indicator&lt;/code&gt;, &lt;code&gt;developer annotation&lt;/code&gt;), with one-click &lt;strong&gt;"Summon PHANTOM to Explain"&lt;/strong&gt; root-cause analysis and remediation advice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📜 Last Words Report Generator:&lt;/strong&gt; Generates a complete post-mortem and revival blueprint—synthesizing inferred project purpose, completed work, unfinished work, hotspot files, last Git pulse, recommended revival steps, and a closing statement from PHANTOM—exportable with one click as a standalone Markdown (&lt;code&gt;.md&lt;/code&gt;) report.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🔒 Enforced Local-First Privacy Vault:&lt;/strong&gt; Enforces a loopback-only Ollama boundary (&lt;code&gt;localhost&lt;/code&gt;, &lt;code&gt;127.0.0.1&lt;/code&gt;, &lt;code&gt;::1&lt;/code&gt;) by default across the UI, saved settings, and API endpoints (requiring explicit opt-in with a clear warning for remote hosts), excludes sensitive files (&lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;*.pem&lt;/code&gt;, &lt;code&gt;id_rsa&lt;/code&gt;, &lt;code&gt;credentials.json&lt;/code&gt;), and applies conservative secret redaction across code snippets, &lt;code&gt;TODO&lt;/code&gt; comments, &lt;code&gt;README&lt;/code&gt; summaries, and Git commit messages.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;h3&gt;
  
  
  Sample Ghost Transmission (SpecterAuth Abandoned Repository)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;👻 PHANTOM.exe v1.1.0 — CLI Repository Scanner
   "EVERY CODEBASE HAS A PAST. SOME REFUSE TO STAY BURIED."

Repository       : sample_abandoned_auth_service
Health Score     : 18/100 [POLTERGEIST INFESTATION (Critical)]
Files / Lines    : 6 files, 78 lines (2.6 KB)
Primary Language : Python
Unfinished Funcs : 3 (verify_hardware_mfa_challenge, rotate_refresh_token, dispatch_revocation_webhook)
TODO / FIXME     : 7 TODOs, 4 FIXMEs
Syntax Errors    : 1 (experimental_oauth_bridge.py: line 6)
Total Diagnostics: 22

Closing Statement:
  "Developer, I have walked every corridor of this repository. I counted 6 files,
   3 unfinished functions, and 11 whispered promises in the comments. Your project
   was never dead—it was merely waiting in the dark for someone to finish what was begun."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Interactive 7-View Cyberpunk CRT Dashboard (&lt;code&gt;http://localhost:8501&lt;/code&gt;)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1. Overview:&lt;/strong&gt; Cyberpunk CRT hero header with live telemetry pills (&lt;code&gt;AI LINK&lt;/code&gt;, &lt;code&gt;OLLAMA&lt;/code&gt;, &lt;code&gt;MODEL&lt;/code&gt;, &lt;code&gt;REPO&lt;/code&gt;, &lt;code&gt;PRIVACY: LOOPBACK ONLY&lt;/code&gt;), live Ghost Terminal transmission, 6 metric cards, Quick Séance prompt bar, language distribution bars, and top hotspot files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2. Haunted Scanner:&lt;/strong&gt; Partial-scan boundary telemetry, unfinished AST function tables, &lt;code&gt;TODO&lt;/code&gt;/&lt;code&gt;FIXME&lt;/code&gt; explorer, attention-ranked files, protected sensitive file inventory, and non-fatal scan error logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3. Ghost Chat:&lt;/strong&gt; Streaming neural séance terminal with one-click preset prompts (&lt;em&gt;"What happened here?"&lt;/em&gt;, &lt;em&gt;"Unfinished functions"&lt;/em&gt;, &lt;em&gt;"Security &amp;amp; Bugs"&lt;/em&gt;, &lt;em&gt;"Explain TODOs"&lt;/em&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4. Digital Memories:&lt;/strong&gt; Side-by-side Verified Git Facts vs. PHANTOM Memory Whispers, commit activity chart, hotspot/dormant file tables, and commit timeline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5. Paranormal Debugger:&lt;/strong&gt; Severity/category filters and per-finding AI explanations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;6. Last Words:&lt;/strong&gt; Post-mortem revival report with raw Markdown preview and &lt;code&gt;.md&lt;/code&gt; download.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;7. Settings &amp;amp; Privacy Vault:&lt;/strong&gt; Ollama host/model selector, explicit remote-host opt-in guard, connection tester, installed models table, and one-click SQLite data purge controls.&lt;/li&gt;
&lt;/ul&gt;


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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository (&lt;code&gt;WEEK4&lt;/code&gt; — PHANTOM.exe):&lt;/strong&gt; &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK4" rel="noopener noreferrer"&gt;https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK4&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/mayukhjyotisarkar" rel="noopener noreferrer"&gt;
        mayukhjyotisarkar
      &lt;/a&gt; / &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest" rel="noopener noreferrer"&gt;
        Hacktoberfest
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;h3&gt;
  
  
  Quick Start
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/mayukhjyotisarkar/Hacktoberfest.git
&lt;span class="nb"&gt;cd &lt;/span&gt;Hacktoberfest/WEEK4

python &lt;span class="nt"&gt;-m&lt;/span&gt; venv .venv
&lt;span class="c"&gt;# Windows PowerShell:&lt;/span&gt;
.venv&lt;span class="se"&gt;\S&lt;/span&gt;cripts&lt;span class="se"&gt;\A&lt;/span&gt;ctivate.ps1
&lt;span class="c"&gt;# macOS / Linux:&lt;/span&gt;
&lt;span class="nb"&gt;source&lt;/span&gt; .venv/bin/activate

pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt

&lt;span class="c"&gt;# Optional: Pull default open-weight model in Ollama&lt;/span&gt;
ollama pull qwen2.5:3b
ollama serve

&lt;span class="c"&gt;# Launch FastAPI Backend + Streamlit Cyberpunk Dashboard:&lt;/span&gt;
python run.py

&lt;span class="c"&gt;# Or run the CLI scanner directly on the built-in sample haunted repo:&lt;/span&gt;
python run.py &lt;span class="nt"&gt;--scan&lt;/span&gt; data/sample_abandoned_auth_service

&lt;span class="c"&gt;# Run the automated test suite (all Ollama calls mocked):&lt;/span&gt;
python &lt;span class="nt"&gt;-B&lt;/span&gt; &lt;span class="nt"&gt;-m&lt;/span&gt; pytest &lt;span class="nt"&gt;-p&lt;/span&gt; no:cacheprovider &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






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

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

&lt;p&gt;Both the &lt;strong&gt;Streamlit Cyberpunk CRT Frontend&lt;/strong&gt; (&lt;code&gt;frontend/dashboard.py&lt;/code&gt;) and the &lt;strong&gt;FastAPI REST Backend&lt;/strong&gt; (&lt;code&gt;app/api/routes.py&lt;/code&gt;) share a single unified service layer, &lt;strong&gt;&lt;code&gt;PhantomService&lt;/code&gt;&lt;/strong&gt; (&lt;code&gt;app/core/service.py&lt;/code&gt;), ensuring consistent host policy validation, exact model tag resolution, static scanning, secret redaction, and SQLite persistence across the entire application.&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart LR
    subgraph UI["Streamlit Dashboard (frontend/dashboard.py)"]
        ST_UI["7 Interactive CRT Terminal Views"]
    end

    subgraph API["FastAPI Server (app/api/routes.py)"]
        REST["REST Endpoints (/api/*)"]
    end

    subgraph SVC["Unified Service Layer (app/core/service.py)"]
        PS["PhantomService"]
        SCN["HauntedScanner (Python AST + Heuristics)"]
        GIT["GitAnalyzer (GitPython + Git CLI)"]
        DBG["ParanormalDebugger"]
        RPT["LastWordsGenerator"]
        CTX["RepositoryContextBuilder + redact_secrets()"]
    end

    subgraph LOCAL["100% Local Persistence &amp;amp; Inference"]
        DB[("SQLite (data/phantom.db)")]
        OL[["Ollama Local Server (qwen2.5:3b)"]]
        FS[("Target Local Repository (Read-Only)")]
    end

    ST_UI --&amp;gt; PS
    REST --&amp;gt; PS
    PS --&amp;gt; SCN
    PS --&amp;gt; GIT
    PS --&amp;gt; DBG
    PS --&amp;gt; RPT
    PS --&amp;gt; CTX
    SCN --&amp;gt; FS
    GIT --&amp;gt; FS
    CTX --&amp;gt; OL
    PS &amp;lt;--&amp;gt; DB&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  Technology Stack &amp;amp; Key Engineering Decisions
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python 3.11+ &amp;amp; &lt;code&gt;ast.NodeVisitor&lt;/code&gt;:&lt;/strong&gt; Built &lt;code&gt;PythonASTInspector&lt;/code&gt; to parse Python syntax trees safely in memory without ever importing or executing repository code, catching &lt;code&gt;pass&lt;/code&gt; and &lt;code&gt;...&lt;/code&gt; stubs, &lt;code&gt;NotImplementedError&lt;/code&gt; branches, empty classes, mutable default arguments (&lt;code&gt;def fn(cache=[])&lt;/code&gt;), bare &lt;code&gt;except:&lt;/code&gt; blocks, and exact line/column &lt;code&gt;SyntaxError&lt;/code&gt;s.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama + &lt;code&gt;qwen2.5:3b&lt;/code&gt; Open-Weight Inference:&lt;/strong&gt; Implemented &lt;code&gt;OllamaClient&lt;/code&gt; over &lt;code&gt;httpx&lt;/code&gt; with both synchronous and streaming (&lt;code&gt;SSE&lt;/code&gt; / generator) chat, exact model tag verification (&lt;code&gt;resolve_installed_model&lt;/code&gt;), and deterministic fallback synthesis so the app remains useful even in air-gapped environments or before Ollama is started.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Defense-in-Depth Privacy &amp;amp; Security Hardening:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Enforced path containment (&lt;code&gt;is_safe_subpath&lt;/code&gt;) and symlink skipping so scans cannot escape the target repository root.&lt;/li&gt;
&lt;li&gt;Enforced loopback-only Ollama URL validation (&lt;code&gt;validate_ollama_host&lt;/code&gt;) by default across all UI and API entrypoints.&lt;/li&gt;
&lt;li&gt;Excluded credential files (&lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;*.pem&lt;/code&gt;, &lt;code&gt;id_rsa&lt;/code&gt;, &lt;code&gt;credentials.json&lt;/code&gt;) and redacted common token formats (PEM blocks, connection URIs with passwords, JWTs, AWS/GitHub/OpenAI/Stripe/Slack/Google keys, and quoted/unquoted secret assignments) across code snippets, &lt;code&gt;TODO&lt;/code&gt;s, &lt;code&gt;README&lt;/code&gt; summaries, and Git commit messages.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitPython + Unit-Separated Git CLI Fallback:&lt;/strong&gt; Built &lt;code&gt;GitAnalyzer&lt;/code&gt; to inspect local &lt;code&gt;.git&lt;/code&gt; repositories without walking into parent directories (&lt;code&gt;search_parent_directories=False&lt;/code&gt;), using ASCII unit separators (&lt;code&gt;\x1f&lt;/code&gt;) in &lt;code&gt;git log&lt;/code&gt; so pipe characters (&lt;code&gt;|&lt;/code&gt;) in commit messages never corrupt history parsing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streamlit + Custom Cyberpunk CRT CSS + FastAPI + SQLite:&lt;/strong&gt; Styled the 7-section interface with a custom dark obsidian and neon phosphor green CRT stylesheet (&lt;code&gt;frontend/styles/main.css&lt;/code&gt;) backed by lazy-initialized SQLite persistence (&lt;code&gt;app/database/db.py&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Developer productivity and code intelligence tools should not require surrendering your source code, proprietary business logic, or unpublished Git commit history to closed, proprietary cloud APIs.&lt;/p&gt;

&lt;p&gt;Open-source and open-weight AI models (such as &lt;strong&gt;Qwen 2.5&lt;/strong&gt;, &lt;strong&gt;Llama 3.2&lt;/strong&gt;, and &lt;strong&gt;Mistral&lt;/strong&gt;) combined with local inference engines like &lt;strong&gt;Ollama&lt;/strong&gt; make a fundamentally different software paradigm possible:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;True Code Sovereignty &amp;amp; Privacy:&lt;/strong&gt; When debugging a stalled repository or auditing legacy code for security issues and forgotten &lt;code&gt;FIXME&lt;/code&gt;s, developers often work with sensitive codebases that cannot legally or safely leave their machine. Running open-weight models on &lt;code&gt;localhost&lt;/code&gt; keeps every AST snippet and commit message inside the developer's own hardware boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero API Keys, Zero Quotas, Zero Vendor Lock-In:&lt;/strong&gt; Anyone can clone &lt;strong&gt;PHANTOM.exe&lt;/strong&gt;, pull &lt;code&gt;qwen2.5:3b&lt;/code&gt; (or swap in any other Ollama-compatible model in Settings), and run unlimited repository scans and debugging sessions offline without a credit card or recurring subscription.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspectable &amp;amp; Auditable Trust:&lt;/strong&gt; When an AI tool claims to be "local-first" and "privacy-preserving," open source lets developers inspect the exact URL validator (&lt;code&gt;validate_ollama_host&lt;/code&gt;), path containment guard (&lt;code&gt;is_safe_subpath&lt;/code&gt;), and secret redaction rules (&lt;code&gt;redact_secrets&lt;/code&gt;) rather than trusting a black-box binary.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;I pair-programmed with &lt;strong&gt;Antigravity&lt;/strong&gt; across an iterative architecture, implementation, security review, and verification workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Architecture &amp;amp; Core Engine Design:&lt;/strong&gt; We designed a modular Python package separating static forensics (&lt;code&gt;HauntedScanner&lt;/code&gt;, &lt;code&gt;GitAnalyzer&lt;/code&gt;, &lt;code&gt;ParanormalDebugger&lt;/code&gt;, &lt;code&gt;LastWordsGenerator&lt;/code&gt;), local AI inference (&lt;code&gt;OllamaClient&lt;/code&gt;, &lt;code&gt;RepositoryContextBuilder&lt;/code&gt;, &lt;code&gt;PHANTOM_SYSTEM_PROMPT&lt;/code&gt;), persistence (&lt;code&gt;PhantomDatabase&lt;/code&gt;), and presentation (&lt;code&gt;frontend/dashboard.py&lt;/code&gt; + &lt;code&gt;app/api/routes.py&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sample Haunted Codebase Creation:&lt;/strong&gt; To make &lt;strong&gt;PHANTOM.exe&lt;/strong&gt; immediately testable out of the box, we built a realistic abandoned microservice fixture (&lt;code&gt;SpecterAuth&lt;/code&gt; in &lt;code&gt;data/sample_abandoned_auth_service&lt;/code&gt;) containing unfinished MFA/token-rotation functions, a mid-edit &lt;code&gt;SyntaxError&lt;/code&gt;, mutable default arguments, &lt;code&gt;eval()&lt;/code&gt;/&lt;code&gt;pickle&lt;/code&gt;/&lt;code&gt;shell=True&lt;/code&gt; patterns, and multi-commit Git history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security, Privacy &amp;amp; Reliability Hardening Pass:&lt;/strong&gt; Next, we conducted a rigorous application security and reliability audit:

&lt;ul&gt;
&lt;li&gt;Replaced duplicated UI/API scan and chat flows with a unified &lt;code&gt;PhantomService&lt;/code&gt; layer (&lt;code&gt;app/core/service.py&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Added strict loopback host validation (&lt;code&gt;validate_ollama_host&lt;/code&gt;) with explicit remote opt-in warnings so query/request overrides cannot silently exfiltrate repository context.&lt;/li&gt;
&lt;li&gt;Tightened model readiness checks (&lt;code&gt;resolve_installed_model&lt;/code&gt;) so &lt;code&gt;qwen2.5:3b&lt;/code&gt; never falsely matches &lt;code&gt;qwen2.5:7b&lt;/code&gt;, and added structured handling for timeouts, malformed JSON, and mid-stream disconnects.&lt;/li&gt;
&lt;li&gt;Expanded secret redaction to cover unquoted assignments, connection strings, and Git commit messages, and added unit-separator (&lt;code&gt;\x1f&lt;/code&gt;) Git log parsing, symlink skipping, and partial-scan telemetry (&lt;code&gt;scan_is_partial&lt;/code&gt;, &lt;code&gt;scan_errors&lt;/code&gt;, &lt;code&gt;oversized_files&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Verification:&lt;/strong&gt; We wrote a 9-part pytest suite (&lt;code&gt;tests/test_phantom.py&lt;/code&gt;) testing host boundary enforcement, model tag matching, mocked Ollama failure modes and stream interruptions, multi-source secret redaction, symlink/path containment, scan limits, Git edge cases (empty repos, detached &lt;code&gt;HEAD&lt;/code&gt;, shallow clones, truncated history), and FastAPI HTTP endpoints via &lt;code&gt;httpx.AsyncClient&lt;/code&gt; + &lt;code&gt;ASGITransport&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;




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

&lt;p&gt;&lt;strong&gt;PHANTOM.exe&lt;/strong&gt; embraces the &lt;em&gt;"Ghost in the Machine"&lt;/em&gt; theme both aesthetically and functionally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rather than treating an old or unfinished project like a sterile linter report, &lt;strong&gt;PHANTOM.exe&lt;/strong&gt; turns repository archaeology into an atmospheric &lt;strong&gt;neural séance&lt;/strong&gt; inside a retro Cyberpunk CRT terminal (&lt;code&gt;#080B0D&lt;/code&gt; obsidian background, &lt;code&gt;#39FF88&lt;/code&gt; phosphor green glow, scanline overlays, and live terminal whispers).&lt;/li&gt;
&lt;li&gt;Every feature balances theatrical personality with strict engineering honesty: &lt;strong&gt;Digital Memories&lt;/strong&gt; places &lt;strong&gt;Verified Git Facts&lt;/strong&gt; side-by-side with &lt;strong&gt;PHANTOM's Memory Whispers&lt;/strong&gt;, &lt;strong&gt;Paranormal Debugger&lt;/strong&gt; distinguishes confirmed AST syntax errors from static heuristic indicators, and the &lt;strong&gt;Last Words&lt;/strong&gt; generator transforms a haunted codebase's unfinished functions and lingering &lt;code&gt;TODO&lt;/code&gt;s into a concrete step-by-step revival plan.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source Champion:&lt;/strong&gt; Built entirely on open-source tooling (Python, FastAPI, Streamlit, GitPython, SQLite) and local open-weight AI models via &lt;strong&gt;Ollama&lt;/strong&gt; (&lt;code&gt;qwen2.5:3b&lt;/code&gt;), with zero proprietary cloud API dependencies and an enforced local loopback boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ghost in the Machine (Theme / Creativity):&lt;/strong&gt; Embodies the literal ghost living inside your abandoned repository—remembering your last commit, cataloging your unfinished functions, and channeling a post-mortem &lt;em&gt;"Last Words"&lt;/em&gt; revival blueprint through a Cyberpunk CRT terminal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Technical Execution &amp;amp; Security:&lt;/strong&gt; Combines safe in-memory Python AST analysis, dual-engine Git forensics, defense-in-depth secret redaction across code and commit history, unified service architecture, graceful offline fallback, and a full automated test suite.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Lazy Coder</title>
      <dc:creator>Mayukh Jyoti Sarkar</dc:creator>
      <pubDate>Sun, 25 Oct 2026 13:38:54 +0000</pubDate>
      <link>https://dev.to/mayukhjyotisarkar/lazy-coder-1k2g</link>
      <guid>https://dev.to/mayukhjyotisarkar/lazy-coder-1k2g</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;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"Future you doesn't remember what past you wrote."&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every developer knows the struggle of reopening a side project after two weeks away—or cloning an unfamiliar repository—and having to inspect dozens of files just to remember how everything works.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;What was I working on before I closed my laptop?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Where is the actual entry point?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;How do I install and run this project?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Which TODOs, FIXMEs, and HACKs did past-me leave behind?&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Where should I start if I want to modify a particular feature?&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;LazyCoder&lt;/strong&gt; is a local-first AI coding companion that helps developers understand, navigate, and resume existing codebases without manually investigating every file.&lt;/p&gt;

&lt;p&gt;Instead of building another generic chatbot with a code-themed interface, I built a repository-aware developer workbench combining deterministic static analysis, local code retrieval, persistent storage, and open-weight AI through &lt;strong&gt;Ollama&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;LazyCoder supports local models such as &lt;code&gt;qwen2.5-coder:1.5b-base&lt;/code&gt; and &lt;code&gt;qwen2.5-coder:7b&lt;/code&gt;, depending on the model available on the user's machine.&lt;/p&gt;

&lt;h3&gt;
  
  
  What can it do?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. 📊 AI Project Overview&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Generate a structured architectural briefing covering the project's purpose, technologies, directory structure, important source files, entry points, dependencies, tests, documentation gaps, and suggested starting points.&lt;/p&gt;

&lt;p&gt;The report is grounded in discovered repository files, with local SQLite caching to avoid unnecessarily regenerating results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. 🔍 Multi-Mode File Explainer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understand unfamiliar code using seven explanation modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Beginner-friendly summary&lt;/li&gt;
&lt;li&gt;Line-by-line walkthrough&lt;/li&gt;
&lt;li&gt;Functions and APIs&lt;/li&gt;
&lt;li&gt;Advanced technical explanation&lt;/li&gt;
&lt;li&gt;Potential bugs and edge cases&lt;/li&gt;
&lt;li&gt;Refactoring suggestions&lt;/li&gt;
&lt;li&gt;Dependencies and imports&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. 💬 Ask Your Codebase&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ask natural-language questions about the repository, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where is task creation handled?&lt;/li&gt;
&lt;li&gt;How does the application store data?&lt;/li&gt;
&lt;li&gt;Which files are involved in authentication?&lt;/li&gt;
&lt;li&gt;Where might this bug originate?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Local TF-IDF retrieval identifies relevant code snippets and provides file and line-range references to help developers investigate the actual implementation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. 🛠️ Technical Debt and TODO Hub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Discover unfinished work by locating comments such as &lt;code&gt;TODO&lt;/code&gt;, &lt;code&gt;FIXME&lt;/code&gt;, &lt;code&gt;BUG&lt;/code&gt;, &lt;code&gt;HACK&lt;/code&gt;, and &lt;code&gt;OPTIMIZE&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;LazyCoder organizes these findings and calculates a technical-debt score to help prioritize areas that need attention.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. ⏱️ Session Catch-up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Get back into a project by inspecting Git working-tree changes, recent commits, and recently modified files.&lt;/p&gt;

&lt;p&gt;Instead of trying to remember everything from your previous coding session, you get a useful starting point for continuing your work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. 🚀 Smart Run Guide&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Inspect project manifests such as &lt;code&gt;requirements.txt&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;, and &lt;code&gt;go.mod&lt;/code&gt; to help identify installation, testing, and execution commands.&lt;/p&gt;

&lt;p&gt;The goal is to make returning to an unfamiliar project less intimidating.&lt;/p&gt;




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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live application:&lt;/strong&gt; &lt;a href="https://lazycoder.streamlit.app/" rel="noopener noreferrer"&gt;https://lazycoder.streamlit.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK3" rel="noopener noreferrer"&gt;https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK3&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The deployed Streamlit version demonstrates LazyCoder's repository-analysis workflows using its bundled sample project and deterministic fallback capabilities.&lt;/p&gt;

&lt;p&gt;For local AI inference, run LazyCoder on your machine with Ollama and a compatible model installed.&lt;/p&gt;

&lt;p&gt;This distinction matters: the cloud demonstration and the local Ollama-powered experience have different execution environments.&lt;/p&gt;




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


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/mayukhjyotisarkar" rel="noopener noreferrer"&gt;
        mayukhjyotisarkar
      &lt;/a&gt; / &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest" rel="noopener noreferrer"&gt;
        Hacktoberfest
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The complete implementation is available in the &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK3" rel="noopener noreferrer"&gt;&lt;code&gt;WEEK3/&lt;/code&gt; directory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The project is organized into focused modules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/app.py&lt;/code&gt; — Streamlit interface and developer workbench.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/safety.py&lt;/code&gt; — Filesystem safety checks, secret filtering, and file-size limits.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/scanner.py&lt;/code&gt; — Repository scanning, language detection, manifests, entry points, tests, and TODO extraction.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/local_ai.py&lt;/code&gt; — Local Ollama integration and model communication.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/overview.py&lt;/code&gt; — Evidence-grounded project overview generation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/explainer.py&lt;/code&gt; — Multi-mode source-code explanation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/query_engine.py&lt;/code&gt; — Code chunking, TF-IDF retrieval, and repository-aware question answering.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/session_tracker.py&lt;/code&gt; — Git activity and working-session context.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/todo_tracker.py&lt;/code&gt; — Technical-debt scoring and unfinished-work tracking.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/run_guide.py&lt;/code&gt; — Project setup and execution guidance.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/lazycoder/storage.py&lt;/code&gt; — SQLite persistence and caching.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WEEK3/tests/&lt;/code&gt; — Automated tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The implementation details above describe the intended module responsibilities; consult the repository for the current source code and test coverage.&lt;/p&gt;




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

&lt;p&gt;LazyCoder combines deterministic repository analysis with local AI inference. Each component has a specific responsibility, rather than sending an entire codebase to a language model and hoping for the best.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Deterministic Repository Scanning
&lt;/h3&gt;

&lt;p&gt;The scanner discovers source files, programming languages, project manifests, dependencies, entry points, tests, and unfinished-work markers.&lt;/p&gt;

&lt;p&gt;This provides a structured foundation for subsequent AI operations.&lt;/p&gt;

&lt;p&gt;The scanner is designed to exclude generated directories and sensitive files, enforce file-size limits, and avoid executing repository code.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Filesystem Safety and Privacy
&lt;/h3&gt;

&lt;p&gt;Repository inspection requires access to potentially sensitive source code, so filesystem safety is a core part of the design.&lt;/p&gt;

&lt;p&gt;The safety layer is intended to validate paths against the selected repository root, filter credential files, ignore generated directories, and restrict the files that can be inspected.&lt;/p&gt;

&lt;p&gt;LazyCoder is designed to analyze code without automatically modifying or executing the user's project.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Local Code Retrieval
&lt;/h3&gt;

&lt;p&gt;For repository-aware questions, LazyCoder divides source files into overlapping chunks and indexes their contents using &lt;code&gt;scikit-learn&lt;/code&gt;'s &lt;code&gt;TfidfVectorizer&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When a developer asks a question, the retrieval engine selects relevant snippets and passes their contents and line ranges to the answering component.&lt;/p&gt;

&lt;p&gt;This keeps the context focused on potentially relevant code instead of overwhelming the model with the entire repository.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Open-Weight AI Through Ollama
&lt;/h3&gt;

&lt;p&gt;LazyCoder uses Ollama as its local inference runtime.&lt;/p&gt;

&lt;p&gt;Compatible models can analyze retrieved code, explain unfamiliar functions, summarize architectural relationships, and help developers investigate potential problems.&lt;/p&gt;

&lt;p&gt;The application can also use deterministic fallback behavior when local inference is unavailable, allowing supported analysis workflows to remain useful without an active model.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Persistent Local Storage
&lt;/h3&gt;

&lt;p&gt;SQLite stores reusable analysis results and cached explanations.&lt;/p&gt;

&lt;p&gt;Caching helps reduce repeated work when revisiting the same project. Repository state and file-content hashes can be used to determine whether cached information remains relevant.&lt;/p&gt;

&lt;p&gt;Together, these components create a workflow in which deterministic analysis establishes the facts, retrieval supplies relevant evidence, and the language model provides contextual interpretation.&lt;/p&gt;




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

&lt;p&gt;For a coding assistant that inspects source code, &lt;strong&gt;open-weight models and local inference are more than a technical preference. They change the privacy, cost, and accessibility of the tool.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🔐 1. Your Code Can Stay on Your Machine
&lt;/h3&gt;

&lt;p&gt;Developers regularly work with proprietary projects, personal experiments, client code, and unreleased products.&lt;/p&gt;

&lt;p&gt;Sending entire repositories to an external AI service may be undesirable or prohibited.&lt;/p&gt;

&lt;p&gt;By using Ollama for local inference, LazyCoder can analyze source code without requiring a remote LLM API.&lt;/p&gt;

&lt;p&gt;The local-first architecture is especially valuable when privacy matters more than access to the largest available model.&lt;/p&gt;

&lt;h3&gt;
  
  
  💸 2. No Per-Token API Bills
&lt;/h3&gt;

&lt;p&gt;Repository exploration can involve repeated scans, file explanations, and dozens of follow-up questions.&lt;/p&gt;

&lt;p&gt;With a locally installed model, inference does not require paying a third-party provider for each token. Users still need to account for their hardware, electricity, and storage costs.&lt;/p&gt;

&lt;p&gt;This makes repeated experimentation more accessible to students, independent developers, and open-source contributors.&lt;/p&gt;

&lt;h3&gt;
  
  
  📴 3. Useful Without an Internet Connection
&lt;/h3&gt;

&lt;p&gt;Once the application, dependencies, and model are installed, its local analysis and inference workflows can operate without an internet connection.&lt;/p&gt;

&lt;p&gt;That means developers can work during a campus Wi-Fi outage, while travelling, or in environments where network access is restricted.&lt;/p&gt;

&lt;p&gt;Initial setup and model downloads may still require connectivity.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔄 4. Freedom to Choose Your Model
&lt;/h3&gt;

&lt;p&gt;Different developers have different hardware constraints.&lt;/p&gt;

&lt;p&gt;A smaller model can be appropriate for a laptop with limited memory, while a larger coding model may provide better results on a more powerful machine.&lt;/p&gt;

&lt;p&gt;Ollama makes it possible to experiment with different compatible open-weight models without redesigning the entire application around a proprietary API.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧩 5. Transparent, Composable Building Blocks
&lt;/h3&gt;

&lt;p&gt;LazyCoder combines open-source components such as Python, Streamlit, scikit-learn, SQLite, and Ollama.&lt;/p&gt;

&lt;p&gt;Developers can inspect the implementation, change the retrieval strategy, replace the model, or extend the scanner to support additional languages and frameworks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open innovation makes a coding assistant more adaptable, more accessible, and easier to keep under the developer's control.&lt;/strong&gt;&lt;/p&gt;




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

&lt;p&gt;I used AI-assisted development to help design and implement LazyCoder's repository-analysis workflows.&lt;/p&gt;

&lt;p&gt;The focus was on building a practical developer tool rather than a generic conversational interface.&lt;/p&gt;

&lt;p&gt;If a DevRelay Agent Session is available, its link can be added here.&lt;/p&gt;




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

&lt;p&gt;Imagine returning to a project you haven't touched in a month.&lt;/p&gt;

&lt;p&gt;Before LazyCoder, you might:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;git status&lt;/code&gt; and &lt;code&gt;git log&lt;/code&gt; to reconstruct your previous work.&lt;/li&gt;
&lt;li&gt;Search the repository for TODO and FIXME comments.&lt;/li&gt;
&lt;li&gt;Open dependency manifests to remember the required packages.&lt;/li&gt;
&lt;li&gt;Trace imports across multiple files to understand how a feature works.&lt;/li&gt;
&lt;li&gt;Read unfamiliar functions before attempting even a small change.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With LazyCoder, you can start with a project overview, inspect unfinished work, review recent changes, ask questions about relevant code, and generate setup guidance from the project's manifests.&lt;/p&gt;

&lt;p&gt;Instead of treating every return to an old repository as a fresh investigation, you have a structured starting point.&lt;/p&gt;

&lt;p&gt;The aim is simple: &lt;strong&gt;spend less time remembering your code and more time improving it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And because LazyCoder uses local retrieval, persistent caching, and an optional local language model, its workflows can be adapted to different projects and hardware configurations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Challenge:&lt;/strong&gt; Hacktoberfest Open-Source AI Challenge — Week 3: Slow and Steady.&lt;/p&gt;

&lt;p&gt;Additional partner prize categories can be listed here if they apply to the final submission.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built for developers who love writing code but don't particularly enjoy rediscovering code they wrote three weeks ago.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>PaperPilot!</title>
      <dc:creator>Mayukh Jyoti Sarkar</dc:creator>
      <pubDate>Wed, 14 Oct 2026 14:00:23 +0000</pubDate>
      <link>https://dev.to/mayukhjyotisarkar/paperpilot-2pkf</link>
      <guid>https://dev.to/mayukhjyotisarkar/paperpilot-2pkf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  I Built PaperPilot: Turning Previous-Year Question Papers into an AI-Powered Revision Plan
&lt;/h1&gt;

&lt;p&gt;As an engineering student, I've learned that preparing for semester exams isn't just about studying the syllabus. It's also about figuring out what to prioritize.&lt;/p&gt;

&lt;p&gt;Previous-year question papers can be incredibly useful, but going through multiple PDFs, finding repeated questions, identifying recurring topics, and organizing everything into a revision plan takes time.&lt;/p&gt;

&lt;p&gt;So I decided to build something to make that process easier.&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;PaperPilot&lt;/strong&gt;, an AI-assisted exam preparation tool that turns previous-year question papers into a structured revision workflow.&lt;/p&gt;

&lt;p&gt;My goal was simple: help students spend less time organizing their study material and more time actually studying.&lt;/p&gt;

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

&lt;p&gt;PaperPilot lets students upload previous-year question papers and helps them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Extract questions from PDFs, including scanned pages when OCR is configured.&lt;/li&gt;
&lt;li&gt;Find exact and similar questions across multiple papers.&lt;/li&gt;
&lt;li&gt;Identify recurring questions and analyze topic frequency.&lt;/li&gt;
&lt;li&gt;Review evidence linked to the original source papers.&lt;/li&gt;
&lt;li&gt;Generate a revision checklist and export useful results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of asking a generic AI chatbot to predict what might appear in an exam, PaperPilot focuses on evidence from the papers students already have.&lt;/p&gt;

&lt;p&gt;It doesn't promise to predict future question papers. It helps students make more informed revision decisions using historical question patterns.&lt;/p&gt;

&lt;p&gt;I built it primarily for engineering students, but the same idea could be useful for tutors, coaching centres, and students preparing for other examinations.&lt;/p&gt;

&lt;h3&gt;
  
  
  The side-hustle opportunity
&lt;/h3&gt;

&lt;p&gt;Imagine a student with five years of question papers and only a few days left before an exam. PaperPilot helps turn that collection into something easier to navigate and revise.&lt;/p&gt;

&lt;p&gt;A possible business model would be a free basic version with optional paid features for larger paper collections, advanced analytics, or additional revision tools.&lt;/p&gt;

&lt;p&gt;That opportunity still needs validation. I haven't established that students are willing to pay, and finding out whether the tool genuinely saves them time is the next important step.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Try PaperPilot:&lt;/strong&gt; &lt;a href="https://mayukhjyotisarkar-hacktoberfest-week2app-bn7o6x.streamlit.app/" rel="noopener noreferrer"&gt;https://mayukhjyotisarkar-hacktoberfest-week2app-bn7o6x.streamlit.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The intended workflow is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Upload your papers.&lt;/li&gt;
&lt;li&gt;Find recurring and similar questions.&lt;/li&gt;
&lt;li&gt;Explore topic frequencies and source evidence.&lt;/li&gt;
&lt;li&gt;Build your revision plan.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The hosted demo depends on the capabilities and dependencies available in its deployment environment. The local application supports optional Ollama-based AI inference and OCR when the required software is installed.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK2" rel="noopener noreferrer"&gt;https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PaperPilot is built with Python and Streamlit, with separate components for document extraction, question processing, similarity analysis, data storage, and optional AI features.&lt;/p&gt;

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

&lt;p&gt;I wanted to understand how the different pieces of an AI application work together instead of building just another interface around a remote AI API.&lt;/p&gt;

&lt;p&gt;The first important decision was to keep the core question-analysis pipeline deterministic.&lt;/p&gt;

&lt;p&gt;PaperPilot extracts text from PDFs, normalizes question text, uses TF-IDF and cosine similarity to compare questions, groups similar questions, and analyzes their recurrence across papers. SQLite stores the question-bank data, while Streamlit provides the user interface.&lt;/p&gt;

&lt;p&gt;For the open-weight AI component, I integrated &lt;strong&gt;Qwen2.5-Coder 1.5B through Ollama&lt;/strong&gt; to support optional features such as topic labeling for existing question groups and revision-note generation.&lt;/p&gt;

&lt;p&gt;The AI doesn't replace the underlying question-matching system. Instead, it adds another layer to the workflow. Keeping these responsibilities separate means the core analysis doesn't depend on an AI response for every operation.&lt;/p&gt;

&lt;p&gt;I also added OCR support for scanned PDFs. The application attempts ordinary text extraction first and can use OCR on pages that don't yield enough text. This introduced another practical challenge: Python dependencies alone aren't enough when an application also relies on external software such as Tesseract.&lt;/p&gt;

&lt;p&gt;Along the way, I worked on the interface, local storage, setup scripts, dependency documentation, and automated tests.&lt;/p&gt;

&lt;p&gt;One of my biggest takeaways was that building an AI application isn't just about choosing a model. The surrounding engineering — handling messy documents, validating outputs, managing dependencies, and explaining errors — is what makes the model useful to someone.&lt;/p&gt;

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

&lt;p&gt;For PaperPilot, open innovation means having more control over how AI is used, where it runs, and how the application can evolve.&lt;/p&gt;

&lt;p&gt;A hosted AI API can be convenient, but repeated requests can introduce ongoing costs and a dependency on a provider's pricing, availability, and service policies.&lt;/p&gt;

&lt;p&gt;Using an open-weight model through Ollama gives PaperPilot another option: run supported AI features locally instead of sending every request to a hosted model.&lt;/p&gt;

&lt;p&gt;That matters in a few ways.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;More control over recurring costs&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once the model is downloaded, local inference doesn't require a separate hosted-model API payment for every request. Hardware, electricity, and setup still have costs, but the economics can be more predictable for a small student-focused tool.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A more private local workflow&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When students run PaperPilot locally and process their documents locally, their papers don't need to be sent to a third-party AI API for its local AI features. For students working with personal notes or institutions handling sensitive documents, that distinction can matter.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Freedom to experiment&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I can evaluate alternative models, adjust prompts, and change how AI-generated labels and notes work without tying the entire application to one hosted provider.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Independence from a single AI service&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The core similarity and recurrence analysis works separately from the language model. That reduces the extent to which the primary workflow depends on an external AI service being available.&lt;/p&gt;

&lt;p&gt;Open-weight models aren't automatically better at every task. They have hardware requirements, setup complexity, and their own quality limitations. Model licences also matter, and the permissions associated with a particular model should be checked before redistributing or commercially using it.&lt;/p&gt;

&lt;p&gt;There's another important distinction: the public Streamlit demo runs in a remote hosting environment. Its privacy and offline characteristics aren't the same as running the application entirely on your own computer.&lt;/p&gt;

&lt;p&gt;For me, the value of open innovation isn't simply that a model is available to download. It's that I can make deliberate choices about cost, privacy, deployment, and model behavior while building a tool for a specific problem.&lt;/p&gt;

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

&lt;p&gt;PaperPilot taught me that a useful AI product doesn't need to put a language model at the centre of every operation.&lt;/p&gt;

&lt;p&gt;Sometimes, traditional text-processing techniques are better suited to the core task. Sometimes, a language model adds value on top. Knowing where to use each approach is part of the engineering.&lt;/p&gt;

&lt;p&gt;I also learned that supporting real documents is messy. PDFs can contain unusual layouts, scanned pages, broken text extraction, and inconsistent question formatting. A feature that works on a clean sample isn't automatically ready for every student's material.&lt;/p&gt;

&lt;p&gt;And passing tests is only one milestone. A tool can be technically functional without necessarily being useful enough for someone to adopt or pay for.&lt;/p&gt;

&lt;p&gt;What's Next?&lt;/p&gt;

&lt;p&gt;The next milestone for PaperPilot is real-world validation.&lt;/p&gt;

&lt;p&gt;I want to see how it performs on different university question papers, whether students find the recurring-question analysis useful, and what they would change after using it.&lt;/p&gt;

&lt;p&gt;From there, I can prioritize improvements based on actual needs rather than adding features just because AI makes them possible.&lt;/p&gt;

&lt;p&gt;PaperPilot started as a way to solve a problem I understood personally. Building it has also been an opportunity to explore open-weight AI, local inference, document processing, and the engineering required to turn an idea into a usable application.&lt;/p&gt;

&lt;p&gt;The goal now is simple: make it genuinely useful to the students it was built for.&lt;/p&gt;

&lt;p&gt;Built for students. Powered by Python, traditional text analysis, and optional local open-weight AI.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Raid Outside!</title>
      <dc:creator>Mayukh Jyoti Sarkar</dc:creator>
      <pubDate>Sun, 11 Oct 2026 12:13:06 +0000</pubDate>
      <link>https://dev.to/mayukhjyotisarkar/raid-outside-58ol</link>
      <guid>https://dev.to/mayukhjyotisarkar/raid-outside-58ol</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Raid Outside&lt;/strong&gt; turns a short break into a co-op, tabletop-RPG-style outdoor quest. Pick a vibe, set how much time you have, enter a nearby public place, and get a mission with a story hook, clue, objective, ending, and collectible badge.&lt;/p&gt;

&lt;p&gt;It’s for people who spend too much of the day at a desk and want a more fun reason to meet friends and go outside than another reminder to take a walk. The app is designed to make the screen a quick briefing before the real adventure.&lt;/p&gt;

&lt;p&gt;The prototype has a complete solo flow from creating a raid through completing it. Party codes and joining are currently demo interactions; there isn’t a server syncing players across devices yet.&lt;/p&gt;

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

&lt;p&gt;No hosted demo yet. You can run the prototype locally using the instructions in the &lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/blob/main/WEEK1/README.md" rel="noopener noreferrer"&gt;README&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest/tree/main/WEEK1" rel="noopener noreferrer"&gt;Raid Outside source code&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Raid Outside is built with React, TypeScript, Vite, and Tailwind CSS. For mission generation, it connects to a configurable OpenAI-compatible endpoint intended for a locally hosted open-weight model, such as one served by Ollama. The model receives the selected vibe, time, effort, and place context, then returns structured JSON for the mission. The app checks that the required fields are present and falls back to hand-written missions if the model is unavailable or its response is invalid.&lt;/p&gt;

&lt;p&gt;The prototype also uses OpenStreetMap’s Nominatim service to look up the place name entered by the player. That lookup can return a broad mapped place classification; it does not verify individual features on site. The app doesn’t request GPS. Settings, completed raids, and badges are stored in browser local storage.&lt;/p&gt;

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

&lt;p&gt;The open-model approach lets the person running the app choose and change the model, adjust the mission prompt, and run inference locally instead of sending mission details to a closed AI provider. That matters for a location-based activity: if the model endpoint is local, the place context used to generate a quest stays on the player’s device.&lt;/p&gt;

&lt;p&gt;This isn’t fully offline today: the local model must be installed and running, and place-name lookup uses Nominatim over the internet. If AI generation is unavailable, the app can still create a raid using its hand-written fallback missions.&lt;/p&gt;

&lt;p&gt;I haven’t benchmarked it against a closed model. The advantage I’m aiming for is control: being able to swap models and shape the mission behavior without tying the app to one hosted AI provider.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Delicious Eats: a food-delivery concept built for a friend</title>
      <dc:creator>Mayukh Jyoti Sarkar</dc:creator>
      <pubDate>Sun, 04 Oct 2026 14:16:42 +0000</pubDate>
      <link>https://dev.to/mayukhjyotisarkar/delicious-eats-a-food-delivery-concept-built-for-a-friend-d9g</link>
      <guid>https://dev.to/mayukhjyotisarkar/delicious-eats-a-food-delivery-concept-built-for-a-friend-d9g</guid>
      <description>&lt;h1&gt;
  
  
  Delicious Eats: a food-delivery concept built for a friend
&lt;/h1&gt;

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

&lt;p&gt;I built &lt;strong&gt;Delicious Eats&lt;/strong&gt;, a food-delivery website concept for a friend who loves finding good food without the hassle. It brings a few restaurant options together with ratings, estimated delivery times, and a clear way to start browsing.&lt;/p&gt;

&lt;p&gt;It’s currently a front-end prototype. The restaurant listings and ordering flow show the concept; search, ordering, and live delivery tracking aren’t connected yet.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://hacktoberfest-zeta.vercel.app/" rel="noopener noreferrer"&gt;Try the live demo&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/mayukhjyotisarkar/Hacktoberfest.git" rel="noopener noreferrer"&gt;View the project on GitHub&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;I built the site with HTML and CSS, and used &lt;strong&gt;Gemma 4&lt;/strong&gt; as the open-weight AI model during development. The page includes featured restaurant cards, food imagery, a search bar, a call to action, and a “How It Works” section. The layout adapts to smaller screens.&lt;/p&gt;

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

&lt;p&gt;Open innovation makes it possible to experiment with capable AI models and adapt them to a specific project without relying entirely on a closed API. Using Gemma 4 helped me explore how open models can support building a practical, friend-focused web experience.&lt;/p&gt;

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