Ghost is a VS Code extension that lets you write and run code using natural language prompts powered by the Gemini API. Whether you're exploring ideas or automating workflows, Ghost helps turn thoughts into code — instantly.
🚀 Features
✨ Convert natural language to code
⚙️ Powered by the Gemini API
📒 Works with VS Code notebooks
🔁 Automatically runs generated cells
⌨️ Inline prompting using #ghost
🧠 Agentic Mode for step-by-step intelligent execution
🔥 Keyboard Shortcuts:
Ctrl+Shift+A → Agentic Mode
Ctrl+Shift+G → Inline Prompt Execution
🧩 Installation
Open VS Code
Go to Extensions View (Ctrl+Shift+X)
Search for "Ghost" and click Install
Reload VS Code if prompted
⚙️ Setup
To use Ghost, you'll need a Gemini API Key:
Open the Command Palette (Ctrl+Shift+P)
Select: Preferences: Open Settings (UI)
Search for ghost
Paste your Gemini API Key into ghost.apiKey
💡 How to Use
🔮 Agentic Mode (Ctrl+Shift+A)
Let Ghost take over complex tasks and execute them intelligently.
Open any notebook
Press Ctrl+Shift+A
Describe a goal (e.g. build a CNN for MNIST)
Ghost will generate and execute the steps for you
✍️ Inline Prompts with #ghost (Ctrl+Shift+G)
Write a comment in a notebook cell:
#ghost create a class for a binary search tree
Then press Ctrl+Shift+G — Ghost will insert the code right below and optionally run it.
⚡ Command Palette
Prefer a simple prompt?
Open a notebook or editor
Press Ctrl+Shift+P
Run: Ghost: Write and Run Code
Describe what you want
⚙️ Extension Settings
ghost.apiKey: Your Gemini API key for AI code generation