Assistant Code AI
A powerful AI assistant extension for Visual Studio Code that brings the capabilities of various AI models directly into your coding environment.
Features
- Integrated AI Chat: Chat with AI assistants directly in your VSCode interface
- Multiple AI Providers: Support for various AI models:
- OpenAI (GPT models)
- Google Gemini
- Ollama (for local models)
- Convenient UI: Accessible from the activity bar with a dedicated chat view
- Contextual Assistance: Get coding help, explanations, and suggestions based on your current workspace
- Customizable Settings: Configure your preferred AI provider and model
- GitHub PR Review: Review and comment on GitHub Pull Requests directly within VSCode
Installation
- Install from the Visual Studio Code Marketplace
- Search for "Assistant Code AI" in the Extensions view (
Ctrl+Shift+X or Cmd+Shift+X )
- Click Install
Development Setup
If you're developing the extension, follow these steps:
- Clone the repository
- Install dependencies:
npm install
- If you encounter npm errors with packages like
@octokit/rest or @vscode/github-authentication , try:
- Ensuring your npm registry settings are correct
- Using a package manager like yarn:
yarn install
- Installing the packages directly:
npm install --save @octokit/rest
- Adding the packages manually to your package.json and running
npm install
- Compile the extension:
npm run compile
- Run the extension in a new VS Code window: Press F5
Getting Started
- After installation, you'll see a new AI icon in the VSCode activity bar
- Click on it to open the chat interface
- Configure your API keys and settings by clicking on the settings icon
- Start a new chat with the "New Chat" button
- Access PR reviews by clicking the PR Review button
Configuration
Setting up API Keys
- Click on the Settings icon in the AI Assistant panel
- Enter your API keys for your preferred providers:
- OpenAI API key
- Google Gemini API key
- Configure Ollama base URL (default: http://localhost:11434)
- Select your default model for each provider
Configuration Options
- Default Provider: Choose between OpenAI, Gemini, or Ollama
- Model Selection: Choose different models based on your needs
- Ollama Configuration: Set custom endpoint for your local Ollama instance
Usage
- Start a New Chat: Click the "+" icon to start a fresh conversation
- Ask Questions: Type your coding questions, requests for explanations, or any other queries
- Switch Providers: Change between different AI providers based on your needs
- Review GitHub PRs:
- Click the PR Review button to open the PR review interface
- Log in to GitHub when prompted if not already authenticated
- View a list of your open PRs, including those assigned to you or where your review is requested
- Click on a PR to view details, add comments, and submit reviews
GitHub Integration
The extension integrates with GitHub to provide a seamless PR review experience:
- Authentication: Use GitHub's secure authentication process
- PR Listing: View all PRs relevant to you in one place
- Review Interface: Add comments, view PR details, and submit reviews
- Direct Commenting: Add comments to PRs directly from VSCode
Requirements
- Visual Studio Code version 1.89.0 or higher
- Internet connection for OpenAI and Gemini (Ollama works locally)
- API keys for commercial providers (OpenAI, Google)
- GitHub account for PR review features
Privacy & Data
- Your code and conversations are processed according to the privacy policies of the AI provider you select
- For local processing, you can use Ollama with no data sent to external services
- This extension does not collect or store your API keys or conversations on any external servers
- GitHub authentication is handled securely using VSCode's built-in authentication provider
Support & Feedback
License
This extension is licensed under MIT License.
| |