SuperAPIAI Directory

re_gent

github.com · AI agents

Version control purpose-built for AI coding agent activity. Auto-captures every agent turn (Claude Code, Codex, OpenCode) as an inspectable step, with `rgt log`, `rgt blame`, and rgt show for auditable, prompt-level history alongside your existing git workflow.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

re_gent is a version control tool designed specifically for AI agents, used to track what an agent did, which prompt wrote which line of code, and to inspect every step of an operation.

Purpose AI agents themselves have no version control. re_gent is designed to solve the following pain points: it was working five minutes ago, why was that file changed, going back to before a refactor, copy-pasting code into a new conversation, etc. It provides git-like auditability for agent activity.

Main capabilities

  • Automatic capture: every agent interaction is captured automatically, with no manual commit required.
  • Three core primitives: rgt log shows what the session did; rgt blame shows which prompt wrote a given line; rgt show inspects the full context of any step.
  • Multi-session tracking: supports tracking multiple concurrent sessions at the same time; each session has its own branch, and common ancestors are automatically deduplicated.
  • Storage mechanism: agent activity is stored in the .regent/ directory, similar to .git/. Every interaction that uses a tool creates a Step, i.e. a content-addressed snapshot recording what was changed, why it was changed, and who requested it. Steps form a directed acyclic graph (DAG), thereby providing git-level auditability.
  • Technical features: content-addressed storage (BLAKE3 hashing, automatic deduplication); fast queries (SQLite index, lookups under 10 milliseconds); per-session DAG (concurrent sessions tracked as independent references); conversation tracking (retained across /compact and /clear); hook-driven (transparent integration with Claude Code, Codex, OpenCode); zero configuration (hooks are configured automatically during rgt init); concurrency safety (CAS references, ACID transactions); gitignore compatibility (supports .regentignore).

Usage

  • Installation: install via Homebrew (macOS/Linux), which installs the rgt command and automatically sets up shell completion for bash, zsh, and fish; prebuilt binaries can also be downloaded from GitHub Releases.
  • Initialization: run rgt init in a project, and hooks are configured automatically with no manual setup required.
  • Common commands: rgt log, rgt blame, rgt show.
  • Editor integration: a VSCode extension is provided that can display inline blame annotations indicating the step that modified each line; hover tooltips showthe full step context (timestamp, tool name, parameters); the sidebar provides a session timeline view; one-click access to conversation history. Requires the rgt CLI to be installed and rgt init to have been run.

Use cases Suitable for users coding and developing with agents such as Claude Code, Codex, and OpenCode, for debugging bad refactors (for example, tracking a billing regression via rgt log, rgt blame, rgt show), auditing agent changes, and understanding change context across sessions. re_gent complements git rather than replacing it, and the two can be used together.

Supported tools Hooks are configured automatically during rgt init, with no manual setup required. Supports Claude Code, Codex, OpenCode.

Limitations and plans The current roadmap (see ROADMAP.md) plans to include: non-destructive rollback and fork operations, more tool adapters (Cursor, Cline, Continue), session sharing and merge support, garbage collection and integrity verification. Specific pricing, billing models, platform restrictions, etc. are not yet provided.

Development and license The tech stack includes cobra (CLI framework), blake3 (BLAKE3 hashing), go-diff (Myers diff), modernc.org/sqlite (pure Go SQLite). Licensed under the Apache License 2.0. Contribution guidelines are in CONTRIBUTING.md, and a quick start is in QUICK_START.md.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools