You can’t easily snapshot the current state of an OS and restore to that state like with git.
NixOS still isn't ready for this world, but if it becomes the natural counterpart to LLM OS tooling, maybe that will speed up development.
Also one can simply run a virtual machine which can do that but then the issue becomes in how apps from outside connect to vm inside
This is essentially a UI on top of Claude Code, which supports running in a sandbox on macOS.