PimAI is a Visual Studio Code extension that provides AI-powered code assistance. It uses the Groq AI model to analyze, optimize, test, and document your code.
- Interactive chat with AI about the selected code snippet
- Code correction and improvement suggestions
- Instant code updates
- Detailed explanation of the selected code
- Beautifully formatted documentation in Markdown
- Syntax highlighting support
- Code formatting according to best practices
- Consistent style and layout
- Improved readability
- Performance improvements
- Time and memory complexity optimizations
- Resource usage optimizations
- Automatic unit test generation
- Comprehensive test scenarios
- Tests for edge cases and error scenarios
- Automatic documentation in JSDoc/docstring format
- Function descriptions and parameters
- Usage examples
- Code security scan
- Detection of common vulnerabilities
- Improvement suggestions
- Open Visual Studio Code
- Go to the Extensions tab (Ctrl+Shift+X)
- Search for "PimAI"
- Click the "Install" button
- You will need to enter your Groq API key on the first use of the extension
- To change the API key:
- Restart VSCode or
- Delete the
pimai.secretKey
value in the settings
- Select the code you want to analyze
- Use one of the following shortcut keys:
Alt+A
: Code ChatAlt+S
: Code ExplanationAlt+F
: Code FormattingAlt+O
: Code OptimizationAlt+T
: Test GenerationAlt+D
: Documentation GenerationAlt+C
: Security Analysis
- Groq API key
- Node.js and pnpm
git clone https://github.com/Pimatis/pimai.git
pnpm install
pnpm run watch
This project is licensed under the MIT license.
- Fork this repository
- Create a new branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'feat: add amazing feature'
) - Push your branch (
git push origin feature/amazing-feature
) - Create a Pull Request
Created by Pimatis Labs