Show HN: Git for AI Agents
TL;DR Highlight
re_gent records each agent turn as a Step so you can blame any line to its prompt.
Who Should Read
Developers who delegate coding to Claude Code or Codex and can't trace who changed a line and why.
Core Mechanics
- Agent activity lives in its own .regent/ folder
- It creates a .regent/ directory in your project, like .git/.
- It holds content-addressed objects (BLAKE3), session refs, a SQLite index (index.db), and config.toml.
- Every tool-using turn creates a Step
- A Step stores the parent hash, workspace snapshot, tool name/args/result, session ID and timestamp.
- Each session has its own branch, and Steps form a DAG.
- rgt blame finds the prompt behind a line
- rgt blame src/handler.go:42 shows the Step, session, tool and prompt for that line.
- rgt log shows what a session did, and rgt show gives the full context including the conversation.
- One rgt init sets up the hooks
- Claude Code, OpenAI Codex CLI and OpenCode are supported.
- Cursor, Cline and Continue are planned.
- Conversation history survives /compact and /clear
- The README says Conversation Tracking survives /compact and /clear.
- Concurrent sessions are tracked separately via per-session refs.
- It complements git instead of replacing it
- In the README's comparison table, git tracks code only, while re_gent also tracks agent activity, prompt blame and conversation history.
- The README says to use both.
Community Reactions
- Experience from a jj user doing prompt-level undo
- One commenter argued several prompts often make up one commit, so tracking and undoing between commits at prompt level is useful.
- They already use Jujutsu (jj) auto-commits to diff per prompt and restore chunks, so they won't use this tool.
- Pushback: plain git plus hooks is enough
- Some said a tool-use hook calling git add and git commit solves it.
- One commenter's experience: telling AGENTS.md to read recent commits and ~/.codex/sessions, and having the agent explain things in commit messages, works fine.
- Opinion that the slogan fails to explain the problem
- Many comments asked why another VCS is needed when agents handle git well.
- The view was that people skimmed the blurb and missed the point.
- Requests for comparison and concerns
- Commenters asked how it differs from usegitai.com and entire.io, and said the tests look thin.
- One also worried about Claude Code context consumption.
How to Apply
- Run rgt init on a throwaway project
- In a disposable repo, run brew install regent and then rgt init.
- Do a few Claude Code tasks, then check rgt log and rgt blame file:line.
- Trace a bad change with rgt show
- When a regression appears, use rgt blame to find the Step for that line.
- Run rgt show <step> to see the prompt and tool args, and write down the cause.
- Filter by session when running agents in parallel
- Run rgt sessions to list sessions.
- Use rgt log --session <id> to review one session's history.
- Compare against a git-hook approach
- Run the same task with a tool-use hook that auto-commits.
- Decide on adoption based on how much you need prompt blame.
Try It
# Paste into terminal (macOS/Linux, needs Homebrew). Run in a disposable project folder
brew tap regent-vcs/tap
brew install regent
cd your-project
rgt init
# Now work with Claude Code / Codex / OpenCode as usual, then:
rgt log
rgt sessions
rgt blame src/file.go:42
rgt show <step-hash>Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques