News for hackers. Stuff that matters.
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by stingraycharles on Wednesday March 25, 2026 @11:42PM (#47526407)
Why a complete rewrite rather than a wrapper around the cli commands?

Also, aren’t LLMs RLHFd a lot with using tools like git and as such have a better time interacting with it than custom tools?

Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by Brian_K_White on Wednesday March 25, 2026 @11:47PM (#47526435)
TFA says there is no difference since it falls through and does act as just a wrapper for anything that it doesn't implement itself.
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by stingraycharles on Thursday March 26, 2026 @12:14AM (#47526585)
But that’s my problem, I don’t want it to implement anything itself, I just want it to transform git output.
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by Brian_K_White on Thursday March 26, 2026 @12:45AM (#47526712)
It's using libgit. IE it is basically still just a wrapper for official reference git implementation. I think you are worried anbout nothing.
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by fielding on Thursday March 26, 2026 @03:02AM (#47527409)
correct
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by 1718627440 on Friday March 27, 2026 @05:34AM (#47540606)
So he didn't 'rebuilt Git in Zig'.
Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by Brian_K_White on Friday April 03, 2026 @08:39AM (#47626000)
The command "git" is a front-end for a lot of other seperate lower level functions, which he reimplimented in zig.

He did some stuff, he didn't do some other stuff. Nothing about this story is automatically invalid or pointless or misleading or unwholesome.

Re:Show HN: Nit – I rebuilt Git in Zig to save AI agents 71%... by yodon on Wednesday March 25, 2026 @11:44PM (#47526419)
It defaults to being a wrapper around git when it's not custom implemented, and it's recommended that you alias nit as git so the agent can work the way it normally would, just faster and cheaper.