Level Up Your AI-Assisted Coding with Vibemode: The Ultimate CLI Code Companion
Are you tired of clunky workflows when using AI models like ChatGPT or Google AI Studio to assist with your coding? Vibemode is here to bridge the gap, making AI-powered code modifications seamless and efficient. This CLI tool packs your code for AI consumption and then effortlessly applies the AI's suggested changes back to your project.
Stop Fighting Context Limits: Embrace Full-Context AI Coding
Frustrated with AI coding tools that cut corners by limiting context? Vibemode lets you feed your AI models the entire picture. Unlike other tools, vibemode ensures your AI has all the necessary information. Enhance your collaboration and make your workflow more efficient now!
Key Benefits of Using Vibemode:
- Full Context: Send all (or selected) files to your AI, as is, to get the best suggestions.
- Streamlined Workflow: Eliminate tedious copy-pasting between your editor and the AI interface.
- AI-Friendly Formatting: Package your code into a structured XML format, ideal for AI parsing.
- Easy Application of Changes: Apply AI-generated diffs directly to your files, saving time and preventing errors.
Unleash the Power of AI with These Vibemode Features
Vibemode is more than just a simple utility; it's a complete solution for AI-assisted code modification, packing a punch with features designed to streamline your workflow.
- Interactive Packing: Select files and directories with ease, using glob patterns and autocomplete.
- .gitignore Awareness: Automatically exclude files specified in your .gitignore.
- Clipboard Integration: Copy the generated XML directly to your clipboard for instant pasting.
- Automated Patching: Parse AI responses and apply changes with a single command.
- Error Handling with Retry: If a patch fails, retry it to ensure all changes are applied.
- Powered by Gemini: Uses the Google Gemini API for applying edits.
How to Get Started with Vibemode
Ready to experience the future of AI-assisted coding? Getting started with Vibemode is quick and easy.
- No Installation Required: Run directly using
npx vibemode
. - Choose Your Action: Select either "Pack files" or "Apply edits" from the menu.
Packing Files for AI Consumption
- Select the files and directories you want to include using the interactive prompt.
- Press Enter when you're done, and the packed XML will be copied to your clipboard.
- Paste the XML into your favorite AI chat interface.
Effortlessly Apply AI-Suggested Edits for a Smooth Experience
Applying edits is just as simple using any LLM of your choice. To use this feature, follow these steps.
- Run the tool and select "Apply edits".
- Paste the AI-generated response containing the suggested edits.
- Vibemode will automatically parse the response and apply the changes to your local files.
Utilizing Gemini API to Apply Edits (Requires API Key)
The apply edits
functionality in Vibemode currently leverages the Google Gemini API (specifically the gemini-2.0-flash model) to understand and apply code change suggestions.
- Obtain a Gemini API Key: You can get a free API key from Google AI Studio: https://aistudio.google.com/.
- Set the Environment Variable: Before running vibemode, set the
GEMINI_KEY
environment variable in your terminal:- Linux/macOS:
export GEMINI_KEY='YOUR_API_KEY_HERE'
- Windows (Command Prompt):
set GEMINI_KEY=YOUR_API_KEY_HERE
- Windows (PowerShell):
$env:GEMINI_KEY='YOUR_API_KEY_HERE'
- Linux/macOS:
Unlock Your Coding Potential with Vibemode
Vibemode is the missing piece in your AI-assisted coding workflow. Start using vibemode today and experience a new level of efficiency and collaboration. Happy Vibing!