re_gent: Git-like version control for AI agents
re_gent is an open-source tool that provides version control for AI agent activity, tracking every tool call and prompt. It stores agent actions in a .regent/ directory using a DAG structure with BLAKE3 hashing and SQLite indexing. Key commands include rgt log, rgt blame, and rgt rewind (coming soon). It supports concurrent sessions, deduplication, and integrates with Claude Code via hooks. The project is built in Go (~7.8k LOC) under Apache License 2.0, with a VSCode extension for inline blame annotations. It complements git without replacing it.
Key facts
- re_gent provides version control for AI agent activity
- Every tool call is automatically captured without manual commits
- Uses .regent/ directory similar to .git/
- Steps form a DAG with per-session branches and deduplication
- Commands: rgt log, rgt blame, rgt rewind (coming soon)
- Built in Go with ~7.8k lines of code
- Licensed under Apache License 2.0
- VSCode extension provides inline blame annotations
Entities
Institutions
- GitHub