{"slug": "last-commit", "title": "LAST COMMIT", "summary": "A developer built LAST COMMIT, an open-source tool that uses Python, GitPython, and a locally run open-weight model via Ollama to investigate Git history and answer questions about why code changed. The system retrieves relevant commits and code changes and cites the evidence behind its conclusions, acknowledging when the repository lacks enough information rather than fabricating answers. A React and Tailwind CSS frontend presents the investigations, and running the model locally keeps private repository history off hosted LLM APIs.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine](https://dev.to/challenges/hacktoberfest-week4-2026-10-26)*\n\nEvery codebase has a story, but not every developer remembers how it began.\n\n**LAST COMMIT** is an AI-powered codebase investigator that digs through Git history, commit messages, and code changes to help developers understand why their projects evolved the way they did.\n\nEver wondered why a function was rewritten, when a bug first appeared, or what happened to an abandoned feature? LAST COMMIT helps you investigate those questions using actual repository evidence.\n\nThink of it as digital archaeology, bringing forgotten parts of software history back to life.\n\nI'm building LAST COMMIT with Python and GitPython to analyze repository history, and Ollama to run an open-weight AI model locally.\n\nThe AI retrieves relevant commits and code changes to answer questions, with references to the evidence behind its conclusions. If the repository doesn't provide enough information, it should acknowledge that instead of making things up.\n\nThe frontend uses React and Tailwind CSS to present investigations and their supporting evidence.\n\nCodebases can contain sensitive information, and I don't want developers to upload their entire project history just to understand it.\n\nRunning AI locally makes private repository analysis possible without relying on a hosted LLM API. Open-weight models also let me experiment with different models without locking the project into a single provider.\n\nThe AI isn't the source of truth; the code and commit history are. Its job is to connect the dots.\n\nOld repositories are full of forgotten decisions, abandoned ideas, and mysterious fixes.\n\nEvery commit leaves a clue about someone who worked on that project. Sometimes the reason is documented; sometimes it's lost.\n\nLAST COMMIT is about bringing those stories back to the surface.\n\nMaybe the ghost in the machine is simply the memory of every developer who came before us.", "url": "https://wpnews.pro/news/last-commit", "canonical_source": "https://dev.to/tanmaygahlott/last-commit-1jmc", "published_at": "2026-10-27 04:34:26+00:00", "updated_at": "2026-10-27 04:42:49.361977+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "artificial-intelligence"], "entities": ["LAST COMMIT", "GitPython", "Ollama", "React", "Tailwind CSS", "Hacktoberfest"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/last-commit", "markdown": "https://wpnews.pro/news/last-commit.md", "text": "https://wpnews.pro/news/last-commit.txt", "jsonld": "https://wpnews.pro/news/last-commit.jsonld"}}