<?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: Ashwin</title>
    <description>The latest articles on DEV Community by Ashwin (@ashwiin).</description>
    <link>https://dev.to/ashwiin</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%2F3371570%2Fcf4938c8-ace5-441a-9b06-81d87dff2267.png</url>
      <title>DEV Community: Ashwin</title>
      <link>https://dev.to/ashwiin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ashwiin"/>
    <language>en</language>
    <item>
      <title>The Last Commit: An AI Archaeologist That Exhumes Your Dead Repos</title>
      <dc:creator>Ashwin</dc:creator>
      <pubDate>Sat, 31 Oct 2026 16:59:35 +0000</pubDate>
      <link>https://dev.to/ashwiin/the-last-commit-an-ai-archaeologist-that-exhumes-your-dead-repos-21p2</link>
      <guid>https://dev.to/ashwiin/the-last-commit-an-ai-archaeologist-that-exhumes-your-dead-repos-21p2</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;Every abandoned repository is a ghost story. The author moved on, the issues&lt;br&gt;
went quiet, the README promised features that never shipped — and somewhere in&lt;br&gt;
the commit history, the exact moment the project died is still recorded. The&lt;br&gt;
challenge theme said &lt;em&gt;Ghost in the Machine&lt;/em&gt;, and to me the reading was literal:&lt;br&gt;
&lt;strong&gt;the machine is the git history, and the ghost is the maintainer's memory,&lt;br&gt;
reconstructable from it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;The Last Commit&lt;/strong&gt; — an AI archaeologist for abandoned&lt;br&gt;
repositories. You give it a GitHub link to something dead, and it does two&lt;br&gt;
things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, it performs an autopsy.&lt;/strong&gt; A deterministic forensic engine reads the&lt;br&gt;
full commit graph, the final source tree through tree-sitter, and the&lt;br&gt;
documentation, and produces a report: a &lt;em&gt;Timeline of Decline&lt;/em&gt; (who stopped&lt;br&gt;
committing, and when), &lt;em&gt;The Autopsy&lt;/em&gt; (stub functions, TODO clusters, branches&lt;br&gt;
with stranded work), &lt;em&gt;Anomalies &amp;amp; Suspicious Regressions&lt;/em&gt; (reverted commits&lt;br&gt;
paired with what they undid, disabled tests, high-churn files that fell silent),&lt;br&gt;
&lt;em&gt;Decisions Nobody Wrote Down&lt;/em&gt; (large refactors with no documentation traffic),&lt;br&gt;
and a &lt;em&gt;Revival Roadmap&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second — the part the theme is really about — you interrogate the ghost.&lt;/strong&gt;&lt;br&gt;
Under every report there's a séance panel where you chat with the former&lt;br&gt;
maintainer, in character, first person, with a fallible human memory: &lt;em&gt;"honestly,&lt;br&gt;
I don't remember… but the log shows we reverted the cache layer because it&lt;br&gt;
doubled latency."&lt;/em&gt; The persona pulls real evidence live — commits with diffs,&lt;br&gt;
file revisions, branch states — and every single answer ends with a&lt;br&gt;
&lt;strong&gt;Receipts&lt;/strong&gt; block. If the record is silent, the ghost says so instead of&lt;br&gt;
inventing something.&lt;/p&gt;

