What problem does it solve?
GitMem prevents destructive edit loops by giving AI code agents a separate, traceable history for every file change, so users can recover work instead of losing it during repeated fixes.
Core Features & Use Cases
- Separate edit history: Stores agent changes in .gitmem instead of the main repository history.
- Safe recovery tools: Supports history inspection, diffs, rollback, undo, checkpoints, and whole-project time travel.
- Loop protection: Warns when a file has been changed repeatedly without a stable checkpoint.
- Use case: An agent refactors a module, breaks tests, and the user can quickly compare versions or restore the last working state.
Quick Start
Tell the assistant to use GitMem safe editing on your local git project so it initializes .gitmem if needed, tracks each edit, and keeps changes reversible.