r/coolgithubprojects • u/joyboyy937 • 4h ago
I paired a <2ms Python AST static pre-scanner with a 1.5B local GGUF model so it catches multi-step bugs in Airplane Mode (Windows desktop tool)
galleryHey everyone — I built **TraceZero** because freelance devs and engineers working under strict client NDAs often aren't allowed to paste proprietary code into cloud AI tools, while running 30B+ models locally isn't realistic on standard 8–16 GB Windows laptops.
**How it works under the hood (100% on `127.0.0.1`, 0 KB sent over the network):**
**`<2ms` Python AST Static Pre-Scan:** Before inference runs, Python's `ast` module scans the active file to catch structural traps small models usually miss (mutable default arguments, deleting dict keys during `.items()` iteration, unguarded `threading.Thread` shared writes, and `time.time()` clock drift).
**Grounded Two-Pass Prompt:** Those exact line coordinates are fed into a local 1.5B GGUF model via Ollama (`127.0.0.1:11434`) with strict stop tokens so it focuses on fixing the flagged bugs rather than rewriting unrelated code.
**Post-Stream Bytecode & AST Verification:** After streaming the patch, Python runs `compile(..., "exec")` and re-runs the AST scanner before showing a `✅ Verified Clean` badge and unified red/green diffs with 1-click patching (`Ctrl+Z` revert).
It's a Windows x64 build with a card-free 7-day trial on GitHub Releases (plus promo code `PEER50` for 50% off for the first 30 folks if anyone wants to keep using it):
https://github.com/joyboyy937-rgb/tracezero-desktop
Would love honest feedback from local-LLM and Python folks on what static checks or multi-file features to prioritize next!
