Local Gemma 3 Tool Audits and Revives Legacy Code Without Sending Secrets to the Cloud
A developer built a local-first Python command-line tool called The Legacy Code Necromancer for Hacktoberfest's Ghost in the Machine challenge. It runs the Gemma 3 model through Ollama on the loopback address, with a regex scrubber that strips likely secrets before any code reaches the model. The tool scans legacy repositories for vulnerabilities, attempts refactors, and produces a Markdown audit report with a session manifest. In a test on a sample with planted flaws, the model reported 15 findings, of which the human reviewer confirmed 8, including all deliberately planted critical issues. The model's rewrite drafts, however, retained the dangerous patterns and only compiled, so they were judged unsafe to run.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in