re_gent  by regent-vcs

Version control for AI agent activity

Created 3 weeks ago

New!

622 stars

Top 52.6% on SourcePulse

GitHubView on GitHub
Project Summary

re_gent: Version Control for AI Agent Activity

re_gent provides essential version control capabilities specifically for the actions and outputs of AI coding agents. It addresses the critical need for auditability, reproducibility, and traceability in AI-driven development workflows, allowing users to track precisely what an agent did, which prompts generated specific code lines, and enabling rollbacks when issues arise. This tool is invaluable for developers, researchers, and power users leveraging AI agents for code generation and modification, offering enhanced control and understanding of AI-assisted development processes.

How It Works

re_gent operates by storing agent activity within a .regent/ directory, mirroring the structure of Git repositories. It employs content-addressed storage using BLAKE3 hashing for efficient data blobs and a SQLite index for rapid querying, ensuring sub-10ms lookups. Each agent tool call generates a Step object, forming a Directed Acyclic Graph (DAG) of actions. These steps capture the previous state, workspace snapshots, conversation deltas, tool execution details, session ID, and timestamps. This architecture provides Git-level auditability, with each concurrent agent session maintained on its own distinct branch, preventing conflicts and ensuring clear lineage.

Quick Start & Requirements

  • Installation: Install via Homebrew (brew tap regent-vcs/tap && brew install regent) or Go (go install github.com/regent-vcs/regent/cmd/rgt@latest). Shell completions are available.
  • Prerequisites: Go toolchain is required for source builds. No specific hardware or OS dependencies beyond standard Go compatibility are listed.
  • Setup: Initialize re_gent in your project directory using rgt init.
  • Links: GitHub Releases (for VSCode extension), Contributing Guide, POC.md.

Highlighted Details

  • Provides Git-level auditability for AI agent activity, including rgt log for action history and rgt blame for per-line prompt attribution.
  • Automatically captures tool calls, with compatibility noted for Claude Code.
  • Features content-addressed storage (BLAKE3) with automatic deduplication and a fast SQLite index for efficient data management.
  • Offers a VSCode extension for inline blame annotations, hover tooltips with full step context, and a session timeline view.
  • Supports tracking multiple concurrent agent sessions, each on its own branch within the DAG.

Maintenance & Community

The project is under active development, with Phase 3 ("Advanced Features") in progress as of May 2026. Contributions are welcomed, with detailed guidelines available. Community interaction is facilitated through GitHub Discussions and Issues.

Licensing & Compatibility

re_gent is licensed under the Apache License 2.0. This permissive license is suitable for commercial use and integration with closed-source projects.

Limitations & Caveats

The project is not yet at version 1.0, described as having "POC-level feature completeness" despite core functionality being complete. Advanced features such as non-destructive time-travel (rgt rewind) and session branching (rgt fork) are planned for future releases (Phase 3 and 4), indicating they are not yet available. Multi-tool support is also planned for Phase 4.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
15
Issues (30d)
26
Star History
623 stars in the last 27 days

Explore Similar Projects

Feedback? Help us improve.