Skip to content

Copy folders and files for chatbots or initialize them hands-free! Use the free Gemini API for code completions, file refactoring and applying chat responses.

License

Notifications You must be signed in to change notification settings

RayfromUSTC/gemini-coder

 
 

Repository files navigation

logo

Gemini Coder - free AI coding

Copy folders and files for chatbots or initialize them hands-free!
Use built-in API Tools for code completions, file refactoring and applying chat responses.


Download from Visual Studio Code Marketplace Download from Open VSX Registry
X Buy Me A Coffee MIT License

Documentation

Gemini Coder lets you conveniently copy folders and files for chatbots. With the Connector browser extension you can initalize them hands-free!

The extension uses the same context for built-in API Tools: code completions and file refactoring.


Walkthrough


  • 100% free & open source: MIT License
  • Explorer view: Intuitive context selection
  • Versitale: Not limited to Gemini or AI Studio
  • API Tools with your keys: Gemini API or OpenRouter
  • Private: Does not collect any usage data
  • Local: WebSockets for local browser communication
  • One of a kind: Include websites in context
  • Lightweight: Unpacked build is just ~1.3MB

You own the context

Other AI coding tools try to "guess" what context matters, often getting it wrong. Gemini Coder works differently:

  • You select which folders and files provide relevant context
  • You control what examples of coding conventions to include
  • You know how much tokens are used in web chats and code completion/file refactoring requests

The result? Unmatched in accuracy, speed and cost AI assistance.

Too many tokens fighting for attention may decrease performance due to being too "distracting", diffusing attention too broadly and decreasing a signal to noise ratio in the features. ~Andrej Karpathy

Supported chatbots

Gemini Coder initializes many popular chatbots hands-free.

Fully supported chatbots, with system instructions, temperature, model selection and automatic response applying:

  • AI Studio
  • OpenRouter Chat
  • Open WebUI (self-hosted)

Other supported chatbots:

  • Gemini
  • ChatGPT
  • Claude
  • GitHub Copilot
  • Grok
  • DeepSeek
  • Mistral
  • HuggingChat

Quick start for chat

  1. Open the new Gemini Coder view from the activity bar (sparkles icon).
  2. Select folders and files to include in the context.
  3. Enter instructions and copy generated prompt.
  4. (optional) Install browser integration for hands-free web chats initializations.

Quick start for code completions

  1. Open the new Gemini Coder view from the activity bar (sparkles icon).
  2. Select folders and files to include in the context.
  3. Place caret where you want code completion to appear.
  4. Use Command Palette (Ctrl/Cmd + Shift + P) and type "Code Completion".
  5. Bind the command to a keyboard shortcut by opening Keyboard Shortcuts (Ctrl/Cmd+K Ctrl/Cmd+S), searching for Gemini Coder: Code Completion, clicking the + icon, and pressing your preferred key combination (e.g. Ctrl/Cmd+I).

Commands

Code completions

  • Gemini Coder: Code Completion - Get code completion.
  • Gemini Coder: Code Completion with Suggestions - Get code completion that follows given suggestions.
  • Gemini Coder: Code Completion to Clipboard - Copy code completion prompt to clipboard.
  • Gemini Coder: Code Completion with Suggestions to Clipboard - Copy code completion with suggestions prompt to clipboard.
  • Gemini Coder: Code Completion in Chat - Send code completion prompt to web chat using default preset.
  • Gemini Coder: Code Completion in Chat with... - Send code completion prompt to web chat with preset selection.

Refactoring

  • Gemini Coder: Refactor - Refactor active editor.
  • Gemini Coder: Refactor to Clipboard - Copy refactoring prompt to clipboard.

Applying chat responses

  • Gemini Coder: Apply Chat Response - Apply changes suggested by AI using clipboard content.
  • Gemini Coder: Apply Chat Response (Fast replace) - Apply changes suggested by AI using clipboard content (Fast replace).
  • Gemini Coder: Apply Chat Response (Intelligent update) - Apply changes suggested by AI using clipboard content (Intelligent update).
  • Gemini Coder: Revert Last Applied Changes - Revert the last applied changes.

Chat

  • Gemini Coder: Web Chat - Open web chat with default preset.
  • Gemini Coder: Web Chat with... - Open web chat with preset selection.
  • Gemini Coder: Chat to Clipboard - Enter instructions and copy to clipboard.

Context

  • Gemini Coder: Copy Context - Copy selected folders/files and websites to clipboard.

Contributing

All contributions are welcome. Feel free to submit pull requests or create issues and discussions.

License

Copyright (c) 2025 Robert Piosik. MIT License.

About

Copy folders and files for chatbots or initialize them hands-free! Use the free Gemini API for code completions, file refactoring and applying chat responses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.8%
  • SCSS 3.0%
  • JavaScript 2.1%
  • MDX 1.4%
  • Other 0.7%