re_gent
Version control for AI agent activity — track what your agent did, which prompt wrote each line, and rewind when things break.
At a Glance
About re_gent
re_gent is an open-source CLI tool that brings version control to AI coding agents, functioning like Git but specifically designed to audit and track agent activity. It captures every tool call made by agents like Claude Code, recording which prompt wrote each line of code and preserving full conversation history. Built in Go and licensed under Apache 2.0, re_gent stores agent activity in a .regent/ directory using content-addressed storage (BLAKE3) and a SQLite index for fast queries.
rgt log— View a chronological history of every tool call made in a session, including file edits, writes, and bash commands.rgt blame— See per-line provenance for any file, showing exactly which prompt and step introduced each line of code.rgt sessions— List and filter all active or past agent sessions, supporting concurrent multi-agent workflows without conflicts.rgt show— Display full context for any step, including the tool call arguments, diff, and the conversation that triggered it.rgt rewind— Non-destructive time-travel to restore the workspace to any previous step (coming soon).- Content-Addressed Storage — Uses BLAKE3 hashing for automatic deduplication of objects across sessions.
- Per-Session DAG — Each agent session maintains its own branch in a directed acyclic graph, enabling concurrent agents with no merge conflicts.
- Conversation Tracking — Persists conversation history across
/compactand/clearoperations in Claude Code. - VSCode Extension — Provides inline blame annotations, hover tooltips with step context, and a session timeline sidebar directly in the editor.
- Hook-Driven Integration — Transparently integrates with Claude Code via hooks; no manual commits or workflow changes required.
- Shell Completion — Supports bash, zsh, and fish completions, installable via Homebrew or manually after
go install. - Gitignore-Compatible — Supports
.regentignoreto exclude files from agent tracking, mirroring familiar Git conventions.
Community Discussions
Be the first to start a conversation about re_gent
Share your experience with re_gent, ask questions, or help others learn from your insights.
Pricing
Open Source
Fully free and open-source under Apache License 2.0. Free to use, modify, and distribute.
- Full CLI (rgt init, log, blame, sessions, show, status)
- Content-addressed object storage
- SQLite query index
- Claude Code hook integration
- VSCode extension
Capabilities
Key Features
- Step-by-step agent activity log
- Per-line blame with prompt attribution
- Multi-session DAG tracking
- Conversation history persistence
- Content-addressed storage with BLAKE3
- SQLite index for sub-10ms queries
- VSCode extension with inline blame
- Shell completions (bash, zsh, fish)
- Homebrew installation support
- Hook-driven Claude Code integration
- Concurrency-safe CAS refs and ACID transactions
- .regentignore support
