Genie AI - VS Code Extension
AI-powered coding assistant that can create files, rewrite code, run terminal commands, and more.
Features
- 💬 Chat Interface - Natural conversation with AI
- 📝 File Creation - AI can create files directly from code blocks
- ✏️ Code Rewriting - Modify specific lines in your active file
- 🌳 Project Awareness - Sees your file structure and active file
- 💻 Terminal Commands - Execute shell commands
- 🔐 Secure Auth - API key stored in VS Code settings, user token in secure storage
Setup
- Install the extension
- Open the Genie panel from the Activity Bar (sparkle icon)
- Click "Open Settings" to configure your API key
- Sign in with your email and password
Configuration
Go to Settings (Cmd/Ctrl + ,) and search for "Genie":
Usage
Basic Chat
Just type your request and Genie will respond. It can see:
- Your currently active file
- Any selected code
- Your project structure
Commands
You can manually test commands by starting with /:
/tree 3 - Show project tree (depth 3)
/read src/index.js - Read a file
/terminal npm test - Run a terminal command
AI Commands
The AI can execute these automatically:
File Creation - Code blocks with filename:
```javascript:src/utils.js
export const helper = () => {}
```
Code Rewriting - Replace lines in active file:
```
execute_commands(["/rewrite 10 20 \"new code here\""])
```
Tips
- Select code before asking questions about it
- Keep a file open for context
- The AI sends system reports after executing commands
Commands
Genie: Set API Key - Quick way to set your API key
Genie: Logout - Clear your session
Genie: Clear Chat - Clear chat history
Made with ❤️ by Codini
| |