VibeMeter is a VS Code extension that tracks a developer's coding "flow state" in real-time using a live "Vibe Score." The score considers typing speed, saves, errors, and idle time, influencing six flow levels from "Dead Inside" to "GOD MODE." The extension features an achievement system with unlockable achievements that trigger mid-session notifications. An AI Vibe Coach, powered by Google Gemini, analyzes session stats and code context to deliver personalized coaching. The core idea is to measure flow state rather than just output, rewarding momentum and penalizing stagnation. Gemini provides code-specific feedback, making the AI coaching feel more personal and relevant. The extension uses explicit rules and structure in the AI prompts, driving consistent output and tone. The architecture employs a reactive pattern where various components subscribe to state updates emitted every 5 seconds. The developer learned the importance of context, prompt structure, and careful idle detection during development. The author found Gemini-2.0-flash to be well-suited for the project, valuing its speed and code comprehension. Future plans include persisting achievements, adding vibe streaks, team leaderboards, customizable messages, and publishing to the VS Code Marketplace.
dev.to
dev.to
Create attached notes ...