&lt;p&gt;The design rule that makes this trustworthy: &lt;strong&gt;deterministic first, LLM&lt;br&gt;
second.&lt;/strong&gt; Every fact in the report is computed by code. The open-weight model&lt;br&gt;
writes the story, but it may only cite finding IDs, and a machine verifier&lt;br&gt;
strips any commit hash or reference it can't match against real evidence.&lt;br&gt;
Claims that fail verification are removed, not trusted.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;The app is deployed and live (no sign-in — rate limits are 5 exhumations and&lt;br&gt;
20 whispers per visitor per day):&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;&lt;a href="https://lastcommit-app.azurewebsites.net" rel="noopener noreferrer"&gt;https://lastcommit-app.azurewebsites.net&lt;/a&gt;&lt;/strong&gt;&lt;/p&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%2Fn38ch3m7n5zodkypi4f7.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%2Fn38ch3m7n5zodkypi4f7.png" alt="The Last Commit — web app" width="800" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Paste a dead repo's GitHub link, watch the exhumation ("Reading the bones…"),&lt;br&gt;
read the report, scroll down to &lt;em&gt;Summon the Maintainer&lt;/em&gt;, and ask it why the&lt;br&gt;
project died. There's also a full CLI (&lt;code&gt;lastcommit analyze&lt;/code&gt; / &lt;code&gt;lastcommit&lt;br&gt;
interview&lt;/code&gt;) for local repos, private ones included.&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/ashxris" rel="noopener noreferrer"&gt;
        ashxris
      &lt;/a&gt; / &lt;a href="https://github.com/ashxris/the-last-commit" rel="noopener noreferrer"&gt;
        the-last-commit
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      An AI archaeologist for abandoned open-source repositories.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;The Last Commit&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;An AI archaeologist for abandoned open-source repositories.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Give it a dead repo. It excavates the git history, the final source tree, and the
documentation; reconstructs what the original developers were trying to build; and
produces a &lt;strong&gt;forensic report&lt;/strong&gt; — unfinished features, suspicious regressions
undocumented design decisions — plus a ranked roadmap for reviving the project.&lt;/p&gt;
&lt;p&gt;Then it does the part you actually came for: &lt;strong&gt;you interrogate the repository as if
interviewing its former maintainer.&lt;/strong&gt; The persona answers in first person with a
fallible human memory, but every claim is grounded in real commits, files, and
branches pulled live from the history — and every answer ends with a receipts block.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/ashxris/the-last-commit/docs/preview.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fashxris%2Fthe-last-commit%2FHEAD%2Fdocs%2Fpreview.png" alt="The Last Commit — web app: paste a GitHub repo link and exhume its report"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Install&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Get the code, then install — this creates a private environment with every
dependency the project needs, including the &lt;code&gt;lastcommit&lt;/code&gt; command:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;git clone https://github.com/ashxris/the-last-commit.git
&lt;span class="pl-c1"&gt;cd&lt;/span&gt; the-last-commit
uv sync          &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; or: pip install -e .&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;No git…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ashxris/the-last-commit" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The architecture, in one picture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;repo ──▶ ingest ──▶ forensic detectors ──▶ findings (typed evidence)
             │            │                      │
             │            └─ pygit2 · tree-sitter · doc parsing
             ▼                                   ▼
       chunk index (SQLite + FTS5 + local vectors) ──▶ verified report
             │
             ▼
    interview: maintainer persona + agentic git tools (show_commit,
    blame, file_at_rev, search, timeline) + receipts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python, pygit2 for full-history walks, tree-sitter for AST-level code&lt;br&gt;
