CodeGuardian AI
CodeGuardian AI is a Visual Studio Code extension that runs GPT-4.1 analysis on your open file, highlighting potential bugs, logical errors, and areas for improvement. It’s completely plug-and-play: you do not need your own OpenAI key. The developer pays for the GPT-4 usage, so you’ll be prompted occasionally for a review (after 3 scans) or a donation (after 10 scans) to help cover costs.
Features
Scan File with GPT-4.1
- Quickly analyze your current file for potential issues by running the command:
CodeGuardian AI: Scan File
- A comprehensive AI response appears in the “CodeGuardian AI” output panel.
Automated Bug Detection
- Potential bugs or warnings appear as diagnostics in VS Code’s Problems panel.
- Each flagged line is marked with a Warning to help you see exactly where GPT found issues.
Prompt for Review
- After 3 scans, a pop-up asks if you’d mind leaving a review on the VS Code Marketplace.
- This helps others discover CodeGuardian AI and supports ongoing development.
Prompt for Donation
- After 10 scans, you’ll see a prompt to donate.
- Because the developer covers OpenAI costs for you, any contribution helps keep the extension free to use.
Usage Analytics
- The extension tracks basic usage data (like “Scan File Command Used”) with Amplitude.
- No code content is stored—just event names and a randomly generated user ID.
How It Works
Open a File
- Any code file in VS Code that you want analyzed.
Run the Command
- Press
Ctrl/Cmd+Shift+P
→ CodeGuardian AI: Scan File
.
- In a few seconds, a GPT-4.1 analysis appears in the Output channel.
Check the Results
- AI Suggestions (Full Text) in the Output channel
- Flagged Lines (Summary) listing each line that GPT flagged
- Warnings in the Problems panel for each flagged line
Review & Donate Prompts
- On the 3rd scan, a pop-up asks you to review the extension.
- On the 10th scan, you’ll be asked about donating.
- Supporting CodeGuardian AI ensures it stays free and robust.
Installation
- Open the Extensions view in VS Code (
Ctrl/Cmd+Shift+X
).
- Search for CodeGuardian AI (publisher:
YonasValentinMougaardKristensen
).
- Click Install, then reload if prompted.
Usage Steps
- Open a Code File you want to scan.
- Scan the file:
- Press
Ctrl/Cmd+Shift+P
, type “CodeGuardian AI: Scan File”, then press Enter.
- Read the “AI Suggestions” in the “CodeGuardian AI” Output channel.
- Check flagged lines in the Problems panel.
- If you see a prompt for a review or donation, consider helping the developer if you find this tool valuable.
FAQ
Q: Do I need my own OpenAI key?
A: No. CodeGuardian AI uses the developer’s key, so you don’t pay for GPT-4 usage.
Q: How often can I scan files?
A: As often as you like, but please note the dev’s limited budget—hence the prompts after multiple scans.
Q: What data is tracked in Amplitude?
A: The extension tracks events like “Scan File Command Used” plus a randomly generated user ID. It does not store your code.
Q: Is my code sent to external servers?
A: Yes, your code is sent to GPT-4.1. For highly sensitive code, consult your organization’s policy on AI usage.
Contributing & Support
- Issues/Feedback: Submit on the GitHub repo or Marketplace page.
- Reviews: Help others discover CodeGuardian AI by leaving a review.
- Donations: Buy Me a Coffee after your 10th scan if you’d like to support the developer’s GPT-4 bills.
Happy Coding with CodeGuardian AI!
Use it for quick, AI-driven insights, and let others know how it helps by leaving feedback or a review. Your support ensures this extension remains available to everyone at no cost.