
— Version Control for AI Agent Activity
167 upvotes · #6 Product of the Day — View on Product Hunt
Re_gent steps into one of the most frustrating gaps in modern AI-assisted development: when your coding agent rewrites a dozen files while you step away, there has been no clean way to understand what changed, why it changed, or how to undo it precisely. That gap is exactly what re_gent addresses, bringing Git-style version control not to your code files alone, but to the agent activity that produces them.
Topics: Open Source, Developer Tools, GitHub
Launched on Product Hunt on May 20, 2026, re_gent debuted at #6 with 167 upvotes and 31 comments — a strong signal that this is a problem developers have been quietly frustrated by for a while. The project is open source under the Apache 2.0 license, written in Go, and already sitting at 568 GitHub stars within days of launch.
What Re_gent Does
The tool works by automatically capturing every agent turn and storing it in a .regent/ directory inside your project — analogous to the .git/ directory you already know. Under the hood it uses content-addressed storage with BLAKE3 hashing, a SQLite query index for fast lookups, and a directed acyclic graph structure that handles concurrent agent sessions without collisions. You initialize it once with rgt init, and from that point on, every agent action is recorded automatically. No manual commits needed.
The three commands at the core of the workflow are deliberately simple. rgt log shows the full step history of agent activity in your project. rgt blame traces every line of code to the exact prompt that generated it — not just the diff, but the conversation that caused the diff. rgt show gives you the complete context for any individual change step. Together they answer the question that Git never could: not just what changed, but why it changed and which instruction triggered it.
Rolling back is where re_gent becomes genuinely useful in a crisis. When an agent edits ten files while chasing a bug and introduces regressions along the way, a standard git revert only tells you about the file state — it offers no insight into which prompt in a long session caused the cascade. Re_gent lets you rewind both the code and the conversation context, targeting a specific agent turn rather than a vague file timestamp.




Key Features of Re_gent
- Prompt-level blame: Attributes every line of code to the specific agent prompt that generated it — something no mainstream VCS offers.
- Multi-file rollback across sessions: Agent mistakes rarely touch one file; re_gent handles cascading changes that span an entire session.
- Parallel session support: Each conversation gets its own branch in the DAG, so multiple agent sessions run without history collisions.
- VSCode extension: Inline blame annotations, hover tooltips with step context, session timeline views, and full conversation history access directly in the editor.
- Zero-setup hooks: Running
rgt initauto-configures hooks for supported tools — no manual wiring required. - Audit trail preservation: Unlike message compaction or fresh conversation starts, re_gent captures everything persistently in content-addressed storage.
How Re_gent Compares
Developers already using Git might wonder whether this is redundant. It is not. Git tracks file state at commit points you choose manually. Re_gent tracks agent activity continuously and automatically, capturing the causal chain — which prompt caused which change — that Git simply does not record. When an agent session goes wrong, Git shows you a diff labeled “fix bug.” Re_gent shows you the conversation that produced that diff, and lets you rewind to any point in it.
The alternative most developers currently use is manual: copying project states before a long agent session, scanning chat history, or relying on agent frameworks that sometimes provide partial diffs. That approach is fragile and does not scale as AI agents become more autonomous. Re_gent automates what teams were doing manually and unreliably. For anyone already exploring the broader landscape of AI tools for development and productivity, re_gent fills an infrastructure gap that most tools in that space simply ignore.
Pricing and Open Source Model
Re_gent is free, permanently, under the Apache 2.0 license. There are no paid tiers, no usage caps, and no cloud dependency. You install it locally via Homebrew on macOS or Linux (brew tap regent-vcs/tap && brew install regent), or via Go install. Binary releases are available on the GitHub releases page. The team is actively accepting contributions and maintains an open Discord for the community. For teams evaluating tooling budgets alongside marketing automation software or CRM platforms, re_gent represents a zero-cost addition to the developer stack with no vendor lock-in.
Who Should Use Re_gent
The platform is purpose-built for developers who have already adopted AI coding agents in their daily workflow and have felt the friction when things go wrong. If you run Claude Code, OpenAI Codex CLI, or OpenCode on real codebases, re_gent integrates with all three today. Cursor, Cline, Continue, and Aider support is on the roadmap. The VSCode extension makes it accessible to developers who prefer working visually rather than through CLI commands alone.
Teams working in larger codebases where agents are given broad write access will get the most value — the multi-file rollback and prompt-blame features are most meaningful when changes are complex and sessions are long. Solo developers building with agents who want a cleaner audit trail will also benefit, particularly when returning to a project after a session and needing to understand what the agent did in their absence.
Verdict on Re_gent
Re_gent solves a real problem cleanly. The prompt-to-diff causal link is genuinely novel — no other tool in this space currently offers line-level blame tied to the agent conversation that produced it, and that single feature alone justifies the install. The architecture is sensible: local storage, no cloud dependency, Git-analogous mental model, and automatic capture that requires no discipline from the developer.
The honest limitations: Re_gent complements Git; it does not replace it. Support for Cursor and other popular agent tools is planned but not yet available. And because the audit trail’s value depends on maintaining complete conversation history, workflows that regularly compact or reset agent context will see less benefit.
Those caveats aside, re_gent arrives at exactly the right moment. As AI agents become standard development infrastructure, the lack of version control for their actions has been an obvious liability. Re_gent is the first focused answer to that problem, and at zero cost with an open license, the barrier to trying it is negligible. You can explore the full repository at github.com/regent-vcs/re_gent.
Check out Re_gent on Product Hunt or visit the official Re_gent website to learn more.