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 (14)
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...
Using clipboard handoffs with strict file checks reminds me of passing dielines between design and press at The Printing World. Keeping ignored files out and checking changes before writing saves a lot of mess.
😅
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 😂
👍😆
wow❤️
Hi didi! 🙂 Is your fever gone now?