Gemini Agent - Your AI-Powered Coding Assistant Supercharge your development workflow with Gemini Agent, a powerful and proactive AI assistant integrated directly into Visual Studio Code. Powered by Google's state-of-the-art Gemini models, this extension goes beyond simple code completion to provide a suite of intelligent tools designed to help you write better code, faster. Features Proactive Code Auditing No need to ask! Gemini Agent automatically reviews your code every time you save, highlighting potential bugs, style issues, and performance bottlenecks directly in the editor. It's like having an expert code reviewer watching your back. Context-Aware Actions Simply select a block of code and right-click to access a suite of powerful, context-aware commands: Gemini: Explain this code: Get a clear, concise explanation of what the selected code does, perfect for understanding complex logic or unfamiliar codebases. Gemini: Refactor this code: Automatically rewrite the selected code to improve its readability, efficiency, and adherence to modern best practices. The old code is replaced with the improved version seamlessly. Gemini: Generate Diagram for this code: Instantly generate a Mermaid flowchart diagram to visualize the logic of any function. This is an incredible tool for documentation and debugging. General Purpose AI Chat Ask Gemini: Have a general coding question? Use the Ask Gemini command from the Command Palette to ask anything and get a detailed answer in a new editor tab. How to Use Proactive Auditing: Simply open a Python, JavaScript, or TypeScript file and start coding. Save the file (Ctrl+S/Cmd+S) to trigger an analysis. Issues will be highlighted with squiggly underlines. Context-Menu Commands: Select any piece of code in the editor and right-click to see the available Gemini Agent actions. General Questions: Open the Command Palette (Ctrl+Shift+P/Cmd+Shift+P) and type Ask Gemini. Requirements You will need a Google Gemini API key to use this extension. You can get a free key from Google AI Studio. (Note: In future versions, a setting will be provided to configure the API key. For now, it is set within the extension's source code.) Enjoy a more intelligent and productive coding experience with Gemini Agent! |