Inspiration
Every developer knows the frustration of returning to a codebase after five days away—spending hours reconstructing why an architectural decision was made, which files were half-finished, and what broke last. Generic AI code chatbots don't remember your project history, and sending proprietary code context to the cloud for every quick question creates unnecessary latency and privacy exposure.
We built CommitMind (Your Codebase Remembers. Your AI Understands.) for #BuildHybridAI 2026 to give every repository persistent technical memory powered by on-device + cloud hybrid AI.
What it does
CommitMind connects to your GitHub repositories and creates a continuous intelligence loop:
- Real GitHub Repository & AST Analysis: Scans repository trees, detects languages and frameworks, parses dependency manifests (
package.json,pom.xml,requirements.txt,go.mod,Cargo.toml), and inspects classes, methods, endpoints, and TODOs. - Persistent Development Memory: Captures, tags, and recalls technical decisions, bug fixes, and architectural insights across sessions.
- Resume Development ("Returning After 5 Days"): One-click context restoration reconstructs your previous session summary, changed files, blockers, and unfinished tasks—and triggers Ask AI: Plan Next Sprint.
- Hybrid AI Inference (On-Device + Cloud): Uses the official Firebase AI Logic Web Hybrid Inference SDK (
InferenceMode.PREFER_ON_DEVICE) to run inference locally via Chrome Built-in AI (Prompt API) when available—eliminating cloud round trips and keeping code private—while automatically falling back to Cloud Gemini (gemini-3.8-flash) when on-device inference is unavailable. Every response reports its verifiedresult.response.inferenceSourcehonestly. - Development Time Machine: Reconstructs project history chronologically across commits, analyses, sessions, and captured decisions.
How we built it
- Frontend: Next.js 14, React 18, TypeScript, deployed on Vercel.
- Hybrid AI:
firebase/ai(getAI,getGenerativeModel,GoogleAIBackend,InferenceMode.PREFER_ON_DEVICE) integrated with Firebase Remote Config (inference_modeandprompt_template) and Firebase App Check (ReCaptchaEnterpriseProvider+ debug token exchange in development). - Backend: Java 21 + Spring Boot 3 modular backend (Dockerized on Render), handling GitHub REST API integration, JavaParser / multi-language AST inspection, session handoffs, and structured AI context grounding.
- Auth & Persistence: Firebase Authentication (Email/Password + Google Sign-In) and Cloud Firestore (with a disk-backed local persistence fallback for offline/local development).
Challenges we ran into
- Official Hybrid SDK Alignment: Migrating away from manual
window.aidetection to Firebase AI Logic's nativeInferenceMode.PREFER_ON_DEVICEandinCloudParamsconfiguration, and updating togemini-3.8-flashwhen earlier cloud model versions were retired. - Chrome On-Device Flag & Model Readiness: Navigating Chrome's evolving Built-in AI flags (
#prompt-api,#gemma4-for-built-in-ai) and triggeringLanguageModel.create()model downloads while ensuring seamless automatic Cloud Gemini fallback in non-capable browsers. - Grounding Single-Turn Prompts: Structuring AST observations, dependency manifests, active sessions, and ranked memories into concise single-turn prompts suited for on-device execution.
- App Check Enforcement & Local Dev: Configuring
ReCaptchaEnterpriseProviderwith Firebase's official debug-token exchange before any Firebase AI Logic or Remote Config requests fire.
Accomplishments that we're proud of
- Verified all three hybrid paths live: On-Device (
ON_DEVICE_GEMINI_NANO), Cloud (gemini-3.8-flash), and Automatic Fallback, with zero simulated indicators. - End-to-end Firebase App Check protection across both client Firebase SDK calls and Spring Boot telemetry endpoints.
- Complete full-stack deployment across Vercel (frontend), Render (Dockerized Spring Boot backend), and UptimeRobot.
What's next for CommitMind
- Multi-platform native clients (Android with Gemini Nano and iOS with Apple Foundation Models).
- GitHub webhook integration for automatic memory extraction from merged PRs and commit diffs.