Git for AI Memory. Prevent hallucinations with save points.
Project description
🧠 AgentGit: Version Control for AI Memory
Stop losing your agent's context.
AgentGit is a lightweight, local version control system designed specifically for AI Agents. It allows LLMs to "commit" their memory state, creating save points they can roll back to if they hallucinate, crash, or get corrupted.
"It's like
gitfor your Agent's brain."
🚀 Why?
AI Memory (RAG, JSON, VectorDBs) is fragile.
- Problem: If an agent overwrites a file with bad data, that knowledge is gone forever.
- Solution: AgentGit snapshots the state of your memory files (
MEMORY.md,knowledge.json, etc.) instantly. - Power Move: Let your Agent self-correct by "undoing" its last action.
📦 Installation
pip install agent-git
(Currently in local beta, install via source)
⚡ Quick Start
1. Initialize
from agent_git import AgentGit
# Start tracking your memory folder
memory = AgentGit(root_dir="./my_agent_workspace")
memory.init()
2. Save State (The "Save Game" Button)
# Did something important? Commit it.
memory.commit(message="Learned about User's preferences", files=["user_profile.json"])
3. Time Travel (The Undo Button)
# Agent messed up? Roll back.
memory.checkout("93a8571")
🛠 CLI Usage
# Initialize
agent-git init
# Save current state
agent-git commit -m "Learned about Blender" MEMORY.md
# View history
agent-git log
# [93a8571] 2026-02-24 : Learned about Blender
# Restore
agent-git checkout 93a8571
🔮 Future Roadmap
- Remote Sync: Push memory to GitHub private repos.
- Auto-Snapshot: Hook into LangChain/AutoGPT loops.
- Diff View: See exactly what the agent forgot.
Built by Moustapha Moussa for the Open Source AI Community.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_git-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_git-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823434217ee0512e92469e7bd3f7014b9d9b4d5c32021fb737eb882bfced8083
|
|
| MD5 |
75724a3399acc6cb47fed96a26a17efa
|
|
| BLAKE2b-256 |
d5c01661ecf902e4d5988c2f3c40dee177d6bff880076bd2d237c0fb19033546
|