re_gent: Git for AI Coding Agents – Version Control for Agent Activity

✍️ OpenClawRadar📅 Published: May 8, 2026🔗 Source
re_gent: Git for AI Coding Agents – Version Control for Agent Activity
Ad

re_gent is an open-source version control system designed specifically for AI coding agents. It automatically captures every tool call an agent makes — file edits, shell commands, etc. — along with the conversation context that triggered them. Think of it as Git for your agent's actions.

Key Features

  • Automatic tracking: No manual commits. Every tool call is captured as a Step (parent hash, workspace snapshot, conversation delta, tool name and args, session ID, timestamp).
  • rgt log: See what the agent did — file changes, line counts, timestamps, and the causing prompt.
  • rgt blame <file>:<line>: Identify which prompt wrote a specific line, which session, and which tool.
  • rgt rewind (coming soon): Restore workspace to any previous step.
  • Multi-session awareness: rgt sessions lists active sessions; rgt log --session <id> filters by session.
  • rgt show <step-hash>: Full context for a step — diff, conversation, timestamp.
Ad

Installation

# Homebrew (macOS/Linux)
brew tap regent-vcs/tap
brew install regent

Or via Go

go install github.com/regent-vcs/regent/cmd/rgt@latest

Then initialize in your project directory with rgt init. Shell completions for bash, zsh, and fish are included.

How It Works

Agent activity is stored in .regent/ (like .git/):

  • objects/ — content-addressed blobs (BLAKE3)
  • refs/ — session pointers
  • index.db — SQLite query index
  • config.toml

Steps form a directed acyclic graph (DAG). Each session is its own branch; common ancestors are deduplicated. The tool currently supports Claude Code — contributions welcome for other agents.

For the full specification, see POC.md in the repository.

📖 Read the full source: HN AI Agents

Ad

👀 See Also