DEV Community

Cover image for I built a VS Code extension to replace paid AI coding agents by exploiting free chatbots 😈
EffessDev for Necoz

Posted on

I built a VS Code extension to replace paid AI coding agents by exploiting free chatbots 😈

Clipboard-driven agent loop avoids API costs

Here's a simplified look at what happens behind the scenes when an AI agent works:

  1. You type a prompt and hit Send.
  2. The harness adds additional context such as project details, tools, and instructions to your prompt.
  3. The LLM processes everything and generates structured output.
  4. The harness executes that output, collects the results, and sends them back to the LLM.
  5. The cycle repeats until the task is complete.

Traditionally, getting this kind of workflow meant paying for API access or a subscription to an AI agent platform.

But here's the interesting part: any free AI chatbot you could find online can generate structured output, too. What if we built a tool that generates the context and instructions that chatbot needs, and then executes the structured output it returns?

We'd have something fairly close to an AI agent, except that we have to manually paste the outputs back and forth. That's not as inconvenient as it sounds, if you use your clipboard as the transport medium.

So I decided to try it out. The result is a VS Code extension called ReptClip.

How it works

Once installed, ReptClip adds a tab to the bottom panel in VS Code.

  1. Click the Context button to copy the initial context to your clipboard. Paste it into your chatbot, enter your prompt, and hit Send.
  2. The chatbot generates the required structured output in a single code block.
  3. Copy that code block and click Execute.

There are two main types of output:

  1. Edit Block (header: block-type: edit): This can edit, move, rename, delete, and create files.
  2. Read Block (header: block-type: read): This can read files (either fully or partially) and perform searches.

Clicking Execute copies the results to your clipboard, so you can paste them back into the chatbot and continue the conversation.

The chatbot is also instructed to guide you through this process when necessary, so it can tell you when to copy a code block and click Execute.

How we made it safe to trust

Since this tool can modify files in your workspace, we wanted to make sure there were some safeguards in place.

The main design decision is:

ReptClip only touches tracked files. Anything covered by .gitignore cannot be seen or modified by the chatbot through ReptClip.

Edit Blocks also support Undo and Redo.

There are many other checks, too. For example, ReptClip validates search operations before applying changes, applies edits atomically, and aborts if a file changes unexpectedly before the final write.

You can find the implementation details in the README.

Other features

A few other things we have implemented:

  • Toggleable context sections and rough token estimates.
  • Per-project saved UI state and customizable defaults for new projects.
  • Adaptive UI (works in sidebar, panel, under the explorer, etc.).
  • Live autocomplete dropdowns and green/yellow syntax highlighting.
  • Zero runtime dependencies (no Git, a .git folder, grep, whatever).

There's more, but those are the main things worth mentioning.

Acknowledgements

A special thanks to @mansio for his significant contributions to ReptClip. He helped identify and address numerous edge cases and contributed several features that wouldn't have been possible without his contributions!

Trying it out

You can find ReptClip by searching for it in VS Code (or any VS Code-compatible editor) and clicking Install.

I'm particularly curious about what people think of this approach. Would you trust a workflow like this with your codebase? Are there any obvious problems or missing safeguards? Or is manually copying and pasting between the chatbot and the extension too inconvenient to be practical?

Personally, I've been genuinely surprised by how well this works. I even stopped using GitHub Copilot even though it has a free tier, because it felt slower than using a faster Chatbot with ReptClip. In fact, now I build even ReptClip entirely with ReptClip!

I'd love to hear what you think, especially if you spot something we haven't considered!

Links

Thanks for reading! 😊

Top comments (95)

Collapse
 
wiseai profile image
Mahmoud 🦀 •

Hell yeah!

But, don't abuse hard enough because papa will notice and get mad. Abuse, but stay kawaii.

Picked as gem
Collapse
 
effessdev profile image
EffessDev Necoz • • Edited

🤣🤣🤣💯🙏🤣

You got my gem! 💎👍💚🙂‍↕️

Collapse
 
wiseai profile image
Mahmoud 🦀 •

Thanks <3! Much appreciated <3!

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Big thanks to you as well :) 😊

