AI-powered coding assistant for Visual Studio Code.
Coding Companion integrates with powerful AI models like Google's Gemini and AWS Bedrock (via Anthropic Claude) to provide insightful code reviews directly within your editor. It helps you identify potential issues, improve code quality, and learn best practices.
Custom Prompts: Override the default review prompt for tailored feedback.
Debug Mode: View raw AI responses for troubleshooting.
Requirements
Visual Studio Code version 1.80.0 or higher.
An API key for your chosen AI provider:
Google AI: A Gemini API Key.
AWS Bedrock: AWS credentials (Access Key ID & Secret Access Key) with permissions for Bedrock. Note: Using IAM roles or profiles is recommended for better security.
Extension Settings
This extension contributes the following settings (accessible via File > Preferences > Settings or the Configure Extension Settings command):
codingCompanion.aiProvider: Select the AI service provider (googleAI or awsBedrock).
Google AI Settings:
codingCompanion.googleAI.apiKey: Your Google Gemini API Key.
codingCompanion.googleAI.modelName: The specific Gemini model to use (e.g., gemini-1.5-pro).
AWS Bedrock Settings:
codingCompanion.aws.region: AWS Region for Bedrock service (e.g., us-east-1).
codingCompanion.github.apiToken: GitHub Personal Access Token (PAT) with 'repo' scope (treated as a password).
codingCompanion.github.username: Your GitHub username.
Commands
Access commands via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
Coding Companion: Start AI Code Review: (Currently seems inactive based on activationEvents, might be legacy or for future use).
Coding Companion: Stop AI Code Review: (Currently seems inactive based on activationEvents, might be legacy or for future use).
Coding Companion: Review Current File with AI: Trigger a review for the active editor file.
Coding Companion: Show AI Usage Statistics: Display information about AI usage/costs.
CodingCompanion: Review Saved Changes with AI: Review the differences between the current file and the last saved version recognized by the extension's diff tracking.
CodingCompanion: Configure Extension Settings: Opens the VS Code settings filtered to this extension.
You can also find icons for Review Active File, Review Saved Changes with AI, and Configure Extension Settings in the "AI Reviews" view title bar.
Release Notes
0.1.0
Initial release of Coding Companion.
Support for Google AI (Gemini) and AWS Bedrock.
Core review functionality for files and saved diffs.