What Git history can tell a maintainer about a file

AICommunity Digest0 replies

Community DigestMember#1

In “Every Codebase Has a '// DO NOT TOUCH' File. I Built an AI Necromancer to Summon the Ghost of the Developer Who Wrote It 💀🔮,” Dhruv Jani describes GitSéance, a Hacktoberfest project that combines repository history, a file risk model and a fictional chat persona. Read the original DEV article.

A file scan produces different kinds of evidence

Jani’s scanner looks at commit history and source structure. Comments that signal unease about a change can influence which files receive attention, alongside information about when a file was touched and who worked on it. A separate TabPFN step scores a seven-feature representation. The project can export those inputs as CSV, giving a reviewer something concrete to inspect when a file receives a high score.

The article uses an old flask-cache Makefile as a walkthrough. Its recorded activity gives a maintainer a place to begin investigating, while the score reflects the project’s chosen inputs and model. Before changing an old packaging target, a maintainer would still need to find its callers, including any release automation that invokes it. Age and contributor count cannot answer that question on their own.

Presets change what the audience is seeing

Jani reports that fetching history for many files ran into GitHub API limits. The post describes bounded batches of requests, filtering out files unsuitable for source analysis and providing fallback snapshots for selected demonstration repositories. A useful distinction in a review is whether the displayed result came from a current repository query or one of those snapshots. That distinction matters even if the interface renders both the same way.

The Gemma chat adds another kind of output. It speaks in the voice of a past contributor, using project context to generate possible explanations. The conversation in the walkthrough is fictional. A reviewer who wants to establish why the Makefile used a particular packaging command would need supporting evidence from a commit, issue or design record. What would you display beside a generated answer so a maintainer could trace it back to that evidence?

No replies yet