Paste AI output → preview the diff → apply it. One click. Full undo, always.
No API keys. No subscription. Works with ChatGPT, Claude, Gemini — any chatbot.
If you use AI chatbots to write code, you already know the friction: copy a function, find the file, paste it, hope you didn't miss a line, repeat for the next file. Brud Code removes that step. Your AI outputs a change; Brud applies it — reviewed, logged, and reversible — in one click.
Most AI coding tools stop at "apply the change." Brud closes the loop back to your AI too — so it always knows what actually happened, without you typing a status update by hand.
File Path: src/utils.js
<<<<<<< SEARCH [1]
function calculateTotal(price, tax) {
return price + tax;
}
=======
function calculateTotal(price, tax, discount = 0) {
return price + tax - discount;
}
>>>>>>> REPLACE [1]- Paste — your AI hands you a Brud block like the one above. Drop it into the sidebar.
- Execute — Brud shows you the diff and applies it. Works identically whether it's 1 file or 1,000.
- Copy All — one click copies everything your AI needs back: status, file paths, messages, per-file results.
- Paste it back — drop that into the chat. Your AI now knows exactly what happened, and picks up right where it left off.
One paste in. One copy out. No retyping results, no re-explaining what changed, no switching back and forth to check if something failed.
- 🆓 Free, forever, no keys. Works with any chatbot's web UI — nothing to configure, nothing to pay for.
- 🔁 One paste in, one copy out. The AI's result — status, files, errors — comes back to it automatically, no manual re-explaining.
- 👀 You approve every change. Nothing touches your files until you preview the diff and hit apply.
- ⏪ One-click undo, at any scale. Revert a single edit or an entire thousand-file session in one action.
- ⚡ Built for bulk. Create, patch, or restructure hundreds of files from a single AI-generated block.
- 🔓 No lock-in. No Git required, no account, no server — your history lives in your own workspace.
Fastest way: Download the latest release and install the VSIX:
code --install-extension brud-code-*.vsixOr from inside VS Code: Ctrl+Shift+X → search Brud Code → Install.
Once installed, open the Prompt Library in the sidebar, copy the Master Prompt into your favorite AI chatbot, and start pasting Brud blocks. You'll be applying your first AI-generated change in under two minutes.
| File Operations | Create, delete, rename, move, copy, and append files — reviewed and reversible every time. |
| Bulk Operations | Apply one transformation across hundreds or thousands of files in a single pass. |
| Code Discovery | Give your AI a token-efficient map of your project so it writes changes that actually fit. |
| Terminal | Run commands, chains, and interactive CLI tools, with output routed straight back to the AI. |
| Any AI, Any Time | Works with ChatGPT, Claude, Gemini, DeepSeek, Grok, Llama — anything that can output text. |
Tested on a real 384K LOC codebase, manually verified end to end:
| Benchmark | Scale | Result | Time |
|---|---|---|---|
| Create Files | 1,000 files | 1,000/1,000 created, unique content | Under 1 second |
| Search & Replace | 467 files / 384K LOC | 467 patched, 0 failed | Milliseconds |
| Append Multi | 467 files | 467 modified, 0 failed | Milliseconds |
| Revert Session | 1,000 files | 1,000/1,000 reverted | Milliseconds |
| Restore Session | 1,000 files | 1,000/1,000 restored | Milliseconds |
100% success rate across every benchmark. No manual per-file work — the AI generates one block, Brud handles the rest.
Every session is automatically snapshotted before and after, stored locally in .brud/history/ in your own workspace — no account, no cloud, no external service. Revert or restore any session instantly, even months later (deleted sessions get a 7-day recovery window before cleanup). Full technical details are in ARCHITECTURE.md.
- ARCHITECTURE.md — how the snapshot engine, diffing, and history system work internally
- CONTRIBUTING.md — contribution guidelines
- Prompt Library — bundled in the extension sidebar
Do I need an API key?
No. Brud Code works with any chatbot's free web UI. Paste the AI's output directly — no keys, tokens, or subscriptions.
Is it really free?
Yes — free and open source under the MIT license.
Which AI chatbots work with it?
Any chatbot that outputs text: ChatGPT, Claude, Gemini, DeepSeek, Grok, Llama, and more.
Where did Brud Code come from?
Brud Code is a fork of Akkhar Code Patcher, which is no longer maintained. Brud Code is its official continuation under a new identity.
Contributions are welcome — see CONTRIBUTING.md to get started.
- ⭐ Star the repo to support development
- 🐛 Report bugs via GitHub Issues
- 💡 Suggest features via GitHub Discussions
- 🔧 Contribute via Pull Requests
The AI decides. Brud executes. You bridge the gap with a single click.

