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

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

GPT 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 GPT 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.

Mainly tested on Claude but works for ChatGPT as well.

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

submitted by /u/Kindly_Group292
[link] [comments]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top