Thread Thread
 
wiseai profile image
Mahmoud 🦀 •

Welcome <3! BTW, Elon Musk is the only person who implemented a proper defense mechanism. Bro banned my entire country from accessing his services.

kawaii services

But, I am using a vpn with proxy chains. Locked-in engineers are unstoppable <3!

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Is that really a proper defense mechanism? 😅 Anyway it's impossible to stop the determined people. 🤣

Thread Thread
 
wiseai profile image
Mahmoud 🦀 •

Elon Musk is very locked in! But, most of the time, he is politically controlled and not very honest. For example, I watched an interview about him saying that he can build a city on the planet Moon. But, most of us know that the Moon is a hollow station and not a planet. So, I am not sure how this would be possible. I also looked at the Moon the other day around the 20s of November, last month, and the brightness was not constant; It was glowing with a fake evil smile on it. I am not sure what is going on with our Moon. It was creepy last month. It is 100% not a planet based on my observations.

Anyways, let's lock in and build awesome projects and let Elon cook the way he wants to.

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Same GIF as @akhourianmolkumar but opposite opinion about Elon Musk 🤣🤣🤣

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

Vroo today apic v2 release maybe?

Thread Thread
 
effessdev profile image
EffessDev Necoz • • Edited

Yep!

Time? ⌚🤔

Collapse
 
francistrdev profile image
FrancisTRᴅᴇᴠ Necoz • • Edited

Collapse
 
effessdev profile image
EffessDev Necoz •

I didn't understand that quite well hehe but I am soo happy to see your comment here ☺️

Collapse
 
effessdev profile image
EffessDev Necoz •

It doesn't make any sense why is your comment always at the top??? 🤯

Collapse
 
technogamerz profile image
𝐓𝐡𝐞 𝐋𝐚𝐳𝐲 𝐆𝐢𝐫𝐥 Necoz •

wow❤️

Collapse
 
effessdev profile image
EffessDev Necoz •

Hi didi! 🙂 Is your fever gone now?

Collapse
 
technogamerz profile image
𝐓𝐡𝐞 𝐋𝐚𝐳𝐲 𝐆𝐢𝐫𝐥 Necoz •

I might recover soon, bye.
Have a great days ❤️🤲🏻

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Good luck didi! 🙋‍♂️

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Good luck why 🤔

Thread Thread
 
effessdev profile image
EffessDev Necoz •

To recover... :)

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Bro didi doesn't have a fever.🤔

Thread Thread
 
effessdev profile image
EffessDev Necoz •

What?

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Image descripthhion

Bro new banner 😀

Thread Thread
 
effessdev profile image
EffessDev Necoz •

New banner means? Which banner? 🤔

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Youtube banner I mean 😀

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Oooh your channel? The one @akhourianmolkumar and you were talking about? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

bro come online discord urgent.

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Ok coming... 👍

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

No, this is a different one this one is just for fun.😀 But bro I have only 300 subs 😑

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Only 300 subs? 300 subs is a lot lol 🤯 You just started out and already 300 subs???

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Not right now, I've been doing it since May or June, bro :(

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Still... it's a lot 😯

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

channel link dedo mujhe mai aashirvaad dunga

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Whatever that means 🤣

Thread Thread
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Bro aap hasoge 😂

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

Nhi hasunga I'm serious person very serious when I'm sleeping

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

cover image
🔥🔥

Collapse
 
effessdev profile image
EffessDev Necoz •

Broo I tried to make that cover image with APIC STUDIO but there is one feature missing so I had to fall back to Affinity...

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

damn it.

Thread Thread
 
effessdev profile image
EffessDev Necoz •

DEV.to banner size is 1000 × 420 pixels right? But how do I create an empty banner of that size in APIC STUDIO? Is it possible? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

yeah custom size in social.

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Before opening an image? 🤔 I wanted an empty image of that size...

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Bro it came on my home feed!!!

Only for me or everybody? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

for me too, bro apic v2 to be released tomorrow or guaranteed sunday
like sunday guaranteed and it may be released tomorrow too
come discord for strategic talk(CTO-CEO) and then 50% (BRO-BRO hehe)

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Ok, tomorrow! 🥳

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

yeah maybe 70%

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Bro why this much uncertainty? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

idk hehe but sunday for sure tomorrow 70% chance
come online discord by 8:50 pls

Thread Thread
 
effessdev profile image
EffessDev Necoz •

👍 (70%)

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

yeah i can maybe..

Thread Thread
 
effessdev profile image
EffessDev Necoz •

🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Necoz •

bro come online

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Hey! 😸

The changelog is finally ready! 🎉

I went through all 31 releases and put together a complete changelog for ReptClip. Now nobody can complain about the missing changelog anymore! 😹

I also added changelog-bot through PR #50.

Once it's merged, you can create a proper Git tag, write your release notes, and run changelog-bot through GitHub Actions to generate future changelog updates.

No AI API keys needed!

Hope you enjoy it! 💚

Collapse
 
effessdev profile image
EffessDev Necoz •

Wow thank you so much @nyaomaru!!! 😸😸😸😸😸 This is really good! Already merged!!! Thanks again! ReptClip finally has a proper CHANGELOG!

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Happy to help! 😸💚

By the way, enabling AI in changelog-bot allows for more refined classification!

Since we were backfilling historical releases, I kept the changelog relatively flat this time. Normally, changelog-bot organizes changes into sections such as Added, Fixed, Changed, Docs, Test, and Chore.

You can also use engines like Jev to extract the WHY behind changes from PR descriptions!

If you have any questions about changelog-bot, feel free to ask me anytime! 🐈🚀

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Thanks! I remember seeing a post with a similar title. Was it yours?

Anyway, thank you so much! I have to figure out how this works a bit more! I'll try adding AI. I have a $0.32 credit balance!

Thread Thread
 
nyaomaru profile image
nyaomaru Necoz •

That might have been mine! 😹
Let's see how far your $0.32 can take you! 😹
Feel free to ask me if you run into any problems! Let's go! 😸💚

Thread Thread
 
effessdev profile image
EffessDev Necoz •

I topped up by ~$ 0.50. I am using gpt-5-nano on MmOrganized.vercel.app. I have been using it for quite a long time, and I still haven't used up even half the credits :) It's really cheap.

Thread Thread
 
nyaomaru profile image
nyaomaru Necoz •

Let me know how it goes if you give it a try! 😸💚

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Next release coming soon. I will need your help 👍 I'll ask before release 😊

Collapse
 
dafili profile image
Renhua Wei •

structured output in a single code block is the assumption I'd attack before the sandbox: free web chatbots cut long generations at their output limit without an error, and a truncated edit block still has complete hunks at the top, so Execute applies those, the trailing rename never happens, and the file you get back is a valid-looking half-state. Require a terminator the model must emit as the last line (block-end: true) and refuse to execute when it's missing — a pasted block whose tail is cut is the one failure your abort if a file changes unexpectedly check cannot see.

Collapse
 
effessdev profile image
EffessDev Necoz •

Oookkkayyy 🤯 Point taken 👍 That makes sense. Even though I use ReptClip every day for coding and have never had my output terminated, this really seems to be a real issue... Will be fixed on the next release. Thank you so much for the suggestion! 🛻 Feel free to point out if anything else you have noticed...

Collapse
 
effessdev profile image
EffessDev Necoz •

Oh I forgot one thing. After generating the code block, the Chatbot is instructed to tell the user to copy it and click Execute:

But your idea will still be implemented because it is more robust!

Thread Thread
 
dafili profile image
Renhua Wei •

The "copy it and click Execute" hint is model output too, so the same cut that eats the block eats that line next — then the user is left with a half-state and no run path. Gate it earlier: parse the fenced block, require block-end: true as the last non-empty line and a closing


 fence, and when either is missing render a "generation cut, retry" state instead of the Execute prompt.
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
effessdev profile image
EffessDev Necoz •

Yes! We will be adding it soon! 😊

Thread Thread
 
dafili profile image
Renhua Wei •

When you wire that fence check, strip trailing whitespace before you read the last line — a block saved with a trailing blank line leaves block-end: true on the second-to-last line and your guard rejects a clean generation. One assert that catches it: body.rstrip().splitlines()[-1] == "block-end: true", run once on a block ending in \n\n and once on one cut mid-line.

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Sure! We already do similar things for block-type. I'll make sure to add it for block-end as well! 😊

Thread Thread
 
dafili profile image
Renhua Wei •

Worth one test when you add block-end: keep its close-sentinel check separate from block-type's — if both share one comparison and the literals differ, a block that opens as type and closes as end passes silently. One assert per block kind catches it.

Collapse
 
antonioprosperi2svg profile image
Antonio Necoz •

Congratulations, I took a peek at the beautiful presentation, it's clear, I sincerely want to try it this evening when I get back from work 🐞🐞🐞

Collapse
 
effessdev profile image
EffessDev Necoz •

Thank you so much!!! 😊 Me and @mansio are working on adding previews when we click "Execute"! Please try it and let me know what you think! 😸 Any features missing that might stop you from using it? Please let me know!

Collapse
 
pratyush_ranjan_roul profile image
Pratyush Ranjan Roul Necoz •

The cover image took my attention 😂

Collapse
 
effessdev profile image
EffessDev Necoz •

👍😆

Collapse
 
aheadkit profile image
AheadKit •

The clipboard as the free channel nobody bills for is genuinely funny, and it works because the loop never asks permission, it just pastes. One thing I'd watch: in our own agent runs we found two correct answers where the agent never saw the fact anywhere in its trace, it just guessed a standard flag from prior knowledge and got lucky. A clipboard loop has the same blind spot, the answer can be right and the trace can't tell you whether the agent actually read anything. Still, free is free, and the loop is the kind of thing that only works until somebody notices.

Collapse
 
effessdev profile image
EffessDev Necoz •

Thanks for the comment! 😊 So you have your own agents as well?! Can you clarify what you meant by "answer"? 🤔

Collapse
 
aheadkit profile image
AheadKit •

Yeah, we run our own agent experiments. Most of our posts are measured runs with real numbers. By 'answer' I just meant the agent's final response to the task: it gave the right flag without ever seeing it in the trace, just guessed it from prior knowledge. The trace looks clean either way, which is the annoying part. Has that ever bitten you with ReptClip, an output that was right for the wrong reason?

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Yeah it used to do it! 😅 Before ReptClip got read blocks and better AI instructions, if we forgot to attach a file, it used to just "guess" what that file might contain and give the diffs. 🤣

But now it has read blocks and explicit instructions to ensure it has the current content of the files it plans to edit. So now it's no longer a problem :)

Collapse
 
sharksevenro profile image
Umasou •

“Only touches tracked files” is a useful blast-radius reduction, but I would avoid treating .gitignore as the trust boundary. A repository can contain tracked files that are still sensitive, and path handling through symlinks or case/normalization differences can surprise otherwise careful edit code.

For a clipboard-driven agent, I’d consider the returned block untrusted input even after the user clicks Execute. A strong UX would show the exact affected paths and a diff preview before the first write, require confirmation again for deletes/moves, and resolve every target against a canonical workspace-root allowlist. Your atomic write and changed-file checks are especially important here.

Have you tested symlinked files/directories and a stale read block followed by an edit? Those seem like high-value adversarial cases for this architecture.

Collapse
 
effessdev profile image
EffessDev Necoz •

Yes yes! Many of @mansio's PR addresses issues related to symlinks! Also, we have the option to add .reptclipignore for exclusions on top of .gitignore. .reptclipignore cannot un-exclude something that .gitignore excludes as well (unless you disable it in settings). We are working on adding a full diff preview before applying. I am doing my final tests and also fixing a small issue. It has confirmation before deletes/moves already (but we'll be removing it in the next version since we already have a full diff preview before applying). Thank you so much for the comment! Anything else you would like to know? 😊 Your diff preview point is correct! We are working on it and will be live soon! ⚡

Some comments may only be visible to logged-in visitors. Sign in to view all comments.