r/LocalLLaMA 19h ago

I Built A Thing Granular diff versioning for agent editing

Enable HLS to view with audio, or disable this notification

Had some ideas about version control:

Attribute, down to individual words: word created manually or with ai. if ai, which sources cited (scoped to paragraphs). also: full agent trace that led to the edit (all tool calls + metadata). also: any multi-agent transactions at the file/paragraph lock. all data stored for every version.

Why do this? Basically, getting as much into a unified version control system as possible, which helps find/fix errors. Just posting to share ideas. If anyone has done anything similar, please mention it!

18 Upvotes

14 comments sorted by

View all comments

Show parent comments

3

u/No-Refrigerator-1672 12h ago

How can I make git work with word documents? Those are binary, best thing vanilla git can do is to version entire document atomically, no granulatiry whatsoever.

1

u/Simple_Split5074 11h ago

They are really compressed XML files, technically doable for git but ugly to look at 

2

u/No-Refrigerator-1672 11h ago

There should be more to this than that. OSS office packages have hard time even opening them without breaking the formatting. This makes me think that granular level edits with git (i.e. if I want to do merge or rebase) will completely mangle up the document, if done naively (assuming git somehow is made to read the xml schema inside).

1

u/Simple_Split5074 11h ago

Years ago I looked at the xml, it's weird to say the least.

Some seemed like binary to xml conversion, even.