$ show jlcodes99/vscode-antigravity-cockpit
This repository is a VS Code extension for monitoring and managing AI model quotas (Antigravity/Google Gemini/Claude/etc.). It provides a WebView dashboard and QuickPick view for real-time quota tracking, account management with OAuth authentication, auto-trigger/wakeup functionality to prevent quota exhaustion, and integration with the Cockpit Tools desktop application. The extension features quota grouping, history visualization, threshold-based notifications, multi-account support, and internationalization across 18+ languages. Architecture follows modular VS Code extension patterns with separate controllers, services, and views communicating via event-driven messaging.
The LLM identified 5 files worth highlighting for reuse:
Abstracts VS Code memento API for persistent storage with typed getters/setters and configuration version migration. Isolated, reusable in any VS Code extension, demonstrates non-obvious skill in handling migration and default values.
Handles platform-specific path resolution for local, WSL, and SSH remote environments. Solves a common problem in extensions interacting with local processes/files in remote scenarios. Self-contained with minimal dependencies.
Reusable logging service with multiple transports (console, file) and log levels. Encapsulates logging logic for easy integration into any Node.js/TypeScript project. Demonstrates clean separation of concerns.
Provides secure storage/retrieval of user credentials (OAuth tokens) using VS Code Secret Storage. Features account-based keying, validation, and error handling. Isolated and reusable in extensions requiring credential management.
Implements strategy pattern for quota fetching, allowing runtime switching between local process and remote API sources. Demonstrates loose coupling and extensibility for data source abstraction with clear interface segregation.