Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>Ghost Agent (beta)New to Visual Studio Code? Get it now.
Ghost Agent (beta)

Ghost Agent (beta)

debatable Miracle

|
25 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ghost 👻

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

  1. Open VS Code
  2. Go to Extensions View (Ctrl+Shift+X)
  3. Search for "Ghost" and click Install
  4. Reload VS Code if prompted

⚙️ Setup

To use Ghost, you'll need a Gemini API Key:

  1. Open the Command Palette (Ctrl+Shift+P)
  2. Select: Preferences: Open Settings (UI)
  3. Search for ghost
  4. 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?

  1. Open a notebook or editor
  2. Press Ctrl+Shift+P
  3. Run: Ghost: Write and Run Code
  4. Describe what you want

⚙️ Extension Settings

  • ghost.apiKey: Your Gemini API key for AI code generation

📦 Requirements

  • A valid Gemini API Key
  • An internet connection
  • VS Code with Jupyter/notebook support

🐞 Known Issues

  • Only Gemini supported (OpenAI & Hugging Face coming soon)
  • Notebook experience is best (editor support limited)
  • Some prompts may produce long code without modularization

📝 Release Notes

3.1.1

  • Agentic Mode (Ctrl+Shift+A)
  • Inline Execution (#ghost + Ctrl+Shift+G)
  • Bug fixes and performance improvements
  • Modularized the code more for Claude integrations.

📚 Resources

  • Gemini API Docs
  • VS Code Extension Guide
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft