re_gent version control plugin for OpenCode.
Captures agent activity (tool calls, session lifecycle, file changes) so you can run rgt log, rgt blame, and rgt show to inspect what your AI agent did and why.
Then install the package:
cd .opencode && npm install @regent-vcs/opencode-pluginrgt init --agent opencodeThis copies the plugin locally and configures everything automatically.
- rgt must be installed and in your PATH
- Initialize re_gent in your project:
rgt init
| OpenCode Event | re_gent Action |
|---|---|
session.created |
Registers a new session |
chat.message |
Records user prompt (turn boundary) |
tool.execute.after |
Records tool call with input + output |
session.idle |
Finalizes the turn, snapshots workspace, creates a step |
Once installed, re_gent captures activity automatically in the background. Then:
rgt log # View step history
rgt blame <file> # See which prompt produced each line
rgt show <step> # Inspect full tool context for a stepApache-2.0
{ "plugin": ["@regent-vcs/opencode-plugin"] }