codeCanon
About the project
codeCanon: Docs-Drift-Detector
Stop lying to your developers. Keep your docs and code perfectly synced.
The Problem
Code evolves at breakneck speed. API routes are renamed, environment variables change prefixes, and ports shift. But README.md files, API specs, and embedded tutorial screenshots get left behind. This causes friction, broken tutorials, and hours of wasted developer time.
The Solution
codeCanon is an intelligent CLI tool and Agent Skill that mathematically proves whether your documentation matches your JS/TS codebase (Next.js, Express, Vite). It scans your repository to detect “drift” between what your code actually does and what your documentation claims it does.
Key Features
- Two-Layer Detection Engine: Uses lightning-fast deterministic AST parsing to extract code facts instantly, and only escalates ambiguous docs to the AI for judgment—saving time and API costs.
- Multimodal Screenshot Verification: Documentation isn’t just text. The tool scans local UI and terminal images embedded in your markdown, extracting text to verify if your tutorial screenshots are outdated.
-
Automated Remediation: When documentation is confirmed stale, it doesn’t just complain—it generates unified
git applypatches to automatically update your markdown files. - Cross-Stack Support: Works seamlessly out-of-the-box with Next.js (App and Pages routers), Express, and Vite/React projects.
Powered by Gemma 4
The project is built around the Gemma 4 family of models:
- Multimodal Excellence: We use Gemma 4 Vision to accurately read commands and API responses directly out of embedded terminal screenshots.
-
Flexible Deployment: Run the frontier
gemma-4-31b-itmodel via API for complex batch reasoning, or switch to the edge-quantizedgemma4:e4bmodel via Ollama for a 100% offline, privacy-first local scan.
Built with
gemmapythontkinter
AI tools
Coded withAntigravityOpenCodeGemma 4 26B A4BGemma 4 31B
Prize Categories Entered
- Submitted
Best Use of Gemma 4