I built a tool to apply Claude's code edits without full file rewrites — saves tokens on the free tier
Posted by Kindly_Group292@reddit | LocalLLaMA | View on Reddit | 7 comments
Claude's free tier and pro tier has limits. Every time you ask it to edit a file it rewrites the whole thing — burning tokens just to change 3 lines.
I built claudepatch to fix this. You give Claude a prompt that makes it output only the changed part, then a script applies it to your file precisely. No second AI, no guessing, just exact string matching.
Supports replace, add, and delete. Works on any text file — .py, .tsx, .html, .css, anything.
Works with ChatGPT as well.
ttkciar@reddit
This is off-topic for LocalLLaMA. You might want to post instead to r/LLMDevs or r/ClaudeAI.
CalligrapherFar7833@reddit
Claude code doesnt rewrite the full file
Kindly_Group292@reddit (OP)
It does tho or it just says to edit a certain line on my own or it gives the whole file again.
CalligrapherFar7833@reddit
You are not using claude code then you are using claude web
Kindly_Group292@reddit (OP)
Yes I just realized I should have mentioned that.
bannert1337@reddit
You build claudepatch to fix this?
Kindly_Group292@reddit (OP)
Claude built obviously