Show HN: Git for AI Agents
re_gent adds version control for AI agent activity—tracking every tool call, prompt, and file change automatically, without manual commits, so you can audit or rewind agent sessions.
What Matters
-
Every Claude Code tool call creates a cryptographically linked Step stored in
.regent/using BLAKE3 content-addressed blobs and SQLite indexing. -
rgt blame src/file.go:42returns the exact prompt text that caused a specific line to be written. - Steps form a DAG; each agent session gets its own branch, eliminating merge conflicts from concurrent agents.
-
Conversation history survives
/compactand/clearbecause transcripts are stored per-step, not per-session memory. -
rgt rewind(non-destructive time-travel to any prior step) is listed as coming soon; core commands—init, log, blame, show, sessions—are complete. - ~7,800 LOC Go implementation; VSCode extension provides inline blame annotations via direct SQLite integration, no subprocess overhead.
-
Complements git rather than replacing it;
.regentignoresupport mirrors standard gitignore behavior.