I built CodeArchy: an open-source that turns any codebase into a visual, explainable architectural experience, powered by Gemma 4. CodeArchy is an open-source tool that uses an AST engine (Tree-sitter) to parse codebases and build a typed dependency graph, which is then analyzed by the Gemma 4 model. The model acts as a senior architect, grouping low-level modules into named subsystems (like "Auth Layer" or "API Gateway") and generating an interactive, visual diagram of the architecture. The entire system runs locally and offline, allowing developers to ask questions about subsystems and receive narrated walkthroughs without any code leaving their machine. This is a submission for the Gemma 4 Challenge: Build with Gemma 4 What I Built In this age of Agentic coding, most developers spend more than half their time reading code rather than writing it. For legacy systems, that number is even worse. When you inherit a 100,000-line monolith, clone an unfamiliar open-source project, or receive a repository full of AI-generated code from an agent that has long since stopped caring about your team's conventions, the question is always the same: where do I even start? CodeArchy answers that question in seconds. It parses your project using a battle-tested AST engine Tree-sitter , builds a complete typed dependency graph, and feeds that structured graph to Gemma 4 . The model doesn't describe your files — it thinks like a senior architect , grouping low-level modules into named, purposeful subsystems such as "Auth Layer", "Data Access", or "API Gateway", then draws the data flows between them. The result is the whiteboard diagram a principal engineer would sketch on day one, generated in under a minute, entirely offline. That diagram is interactive. You can ask questions about any subsystem. Gemma 4 answers with architectural context maintained across every turn of the conversation. Every response can be read aloud by a built-in neural TTS engine Kokoro, also fully offline . And after each answer, Gemma 4 generates a narrated walkthrough — a story player — that animates through the diagram node by node while speaking the explanation aloud, so you don't just read about the architecture, you watch it unfold. The entire system runs locally. No code ever leaves your machine. No API keys. No cloud costs. All inference targets http://localhost:11434 Demo Code How I Used Gemma 4 Gemma 4 is the engine that makes CodeArchy genuinely useful. It powers four 4 distinct capabilities , each one addressing a different point in the developer journey from "I have no idea what this codebase does" to "I confidently understand it and can extend it safely." 1. Architectural Abstraction — From File Graph to Whiteboard Diagram The hardest part of understanding any codebase is knowing which details to ignore . A 300-file repository has tens of thousands of import relationships. If you visualise all of them, you get an incomprehensible hairball. What you actually want is the architect's view: five to twelve named subsystems and the meaningful flows between them. This is exactly the task given to Gemma 4. The pipeline starts with Tree-sitter parsing every file into an AST, extracting symbols, imports, and exports: // src/parser/IncrementalParser.ts async parseFile uri: vscode.Uri : Promise