← Back to Leaderboard
Rregent-vcs

regent-vcs/re_gent

A local, hook-driven Go CLI that traces AI coding edits back to prompts.

View on GitHub ↗
Engineering Health (Methodology)
A · 78/100
Maintenance Activity
● Updated 23d ago
Latest Release
v1.1.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption13/25
Release Cadence14/20
License Clarity20/20
CLILocal AI
Total Stars
★ 808
24h Growth
+0
7d Growth
+2
Forks
61

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

regent-vcs/re_gent Star History (2026-05-02 - 2026-12-04) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +807 in 216d · avg +4/day 853 427 0 2026-05-02: ★ 12026-05-16: ★ 5112026-05-30: ★ 6322026-06-13: ★ 6772026-06-27: ★ 7502026-07-11: ★ 7672026-07-25: ★ 7742026-08-08: ★ 7752026-08-22: ★ 7792026-09-05: ★ 7862026-09-19: ★ 7912026-10-03: ★ 7942026-10-17: ★ 7982026-10-31: ★ 8022026-11-14: ★ 8062026-12-04: ★ 808 ★ 808 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

re_gent is a hook-driven Go CLI with an entry point at cmd/rgt. A captured tool-using turn becomes a content-addressed Step that links to its predecessor and records a workspace snapshot, tool arguments and results, a session ID, and a timestamp. Steps form a DAG; separate session refs let the histories advance independently and share common ancestors.

The project-local .regent/ directory separates BLAKE3-addressed objects in objects/, session pointers in refs/, a SQLite query index in index.db, and settings in config.toml. SQLite runs in-process through modernc.org/sqlite; Cobra handles commands, go-toml/v2 supports configuration, and go-diff provides Myers diffs. Agent events arrive through hooks rather than a common model API.

Key Capabilities & Differentiators

Use rgt log to find a change in the timeline, rgt blame <file>:<line> to connect a line to a recorded prompt, and rgt show <step-hash> to see the associated diff, tool activity, and conversation. rgt log supports session filtering, graph output, and JSON; rgt sessions lists sessions separately. Recorded conversation history survives /compact and /clear.

Capture covers Claude Code, OpenAI Codex CLI, and OpenCode, with Pi added in v1.1.0. The compatibility boundary is the agent integration, not the underlying model family: Cursor, Cline, and Continue are planned rather than supported. The separate VS Code extension brings line annotations, hover context, and a session timeline into the editor, but still depends on the CLI.

Trade-offs & Limitations

Git remains the source of truth for commits and shared code history. re_gent adds visibility at a different granularity: it records work before it reaches a commit and ties recorded edits to prompts and tool calls. Per-session refs, compare-and-swap ref updates, and ACID transactions protect the audit bookkeeping; they do not prevent two agents from editing the same file. Use separate workspaces if write isolation matters.

Content addressing reduces storage for identical snapshots or blobs, but changing files, transcripts, and tool output still accumulate. Hook coverage determines what can be attributed. Treat .regent/ as sensitive project data, and verify what .regentignore excludes rather than assuming that file ignore rules also redact prompts or tool results.

Hardware & Deployment Guide

Install rgt through Homebrew on macOS or Linux, download a release binary, or run go install github.com/regent-vcs/regent/cmd/rgt@latest. For a source build, the module declares Go 1.23.0 and the build target is ./cmd/rgt. Run rgt init in each project to initialize .regent/ and configure hooks for the chosen agent.

The audit layer uses local files and embedded SQLite: there is no separate database server or GPU requirement. That local footprint does not mean the coding agent or its model runs offline. Release v1.0.0 integrated OpenCode and made hook initialization idempotent; v1.1.0 added rgt init --agent pi, rgt pi-hook, and the npm:@regent-vcs/pi-extension integration, as well as JSON output for rgt sessions.

Capture: Agent hooks turn tool-using turns into Steps with a workspace snapshot and the tool calls behind it.
Storage: .regent/objects/ uses BLAKE3 content addressing to deduplicate identical content; .regent/index.db provides an embedded SQLite query index.
Concurrency: Per-session refs, compare-and-swap updates, and ACID transactions protect history bookkeeping without isolating workspace writes.
Provenance: rgt blame <file>:<line> finds the recorded Step behind a line; rgt show <step-hash> opens the diff, tool details, and conversation context.
Automation: rgt log supports --session, --graph, and --json; v1.1.0 adds JSON output for rgt sessions.
Editor integration: A separate VS Code extension shows inline blame and session timelines on top of an installed, initialized rgt.
Best For

Developers using a supported coding agent who need to investigate regressions, review intermediate edits, or understand a change before committing it to Git.

Skip If

Your agent has no supported integration, or your primary need is shared version control, workspace isolation, or centralized audit retention and access controls.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLILocal AI
# Install via Homebrew (macOS/Linux)
brew tap regent-vcs/tap
brew install regent

# Or via Go
go install github.com/regent-vcs/regent/cmd/rgt@latest

# Initialize in your project
cd your-project
rgt init

# Work with Claude Code, Codex, or OpenCode normally — activity is tracked automatically

# See what happened
rgt log
rgt blame src/file.go:42
rgt show <step-hash>

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
re_gent ★808+2GoApache-2.0A local, hook-driven Go CLI that traces AI coding edits back to prompts.
Codewhale41.2k+38RustMITRust coding agent with swappable models, sandboxed execution, and turn receipts
gemini-cli109.6k+376TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools
oh-my-pi40.5k+483TypeScriptMITA Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/regent-vcs/re_gent.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

regent-vcs/re_gent Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about re_gent

How does an agent turn become a queryable record?

Run rgt init in the project to configure hooks for a supported agent. A captured tool-using turn becomes a Step with a parent pointer, workspace snapshot, tool context, and session ID. The session ref tracks the latest Step, and SQLite indexes the history for queries.

Does re_gent need a GPU, and what drives its resource use?

The Go CLI records and queries history; it does not run model inference and has no GPU or VRAM requirement of its own. Size it for the workspace and the volume of retained snapshots and transcripts. Deduplication reuses identical content, while the coding agent has independent runtime and model requirements.

Can we use or redistribute it commercially and keep the audit data on our own machines?

Yes. Apache-2.0 permits commercial use and modification, subject to its redistribution terms, including applicable license and notice obligations. The CLI and audit store run locally without a separate hosted audit service. Review access and retention for .regent/ independently: it can contain source snapshots, prompts, and tool arguments or results.

What does re_gent provide that Git history and blame do not?

Git answers which commit last changed a line; re_gent can link a line to a captured tool step and its prompt context. Use Git for shared code history and re_gent for what happened inside an agent session, including intermediate changes that never made it into a commit.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining regent-vcs/re_gent? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature regent-vcs/re_gent on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare