Here's a simplified look at what happens behind the scenes when an AI agent works:
- You type a prompt and hit Send.
- The harness adds additional context such as project details, tools, and instructions to your prompt.
- The LLM processes everything and generates structured output.
- The harness executes that output, collects the results, and sends them back to the LLM.
- 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.
- Click the Context button to copy the initial context to your clipboard. Paste it into your chatbot, enter your prompt, and hit Send.
- The chatbot generates the required structured output in a single code block.
- Copy that code block and click Execute.
There are two main types of output:
-
Edit Block (header:
block-type: edit): This can edit, move, rename, delete, and create files. -
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
.gitignorecannot 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
.gitfolder,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)
Hell yeah!
But, don't abuse hard enough because papa will notice and get mad. Abuse, but stay kawaii.
🤣🤣🤣💯🙏🤣
You got my gem! 💎👍💚🙂↕️
Thanks <3! Much appreciated <3!
Big thanks to you as well :) 😊
Welcome <3! BTW, Elon Musk is the only person who implemented a proper defense mechanism. Bro banned my entire country from accessing his services.
But, I am using a vpn with proxy chains. Locked-in engineers are unstoppable <3!
Is that really a proper defense mechanism? 😅 Anyway it's impossible to stop the determined people. 🤣
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.
Same GIF as @akhourianmolkumar but opposite opinion about Elon Musk 🤣🤣🤣
Vroo today apic v2 release maybe?
Yep!
Time? ⌚🤔
I didn't understand that quite well hehe but I am soo happy to see your comment here ☺️
It doesn't make any sense why is your comment always at the top??? 🤯
wow❤️
Hi didi! 🙂 Is your fever gone now?
I might recover soon, bye.
Have a great days ❤️🤲🏻
Good luck didi! 🙋♂️
Good luck why 🤔
To recover... :)
Bro didi doesn't have a fever.🤔
What?
Bro new banner 😀
New banner means? Which banner? 🤔
Youtube banner I mean 😀
Oooh your channel? The one @akhourianmolkumar and you were talking about? 🤔
bro come online discord urgent.
Ok coming... 👍
No, this is a different one this one is just for fun.😀 But bro I have only 300 subs 😑
Only 300 subs? 300 subs is a lot lol 🤯 You just started out and already 300 subs???
Not right now, I've been doing it since May or June, bro :(
Still... it's a lot 😯
channel link dedo mujhe mai aashirvaad dunga
Whatever that means 🤣
Bro aap hasoge 😂
Nhi hasunga I'm serious person very serious when I'm sleeping
cover image
🔥🔥
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...
damn it.
DEV.to banner size is
1000 × 420 pixelsright? But how do I create an empty banner of that size in APIC STUDIO? Is it possible? 🤔yeah custom size in social.
Before opening an image? 🤔 I wanted an empty image of that size...
Bro it came on my home feed!!!
Only for me or everybody? 🤔
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)
Ok, tomorrow! 🥳
yeah maybe 70%
Bro why this much uncertainty? 🤔
idk hehe but sunday for sure tomorrow 70% chance
come online discord by 8:50 pls
👍 (70%)
yeah i can maybe..
🤔
bro come online
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! 💚
Wow thank you so much @nyaomaru!!! 😸😸😸😸😸 This is really good! Already merged!!! Thanks again! ReptClip finally has a proper CHANGELOG!
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, andChore.You can also use engines like
Jevto extract the WHY behind changes from PR descriptions!If you have any questions about changelog-bot, feel free to ask me anytime! 🐈🚀
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!
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! 😸💚
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.
Let me know how it goes if you give it a try! 😸💚
Next release coming soon. I will need your help 👍 I'll ask before release 😊
structured output in a single code blockis 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 yourabort if a file changes unexpectedlycheck cannot see.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...
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!
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: trueas the last non-empty line and a closingYes! We will be adding it soon! 😊
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: trueon 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\nand once on one cut mid-line.Sure! We already do similar things for block-type. I'll make sure to add it for block-end as well! 😊
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.
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 🐞🐞🐞
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!
The cover image took my attention 😂
👍😆
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.
Thanks for the comment! 😊 So you have your own agents as well?! Can you clarify what you meant by "answer"? 🤔
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?
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 :)
“Only touches tracked files” is a useful blast-radius reduction, but I would avoid treating
.gitignoreas 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.
Yes yes! Many of @mansio's PR addresses issues related to symlinks! Also, we have the option to add
.reptclipignorefor exclusions on top of.gitignore..reptclipignorecannot un-exclude something that.gitignoreexcludes 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.