When you use an AI chatbot to help you write code, there's one annoying thing you have to do again and again: show the chatbot the code it needs to understand your project.
Here's what usually happens:
- Find the files you want the AI to look at.
- Open those files and copy their contents.
- Switch to your AI chatbot.
- Paste everything into the chat.
- Explain what you want the AI to do.
- Copy the changes suggested by the AI and put them back into the relevant files in your project.
It works, but doing all of this again and again can get tiring!
Wouldn't it be nice if there were an easier way?
That's exactly why ReptClip was created!
ReptClip is an extension for VS Code. It helps you share your project files with AI chatbots and bring the changes suggested by the AI back into your project.
Instead of copying files one by one, ReptClip collects everything for you and puts it directly into your clipboard.
Instead of editing, moving, creating, or deleting the files manually, you click one button. ReptClip understands what the AI wants to do and performs the right action with just that one click!
And the best part? You can use it with any chatbot you know. You don't need a special AI subscription or a paid coding assistant!
Version 2.3.0 brings many improvements to ReptClip.
This article briefly describes how ReptClip works and covers everything that changed between v2.0.0 and v2.3.0. We were busy with its development and couldn't write about every update separately, so we're bringing all those improvements together in one place!
What does ReptClip actually do?
It connects your VS Code project with an AI chatbot.
Here's how it works:
Step 1: Choose the files you want to share.
ReptClip can collect your project information and the contents of the files you choose. Click one button, and it puts everything together in a neatly organised Markdown document, directly into your clipboard.
Step 2: Send it to your AI chatbot.
Paste this document into your favourite chatbot. Then tell it what you want to do.
Step 3: Let the AI do its thinking.
The chatbot can ask to see more files or suggest changes to your existing code.
Step 4: Let ReptClip handle the response.
The chatbot will generate a code block. Copy it and click the Execute button in ReptClip. ReptClip will handle the rest!
If the chatbot wants to read more files or search the project, ReptClip collects the information and copies it to your clipboard.
If the chatbot wants to change your code, ReptClip applies those changes to the correct files.
You can then paste the result back into the chatbot and continue the conversation!
In short, ReptClip takes care of much of the boring work so you can focus on building your project.
Now, let's look at what's new!
1. One Execute button does everything!
One of the biggest improvements is the way ReptClip understands what the AI wants to do.
Before this update, ReptClip had two separate buttons:
- Read: To collect information from your project and show it to the AI.
- Write: To apply changes suggested by the AI to your project.
The problem was that users had to figure out which button to click.
If they clicked the wrong one, ReptClip would show an error.
That could get confusing, especially when working on bigger tasks.
Now, ReptClip does the thinking for you!
The AI's response starts with a small label that tells ReptClip what kind of job it needs to perform:
-
block-type: readmeans the AI wants to read or search your project. -
block-type: writemeans the AI wants to make changes to your files.
ReptClip checks this label and automatically chooses the correct action.
You no longer need two separate buttons. There's just one Execute button!
Simply copy the AI's entire code block, and click Execute.
ReptClip figures out what needs to happen and does it.
No more guessing, no more choosing the wrong button, and no more unnecessary errors!
2. Better control over which files ReptClip can see
Not every file in a project needs to be shared with an AI chatbot.
For example, you might have:
- Files created automatically by your tools.
- Downloaded libraries and packages.
- Temporary files.
- Build output.
- Private files containing passwords or API keys.
You probably don't want all of these included in the information sent to your chatbot.
ReptClip already understands .gitignore, a special file that tells Git which files should be ignored.
But sometimes, you might want ReptClip to follow a few extra rules of its own.
That's where the new .reptclipignore file comes in!
Meet .reptclipignore!
You can now create a .reptclipignore file inside your project.
It works much like .gitignore, but gives ReptClip its own list of files to leave out.
This is useful when the files you want ReptClip to ignore are different from the files Git ignores.
There's also a new setting called overrideGitignore.
When enabled, it lets .reptclipignore bring certain Git-ignored files back into the list of files ReptClip can read.
This gives developers much better control over which files are included.
A big thank-you to ManSio for contributing these improvements:
-
PR #19 – Added support for
.reptclipignore. - PR #21 – Added the option to bring Git-ignored files back into ReptClip's readable file list.
3. Better protection when changing your files
AI can write code very quickly, but it can also make mistakes.
And when a tool is allowed to change your project files, it's important to make sure it doesn't accidentally damage something.
That's why ReptClip has received several safety improvements.
Here are some examples:
- It follows Git's ignore rules more closely, so it knows which files should be left alone.
- It prevents changes from being written outside the correct project file.
- It makes sure the contents of a file don't accidentally break the information sent to the AI chatbot.
ReptClip now has extra checks to make sure changes stay inside the file they're supposed to modify.
ManSio helped with several important improvements here:
-
PR #8 – Made
.gitignorehandling behave more like Git. - PR #9 – Prevented changes from being written outside the intended file.
- PR #10 – Made sure file contents cannot break the information structure sent to the AI.
These improvements might not be things you notice immediately, but they're very important for keeping your project safe.
Thanks, ManSio!
4. Better and more reliable file searching
Sometimes, the AI chatbot needs to find something in your project before it can help you.
For example, you might ask:
"Can you find where my project handles user login?"
The chatbot can ask ReptClip to search through your files and show it the results.
But searching through lots of files can sometimes take a long time. There can also be problems when a search is split into smaller parts.
ReptClip has fixed two such problems.
Search now has a proper time limit
Previously, the search system used a different trick to control how long a search could run.
Now, ReptClip uses an actual time limit to stop searches from running for too long.
Think of it like setting a timer for a school exam. When time runs out, you know it's time to stop!
Search remembers which folders to look in
ReptClip can split a big search into smaller searches to make the job easier.
However, doing this could sometimes cause it to forget which folders it was supposed to search.
That's now fixed!
ReptClip remembers the selected folders even when a search is split into smaller parts.
Both improvements were contributed by ManSio:
- PR #15 – Added a proper time limit for searches.
- PR #20 – Fixed folder filters when searches are split into smaller parts.
Thanks again, [ManSio]!
5. Apply, Undo, and Redo work better together
Have you ever made a change to something and immediately wished you could go back?
That's why Undo and Redo buttons exist!
ReptClip already supports these actions, but there was an important problem to solve.
Imagine clicking Apply and then quickly clicking Undo before the first operation has finished.
If both operations try to change the same files at the same time, things could get confusing.
ReptClip now makes sure these operations happen one after another instead of interfering with each other.
Think of it like waiting in a queue:
- First, apply the changes.
- Then, undo them if needed.
- Finally, redo them if you want the changes back.
Each operation waits for the previous one to finish.
This makes editing much more reliable and helps prevent unexpected results.
ReptClip also remembers your last 10 applied changes, so you can move backward and forward through them using Undo and Redo.
Contributor credit: ManSio introduced this improvement through PR #11.
Thank you for making an important part of ReptClip even more reliable!
6. Faster performance and better updates
ReptClip has also received some improvements that work quietly in the background.
You might not see them directly, but they help the extension work better.
Collecting files more efficiently
When ReptClip collects information from your project for the first time, it now manages file reading more carefully.
Instead of trying to read everything without controlling how many files are being handled at once, it uses a limited group of workers.
This helps the extension handle large projects more efficiently.
This improvement came from ManSio through PR #17.
7. Make ReptClip follow your own instructions
Different developers work in different ways.
Some projects have special coding rules. Others have specific instructions about how files should be organised or how changes should be made.
That's why ReptClip allows you to customise the instructions given to your AI chatbot.
You can change the AI instructions through the extension's settings.
For example, you could tell the chatbot:
- Always follow the coding style already used in this project.
- Don't change files that aren't related to the task.
- Explain important changes before making them.
- Keep the code simple and easy to understand.
You can also customise which parts of the project information are included when creating context.
This means you can make ReptClip work the way you want instead of having to follow the same rules as everyone else.
8. No extra packages needed!
Here's another interesting thing about ReptClip: it has zero runtime dependencies.
Now, what does that mean?
When developers build software, they sometimes use other software packages to help their own program work.
These packages are called dependencies.
There's nothing wrong with using them, but every extra package is another thing that needs to be maintained and kept working.
ReptClip doesn't need any extra runtime packages to perform its main jobs.
It doesn't even need Git, a .git folder, or the grep command installed to handle its core features!
It can collect files, search through them, and apply changes using its own built-in code.
This has some nice advantages:
- Fewer extra things to install.
- Fewer outside packages to maintain.
- Fewer external components that could introduce security problems.
- Less dependence on other software being installed correctly.
It's a nice example of keeping a developer tool simple and self-contained!
What's next?
ReptClip v2.3.0 is a big step forward for the project.
A lot has changed, and these improvements make the extension easier, safer, and more reliable to use.
Here's a quick look at what we've covered:
- One Execute button: ReptClip automatically understands whether the AI wants to read files or change them.
-
Better file exclusions:
.reptclipignoregives you more control over which files ReptClip can access. - Improved safety: Extra checks help prevent changes from going to the wrong places.
- Better searching: Searches are more reliable and have proper time limits.
- Improved Undo and Redo: Changes are handled in the correct order.
- Better performance: File reading is managed more efficiently.
- Improved testing: Tests run before new versions are released.
- Custom instructions: You can tell the AI how you want it to work.
- Zero runtime dependencies: ReptClip handles its core tasks without needing extra packages.
The main goal hasn't changed: make working with AI chatbots in VS Code easier and less repetitive.
If you regularly copy and paste code into AI chatbots, ReptClip might be just what you need!
A big thank-you to the open-source community!
Open-source software is built by people who share their work and help each other.
Some people report bugs. Others test new features, suggest improvements, review code, or contribute fixes.
Every little bit of help makes a difference!
We'd especially like to thank @ManSio for his contributions to ReptClip.
His work on the following pull requests helped improve many important parts of the extension:
PRs #8, #9, #10, #11, #14, #15, #17, #18, #19, #20, and #21.
These contributions have helped make ReptClip safer, faster, and more reliable.
Thank you, ManSio, for taking the time to help improve the project!
And, of course, thank you to everyone who uses ReptClip, reports problems, shares suggestions, contributes code, or tells others about it.
Open-source projects grow because of people like you!
⭐ Like ReptClip? Give it a star on GitHub!
If ReptClip saves you some time or makes working with AI chatbots easier, here's one small thing you can do to help:
- Visit github.com/effessdev/reptclip
- Click the ⭐ Star button
That's it!
It doesn't cost anything, and it only takes a couple of seconds.
Why does this matter?
When someone discovers ReptClip on GitHub, the number of stars can help them decide whether it's worth checking out.
Every star helps an independent open-source project get a little more attention.
So, if you like what EffessDev is building, please consider giving ReptClip a star!
Thank you for your support!
Top comments (1)
Congrats 🎉👏🏻