r/FunMachineLearning • u/akadeepesh • 21d ago
Zipping my code for Claude by hand turned into a tool. The hard part wasn't the zip
I assumed the useful part would be picking the right files. It turned out to be the trip back. AI tools return a ZIP with paths flattened, or wrapped in an extra folder, or with a file cut short and a comment saying "rest unchanged", and meanwhile I've edited two of those files myself.
So contextzip keeps a snapshot of what it sent and, when the reply comes back, compares three versions of every file: what I sent, what's on disk now, what came back. Clean edits go in, mine are merged around, and anything it isn't sure about waits for me.
It's free and open source: https://github.com/akadeepesh/contextzip. There's a no-install version at https://www.contextzipcli.com if you want to try it on a folder.