understanding, SQLite FTS5 + local embeddings for hybrid retrieval, and an&lt;br&gt;
OpenAI-compatible client for the model layer.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;The open-source AI core.&lt;/strong&gt; The persona runs on &lt;strong&gt;Qwen, an open-weight&lt;br&gt;
model&lt;/strong&gt; (&lt;code&gt;qwen/qwen3.8-27b&lt;/code&gt; served through Groq's OpenAI-compatible endpoint —&lt;br&gt;
one config line swaps in a locally hosted model via vLLM, Ollama, or&lt;br&gt;
llama.cpp). Embeddings for the retrieval index are &lt;strong&gt;fully local&lt;/strong&gt;: fastembed&lt;br&gt;
running BGE-small on CPU via ONNX — no embedding API, no cloud, no data&lt;br&gt;
leaving the machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deterministic forensics.&lt;/strong&gt; The detectors never call a model. Revert&lt;br&gt;
detection pairs a revert commit with the change it undid by inverting diff&lt;br&gt;
statistics. Author dropout order comes from per-author commit cadence. Stub&lt;br&gt;
detection reads the AST: &lt;code&gt;raise NotImplementedError&lt;/code&gt; bodies, &lt;code&gt;...&lt;/code&gt;, docstring-&lt;br&gt;
only functions, and symbols with zero remaining call sites. Test-disabling&lt;br&gt;
commits, CHANGELOG promises that never shipped, undocumented refactors — all&lt;br&gt;
pure code, all with typed evidence attached.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Constrained generation with machine verification.&lt;/strong&gt; The LLM sees the&lt;br&gt;
findings as facts and writes narrative, but it may only reference finding IDs;&lt;br&gt;
a verifier then re-checks every cited ID and every commit hash in the prose&lt;br&gt;
against the evidence set and strips what doesn't match. The interview works&lt;br&gt;
the same way: an agentic loop with five real git tools, a persona prompt that&lt;br&gt;
requires receipts, and "the record doesn't show that" as the mandated answer&lt;br&gt;
when evidence runs out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The build itself was agentic too.&lt;/strong&gt; The entire project — detectors, retrieval&lt;br&gt;
index, verifier, spooky crimson web UI, and the Azure infrastructure — was&lt;br&gt;
built in an agent session on ZCode running &lt;strong&gt;GLM, an open-weight model&lt;/strong&gt;, over&lt;br&gt;
about a day of iterating.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deployment.&lt;/strong&gt; Azure App Service (B1, Always On) via the Azure Developer CLI&lt;br&gt;
and Bicep, with GitHub Actions deploying on every push using OIDC federated&lt;br&gt;
credentials — no cloud secrets stored anywhere.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Because the whole product is a claim about trust, and open weights are what&lt;br&gt;
make the claim auditable.&lt;/strong&gt; The app tells you "this ghost only says what the&lt;br&gt;
record supports." That's only meaningful if you can inspect everything the&lt;br&gt;
ghost can see: the deterministic detectors, the exact system prompts, the&lt;br&gt;
verifier's rules. With a closed API, "trust me" would be the actual architecture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Swappability made the project survive its own deployment.&lt;/strong&gt; The model layer&lt;br&gt;
is one config file. When the first hosted model hit a token-per-minute wall,&lt;br&gt;
the failure taught us to slim the prompts and pace requests — and the same code&lt;br&gt;
ran unchanged on a different model and host. If a vendor changes pricing or&lt;br&gt;
disappears, the ghost moves; the séance stays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Local inference matters for the private case.&lt;/strong&gt; The CLI works on your own&lt;br&gt;
repos, and the embedding model runs on your CPU. Nothing about the core needs&lt;br&gt;
a vendor at all — point &lt;code&gt;base_url&lt;/code&gt; at your own vLLM box and the whole thing is&lt;br&gt;
offline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And it's a reusable pattern.&lt;/strong&gt; Deterministic evidence → constrained&lt;br&gt;
generation → machine-verified citations is the part I most wanted to give&lt;br&gt;
away. It's MIT-licensed, pinned with a lockfile, and commented so the next&lt;br&gt;
person building an "AI that must not hallucinate" can start from the spine,&lt;br&gt;
not from scratch.&lt;/p&gt;

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

&lt;p&gt;The project was built end-to-end in one agentic session on ZCode, powered by&lt;br&gt;
GLM (open-weight): architecture, all 25+ source files, the Bicep&lt;br&gt;
infrastructure, the GitHub Actions pipeline, and the debugging along the way&lt;br&gt;
(including Azure for Students blocking ACR remote builds — the build moved to&lt;br&gt;
Actions runners, and the Bicep was fixed to match).&lt;/p&gt;

&lt;p&gt;🔗 Session: &lt;a href="https://zcode.z.ai/share/a6l1cJwHUcOQhGkyvmTYDWtBstMISbvh" rel="noopener noreferrer"&gt;https://zcode.z.ai/share/a6l1cJwHUcOQhGkyvmTYDWtBstMISbvh&lt;/a&gt;&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Copilot&lt;/strong&gt; — the project's delivery is GitHub Actions automation:
an OIDC-federated pipeline (no stored cloud secrets) that provisions Azure
infrastructure with Bicep, builds the container, and rolls it out to App
Service on every push to &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

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