re_gent records agent steps as a DAG, and its own sample hashes are not valid content addresses
Version control for AI agents — track what your agent did, blame any line to a prompt, inspect any step.
At a glance
- What is it?
- A Go tool that gives coding agents a version control history: three commands to see what a session did, which prompt wrote a line, and what a single step contained. The storage model is a git-shaped directory with per-session branches, and the worked examples in the documentation do not quite match it.
- Who is it for?
- Use re_gent when more than one agent touches the same repository and you need to answer what changed and why, especially across sessions you did not watch. It suits teams already living in Claude Code, Codex or OpenCode, since the capture is hook-driven and needs no manual commits.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 14 days ago.
- What is it written in?
- Mainly Go, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- regent-vcs/re_gent809 ★ · +16
| Repository | 2026-09-11 | 2026-11-25 |
|---|---|---|
| regent-vcs/re_gent | 793 | 809 |
16 Stars in the last 75 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Steps form a DAG, one branch per session
Activity is kept in a directory called `.regent/`, laid out like a git directory and for the same reasons.
.regent/
├── objects/ # Content-addressed blobs (BLAKE3)
├── refs/ # Session pointers (one per agent)
├── index.db # SQLite query index
└── config.tomlEvery turn that uses a tool creates one record, called a Step, holding the parent step hash, a snapshot of the workspace, the causes, the session identifier and a timestamp:
Step {
parent: <previous-step-hash>
tree: <workspace-snapshot>
causes: [{ tool_name: "Edit", args: <input>, result: <output> }]
session_id: "claude_code:claude-20260502-143021"
timestamp: "2026-05-02T14:30:21Z"
}Those steps form a directed acyclic graph rather than a single line. Each session gets its own branch, and common ancestors are deduplicated, so two agents that start from the same state share the work before their branches diverged. The claim made for it is git-level auditability for agent activity, and the complete specification lives in a separate file at the repository root rather than in the README.
Blame prints the prompt that wrote the line
Per-line provenance is the feature the tool is built around, and the output is four fields: the step hash, the session, the tool that ran, and the prompt text itself. Given a line of a Go handler, the answer names the step that introduced it, the session it belongs to, that the tool was an edit, and the exact request that caused it, quoted in full. Note what that means in practice. The prompt is not summarised or embedded, it is stored, so anything you typed into the agent is retrievable from the blame output later. The command takes a path and an optional line number, and the same per-line view is offered for a whole file without one. The step hash printed here is also the handle for the third command, so blame is effectively the index into everything else.
The sample step hashes cannot be content addresses
The worked examples use identifiers that do not match the storage description. In the log listing the step names are seven characters long and contain letters that a hexadecimal digest cannot contain, d4e5f6g and f8g9h0i among them. In the blame output the same kind of value is twelve characters, a1b2c3d4e5f6, and in the step detail the parent is d4e5f6g7h8i9, which again carries g and h where a digest would carry only hex. Since the objects directory is described as content-addressed blobs hashed with BLAKE3, every real identifier is hex, so those samples are illustrative rather than copied from a run, and the length changes between commands as well. One thing to check against your own installation is whether the short form printed by the log command is a prefix of the long form or a different value, since the examples show a step appearing under both.
A session two hours idle is still listed as active
The session list is presented under a heading that calls everything active, and one of the two entries in the example has not done anything for two hours. The columns are the identifier, a step count and a time of last activity, so the information needed to tell a live session from a forgotten one is present, just not used by the heading. The identifier format is worth noting because it is the thing you pass on the command line: it is the tool name, a colon, and then a timestamped name generated by the agent itself, so a Claude Code session and a Codex CLI session from the same morning remain distinguishable even when their timestamps are close. The log command takes that identifier to filter history to one session.
The command layer is a terminal UI on a pure-Go SQLite driver
The module requires Go 1.23 and its direct dependencies describe what the tool is. The command layer is built on cobra, hashing is a BLAKE3 implementation, configuration is read with a TOML library, diffs come from a diff package, and the storage engine is a SQLite driver written in pure Go rather than one that needs a C compiler, which is what lets a single binary ship without a bundle. Underneath sit the pieces of a full-screen terminal interface: a bubbletea runtime, a bubbles component set, lipgloss for styling, and huh for prompts, along with an OSC 52 clipboard library and a console input library for terminals that need one. The interactive queue and any picker are therefore terminal drawing rather than a separate process, and the dependency tree is much larger than the seven direct requirements because that UI stack pulls in its own.
Version stamping is written twice on purpose
The Makefile stamps the build with a version, a commit and a date, and the comment above it says the values mirror the release configuration. Each falls back rather than failing: the version comes from describing the repository, or the word dev outside a checkout, the commit from the short hash or unknown, and the date from the clock in UTC. The three are injected into the version fields of the CLI package. The rest of the targets are the usual set, tests, tests under the race detector, a coverage target that writes a profile and renders an HTML report, lint through golangci-lint, and a format target. That format target is worth noting because it runs on the whole tree rather than on changed files, so a formatting run touches every Go file in the checkout, including generated ones.
Three agents are supported and three are planned
The support table is short and explicit. Claude Code, the OpenAI Codex CLI and OpenCode are all listed as fully supported, while Cursor, Cline and Continue are listed as planned, which is a promise rather than a capability. Nothing has to be configured by hand: running the init command in a project sets up the hooks that capture turns, and the tool claims the rest is automatic, with no manual commits needed for an agent edit to be recorded. Two related behaviours matter for daily use. Conversation tracking is recorded separately from the code, and is described as surviving the compact and clear commands that agents use to reset context, so the reason for a change outlives the chat window. And there is an ignore file for excluding paths, in the same spirit as a gitignore.
The editor extension lives in a second repository
Inline blame in an editor is not built here. There is a separate repository for a VS Code extension, with packaged builds released from its own releases page and a source route as well. The instructions for building it from source run through cloning the repository and changing into the directory, and the command that installs its dependencies ends partway through the word for install, so the steps after that point are not shown. That is the shape of the project in general: the engine and the CLI are here, and the pieces that need their own release cadence are not. The repository root reflects that, with the command directory, an internal directory, and separate folders for documentation, examples, a demo with two small Python files and an OpenCode configuration, scripts, tests and assets.
Editorial conclusion
Use re_gent when more than one agent touches the same repository and you need to answer what changed and why, especially across sessions you did not watch. It suits teams already living in Claude Code, Codex or OpenCode, since the capture is hook-driven and needs no manual commits. Before relying on it, note three limits. Only three agents are supported today, with three more listed as planned. Blame stores the prompt text verbatim, which means your prompts end up in a local database, so read the ignore-file support before you initialise a repository you cannot control. And check which release you installed, since the last tagged version predates the last commit by a month.
Frequently asked questions
What does re_gent store and where?
In a .regent/ directory laid out like a git directory: content-addressed blobs under objects, session pointers under refs, a SQLite query index and a config file. Every tool-using turn creates a Step holding the parent hash, a workspace snapshot, the tool call, the session and a timestamp.
How do steps relate to each other in re_gent?
They form a directed acyclic graph. Each session gets its own branch and common ancestors are deduplicated, so two agents starting from the same state share the work before their paths diverge.
Which agents does re_gent support today?
Claude Code, the OpenAI Codex CLI and OpenCode are fully supported. Cursor, Cline and Continue are listed as planned, and hooks are configured automatically when you run the init command.
Does re_gent keep the prompt text?
Yes. Blame output names the step, the session, the tool and the prompt verbatim, so what you asked the agent is retrievable from the history rather than summarised.
What Go dependencies does re_gent use?
Cobra for the command layer, a BLAKE3 implementation for hashing, a TOML library, a diff package and a pure-Go SQLite driver. Underneath sits a bubbletea terminal UI stack with bubbles, lipgloss and huh, plus OSC 52 clipboard support.
Where does the re_gent editor extension come from?
A separate repository, released as a VSIX for VS Code and also buildable from source. The from-source steps shown end partway through the dependency install command, so the remaining steps are not on the page.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/regent-vcs-re-gent)Star history chart for your README
[](https://hysenlabs.com/projects/regent-vcs-re-gent)Was this useful?