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

I built a tool to apply Claude's code edits without full file rewrites — saves tokens on the free tier

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.

GitHub: https://github.com/Supull/claudepatch