⭐ If this helps your workflow, consider starring the repo.
What is InspectAI?
InspectAI runs locally inside VS Code and analyzes selected code using AI-powered review models, helping you identify potential issues without leaving your editor.
Helps catch bugs, security issues, and mistakes in AI-generated code before you commit.
Features
-
🔍 AI bug detection
- Logic errors
- Edge cases
- Null and undefined risks
- Common coding mistakes
-
🔒 Security issue detection
- SQL injection risks
- Hardcoded secrets
- Unsafe patterns
- Input validation issues
-
🛠 One-click AI fixes
- Automatically generates corrected code for each issue
- Shows Before → After comparison
- Apply fixes directly into your editor with a single click
-
⚡ Automatic re-check system
- Re-analyzes code after fixes are applied
- Confirms whether issues are fully resolved
- Ensures code stays clean after updates
-
⚡ VS Code integrated workflow
- Review code directly inside VS Code
- No copy-pasting required
- Works from the editor context menu and command palette
Try it with sample code
Clone this repo and open the samples/ folder:
samples/01-clean-example.ts— well-structured code (low risk)samples/02-buggy-example.ts— intentional bugs for demos (higher risk)
Select a function → right-click → InspectAI: Review Selection.
Installation
Install InspectAI from the Visual Studio Code Marketplace.
Marketplace:
https://marketplace.visualstudio.com/items?itemName=cheeznology.inspectai
Setup
-
Open VS Code Settings.
-
Search for:
inspectai.apiKey
-
Enter your API key.
Usage
Review Selected Code
-
Select code in the editor.
-
Right-click.
-
Choose:
InspectAI: Review Selection
-
View results in the InspectAI panel.
Review an Entire File
-
Open a file.
-
Open the Command Palette:
Ctrl+Shift+P
-
Run:
InspectAI: Review File
Requirements
- Valid API key
- VS Code 1.85 or newer
Privacy
InspectAI processes code only when you request a review.
No review is performed automatically.
Project Status
InspectAI is actively being developed. Feedback and bug reports are welcome.
Planned improvements:
- Better code explanations
- Faster review performance
- More language support
Screenshots
Welcome Page

Right-Click Menu

No Issues Detected

Issues Detected (Example)

Support
GitHub Issues: https://github.com/Cheeznology/inspectai/issues
Email: [email protected]
InspectAI is an independent project and is not affiliated with any AI provider.