Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Prompt NinjaNew to Visual Studio Code? Get it now.
Prompt Ninja

Prompt Ninja

Amin Albooyeh

|
1 install
| (0) | Free
Turn rough notes, in any language, into clear prompts for Claude Code, Copilot and other AI agents, and clean commit messages.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prompt Ninja

Turn rough notes, in any language, into clear prompts for your AI agent and clean commit messages.

Write what you want the way it comes to mind, in English, Persian or any other language. Prompt Ninja rewrites it into a clear, well-structured prompt and sends it to the coding agent you use: Claude Code, Copilot Chat, opencode, Codex, Cline and more. The same panel turns your staged changes into a clean commit message.

Features

  • 🤖 Prompts for your agent: rewrite a rough request into a clear prompt, keeping your intent without adding anything.
  • 📨 Send to any agent: Claude Code, Copilot Chat and opencode get the prompt in their input; other agents get it on the clipboard with their chat opened.
  • 🌍 Any language in, clear English out: write the way you think.
  • 📐 Commit messages: Conventional, Concise, Descriptive or Formal, or your own template, from your words and the staged diff.
  • ⬆️ Commit & Push: commit and push in one click, setting the upstream on a branch's first push.
  • 🔌 Free models included: Copilot models in VS Code need no key, and Gemini has a free tier. OpenAI, Anthropic and a local Ollama work too.
  • 🔒 Privacy-first: your text and diff go only to the model you choose. Keys stay in VS Code's secure storage.

How It Works

  1. Open the Prompt Ninja panel (robot icon in the Activity Bar on the left).
  2. Write your request, or describe your staged changes.
  3. Click Improve ✨, check the result, and edit it if you like.
  4. Send it to your agent, or commit with it.

You can also click the sparkle icon in the Source Control panel to write a commit message straight from the staged diff.

Requirements

  • Git must be installed and the workspace must be a git repository.
  • An API key for at least one supported provider (OpenAI, Anthropic, or Gemini), or a local Ollama instance.

Extension Settings

This extension contributes the following settings:

  • smartcommit.provider: AI provider to use (openai, anthropic, gemini, ollama).
  • smartcommit.model: Specific model name (e.g. gpt-4o-mini, claude-sonnet-5-5, llama3.1). An API key typed here by mistake is ignored.
  • smartcommit.commitStyle: Message style (conventional, descriptive, minimal, formal).
  • smartcommit.customTemplate: Your own prompt; {{diff}} marks where the staged diff goes.
  • smartcommit.maxDiffChars: Largest diff sent to the provider (default 15000 characters); longer diffs are truncated.
  • smartcommit.excludeFiles: Glob patterns left out of the diff (lockfiles, minified files and source maps by default).
  • smartcommit.ollamaUrl: Address of your local Ollama server (default http://localhost:11434).

Commit Panel

The Prompt Ninja panel (robot icon in the Activity Bar on the left) has two modes, chosen at the top.

Prompt for agent (default)

  1. Write what you want from your AI coding agent, in your own words and in any language.
  2. Click Improve ✨ (or press Cmd/Ctrl+Enter). The model rewrites it as a clear English prompt, keeping your intent without adding anything.
  3. Pick an agent in the Send to list and click Send. Only agents installed in VS Code are listed:
Agent How the prompt arrives
Claude Code Pasted into the input of the open session (a new session gets it filled in)
Copilot Chat In the chat input
opencode Typed into its terminal (it is opened first if needed)
Codex, Cline, Kilo Code, Roo Code, Continue, Gemini Code Assist, Amazon Q, Augment, Qodo Gen, Zencoder, Cody, Windsurf, Tabnine, Blackbox, Antigravity, CodeGeeX Copied, and the agent's chat is opened: paste with Cmd/Ctrl+V

Nothing is sent to the agent until you press Enter in it.

Commit message

  1. Stage your changes, then describe them in your own words, in any language. Leave it empty to write a message from the staged diff alone.
  2. Pick a style: Conventional, Concise, Descriptive or Formal. When smartcommit.customTemplate is set, it is used instead.
  3. Click Improve ✨. The model sees your draft and the staged diff.
  4. Edit the result if you like, then click Commit & Push, Commit, Send to commit box, or send it to an agent.

Settings

Click ⚙ (or the model label under your message) to open the settings page:

  • Model: any chat model in VS Code (such as GitHub Copilot, which needs no key) or one of Prompt Ninja's own providers (Gemini, Anthropic, OpenAI, Ollama). Each entry shows, faded, whether it is free and whether it needs a key.
  • API key: for Gemini, Anthropic and OpenAI. Stored in VS Code's secure storage, never in settings.
  • Model name: leave empty for the provider's default, or pick one of the suggestions.

Gemini has a free tier: get a key at aistudio.google.com/apikey. A Claude Pro subscription does not include API access; Anthropic keys come from console.anthropic.com.

Commands

  • Prompt Ninja: Generate Commit Message: also the sparkle button in the Source Control panel.
  • Prompt Ninja: Regenerate with Different Style: pick conventional, concise, descriptive or formal.
  • Prompt Ninja: Open Panel: shows the panel.
  • Prompt Ninja: Set API Key / Clear API Key: manage keys in VS Code's secure storage.

Privacy

Prompt Ninja does not collect, store, or transmit your code to any server other than the AI provider you explicitly configure. API keys are stored securely using VS Code's SecretStorage API.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft