✨ What is SyntraX?
SyntraX is an AI-powered coding assistant that lives right inside your VS Code sidebar.
Instead of writing boilerplate, debugging manually, or fixing code line-by-line —
you just type what you want in plain English and SyntraX does the work using Google Gemini 2.5 Flash AI.
No subscriptions. No complex setup. Just a free Gemini API key and you're ready to go.
💡 Why SyntraX?
- 🔥 Actually edits your files — not just suggestions
- ⚡ Works on entire folders — scan, fix, create all at once
- 🧠 Uses Gemini Function Calling — real execution, not guessing
- 👁️ Opens diff view so you review every change before saving
- 🔒 Secure API key storage via VS Code encrypted secrets
- 🆓 Completely free to use with a free Gemini API key
⚡ Features at a Glance
| Feature |
Command Example |
What It Does |
| ⚡ Create |
create todo app inside myapp folder |
Generates complete HTML + CSS + JS project |
| 🔍 Scan |
scan myapp folder |
Finds bugs, security issues, code quality problems |
| 🛠️ Fix |
fix myapp folder |
Auto-fixes ALL files + opens diff preview |
| 🗑️ Delete |
delete myapp folder |
Removes files or folders instantly |
| 💬 Chat |
how do I center a div in CSS? |
Ask anything — AI explains and helps |
| 🔒 Secure Storage |
— |
API key stored in VS Code encrypted secrets |

🚀 Getting Started
1️⃣ Install SyntraX
Open VS Code Extensions (Ctrl+Shift+X) → Search SyntraX → Click Install
2️⃣ Get a Free Gemini API Key
SyntraX uses Google Gemini AI which is completely free to use.
- Go to 👉 aistudio.google.com/app/apikey
- Sign in with your Google account
- Click Create API Key
- Copy the key (starts with
AIzaSy...)
3️⃣ Activate SyntraX
- Click the SyntraX eye icon in the VS Code Activity Bar (left sidebar)
- Paste your Gemini API key in the input field
- Click Activate
- SyntraX validates your key automatically — if it's wrong, you'll see an error
4️⃣ Open a Folder and Start Typing
Open any project folder in VS Code (File → Open Folder) and type your first command:
create portfolio website inside myfolder
scan src folder
fix myproject folder
⚙️ How It Works Internally
SyntraX uses Gemini Function Calling — the AI doesn't guess at your code. It actually calls real tools to read, fix, and write your files on disk.
You type a command in SyntraX chat
↓
Text is sent to Google Gemini 2.5 Flash API
↓
Gemini decides which tools to use
↓
SyntraX tools execute on your local files:
• list_files — scans your folder
• read_file — reads each file
• write_file — writes fixes
• create_folder — creates directories
↓
Results appear in sidebar
Diff view opens for every fixed file
SyntraX actually reads your code before making any change. It never guesses.

📸 How Each Feature Works
⚡ Create — Generate Full Projects
Type a natural language request and SyntraX generates a complete, working project.
Example:
create a calculator website inside myproject folder
SyntraX will:
- Create the
myproject folder
- Generate
index.html with full markup
- Generate
style.css with modern styling
- Generate
script.js with complete working logic
All code is production-ready — no TODO comments, no placeholder text.


🔍 Scan — Find Issues in Your Code
SyntraX reads every file in your folder and produces a detailed report with exact file names and line numbers.
Example:
scan myproject folder
Sample Scan Report:
SCAN REPORT
Files scanned: 3 | Security: 1 | Bugs: 2 | Quality: 1 | HTML/CSS: 1
index.html
L1 SEC Missing DOCTYPE declaration
L14 BUG img tag missing alt attribute
script.js
L23 SEC innerHTML used — XSS vulnerability risk
L47 BUG console.log left in production code
style.css
L12 STYLE Magic number used instead of CSS variable
Severity levels:
SEC — Security issue (XSS, injection, exposed tokens)
BUG — Logic error, missing check, broken code
STYLE — Code quality (unused vars, duplicate rules)
HTML — HTML/CSS structure issues


🛠️ Fix — Auto-Fix All Issues with Diff Preview
SyntraX reads every file, fixes every issue, and opens a side-by-side diff view in VS Code so you can review every single change before saving.
Example:
fix myproject folder
SyntraX will:
- List all files in the folder
- Read each file one by one
- Fix all issues found
- Write the complete corrected file
- Open diff view — green = added, red = removed


💬 Chat — Ask Anything About Code
SyntraX remembers your conversation history so you can have a real back-and-forth discussion.
explain what async/await does
why is my for loop not working?
what is the difference between == and ===
how do I optimize this algorithm?

🗑️ Delete — Remove Files or Folders
delete myproject folder
Permanently removes the specified file or folder. This cannot be undone — use carefully.

⚠️ Free Gemini API — What You Should Know
SyntraX runs on Google's free Gemini API tier, which has some limits worth understanding:
| Limitation |
Details |
| Rate limits |
Free tier allows 15 requests/minute and 1500 requests/day. If you hit the limit, wait a few minutes — it resets automatically. |
| Internet required |
SyntraX cannot work offline. Every command goes to the Gemini API. |
| Workspace only |
SyntraX only accesses files inside your currently open VS Code workspace folder. |
| Large projects |
Scanning or fixing 100+ files takes longer. Use the Stop button to cancel any running task. |
| Need more quota? |
Upgrade to a paid Gemini API plan at Google AI Studio. |
If something goes wrong: Click the 🗑️ trash icon to clear the chat and start fresh.

🔑 API Key — Common Issues & Fixes
| Problem |
Cause |
Fix |
API key not valid |
Key not activated yet |
Wait 1–2 minutes after creating, then try again |
Quota exceeded |
Daily/minute limit hit |
Wait a few minutes or next day — resets automatically |
Permission denied |
Billing not enabled |
Go to Google AI Studio → enable billing (free credits available) |
| Key not working after paste |
Extra space copied |
Delete and re-paste the key carefully |
Network error |
No internet |
Check your internet connection |
⚠️ Never put your API key in .env files or commit it to GitHub. SyntraX stores it securely in VS Code's encrypted secret storage — let it handle the key for you.
💡 Pro tip: If you keep hitting rate limits on large projects, break them into smaller folders and scan/fix one at a time.
⌨️ Keyboard Shortcuts
| Action |
Shortcut |
| Send message |
Enter |
| New line in input |
Shift + Enter |
| Stop current task |
Click Stop button |
| Clear chat |
Click trash icon |
| Change API key |
Click settings icon |
💡 Tips for Best Results
- Be specific about folder names — use the exact name that exists in your workspace
- Fix entire folders at once —
fix myapp folder fixes ALL files, not just one
- Scan before fixing — scan first to see what issues exist, then fix
- Stop anytime — if a task is taking too long, click the Stop button
- Clear chat if stuck — if something goes wrong, clear chat and try again
📋 Requirements
- VS Code version 1.80.0 or higher
- Internet connection — needed for Gemini API calls
- Free Google Gemini API key — get one at aistudio.google.com
🔒 Privacy & Data
|
|
| ✅ |
Your API key is stored in VS Code's encrypted secret storage — never written to any file |
| ✅ |
SyntraX itself does not collect or store any of your data |
| ✅ |
No telemetry, no analytics, no tracking of any kind |
| ⚠️ |
Your code is sent to Google Gemini API for processing — this is how AI reads and fixes your files |
| ⚠️ |
For Google's data handling, see Google Privacy Policy |
🛣️ Roadmap
- [x] Chat with Gemini AI
- [x] Code scan & analysis with line numbers
- [x] Auto-fix with before/after diff view
- [x] AI code generation (full projects)
- [x] Secure API key storage with validation
- [x] Chat persistence across sessions
- [x] Live progress streaming + Stop button
- [ ] OpenAI / Claude support
- [ ] Inline diagnostics (like ESLint)
- [ ] Git integration
- [ ] Test generation
- [ ] Multi-file context awareness
🧪 Run Locally
git clone https://github.com/shubham-17p/SyntraX
cd SyntraX
npm install
code .
# Press F5 to launch Extension Development Host
📦 Build & Publish
npm install -g @vscode/vsce
vsce package
vsce publish
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
MIT License — Copyright (c) 2025 Shubham Patel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software to deal in the Software without restriction, including the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, subject to the above copyright notice appearing in all copies.
What this means:
- ✅ Free to use, modify, and distribute
- ✅ Commercial use allowed
- ❌ Only requirement — give credit (keep the copyright notice)
❤️ Support
👨💻 Author
Built with dedication by Shubham Patel
If SyntraX helped you write better code, consider leaving a ⭐ review on the VS Code Marketplace — it means a lot!