[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-11552":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},11552,"re_gent","regent-vcs\u002Fre_gent","regent-vcs","Version-Control for AI coding agents.","https:\u002F\u002Fre-gent.dev",null,"Go",682,49,3,16,0,17,37,264,51,9.1,"Apache License 2.0",false,"main",[26,27,28,29,30,31],"ai-agent","claude-code","developer-tools","devtools","golang","version-control","2026-06-12 02:02:32","\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\">\n    \u003Cimg\n      src=\"assets\u002Fregent-logo-dark.png\"\n      alt=\"re_gent\"\n      width=\"100%\"\n    \u002F>\n  \u003C\u002Fa>\n  \u003Cbr \u002F>\n  \u003Cbr \u002F>\n  \u003Ch1>Version Control for AI Agents\u003C\u002Fh1>\n  \u003Cp>\n    Track what your agent did, which prompt wrote each line, and inspect any step.\n  \u003C\u002Fp>\n\n[![Star on GitHub](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fregent-vcs\u002Fregent?style=for-the-badge&logo=github&color=gold)](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent)\n[![Apache 2.0 License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-blue?style=for-the-badge)](LICENSE)\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fgo-mod\u002Fgo-version\u002Fregent-vcs\u002Fregent?style=for-the-badge&logo=go&logoColor=white&color=00ADD8)](go.mod)\n\n[![CI Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fregent-vcs\u002Fregent\u002Fci.yml?style=for-the-badge&logo=githubactions&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Contributions Welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FContributions-Welcome-10b981?style=for-the-badge&logo=github)](CONTRIBUTING.md)\n[![Claude Code Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FClaude%20Code-Compatible-6366f1?style=for-the-badge&logo=anthropic&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent) [![Codex Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCodex-Compatible-10b981?style=for-the-badge&logo=openai&logoColor=white)](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent) [![OpenCode Compatible](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FOpenCode-Compatible-ff6b35?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent)\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1503732569622053004?style=for-the-badge&logo=discord&logoColor=white&color=5865F2)](https:\u002F\u002Fdiscord.gg\u002FUnf24KMh)\n\n\u003C\u002Fdiv>\n\n---\n\n## Quick Start\n\n```bash\n# Install via Homebrew (macOS\u002FLinux)\nbrew tap regent-vcs\u002Ftap\nbrew install regent\n\n# Or via Go\ngo install github.com\u002Fregent-vcs\u002Fregent\u002Fcmd\u002Frgt@latest\n\n# Initialize in your project\ncd your-project\nrgt init\n\n# Work with Claude Code, Codex, or OpenCode normally — activity is tracked automatically\n\n# See what happened\nrgt log\nrgt blame src\u002Ffile.go:42\nrgt show \u003Cstep-hash>\n```\n\nThat's it. Your agent activity is now auditable.\n\n---\n\n## Demo\n\n\u003Cdiv align=\"center\">\n \n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fa19b7c56-2e3c-4f04-81a1-d8665e3963b8\n\n\n  \u003Cp>\u003Cem>Every agent turn is automatically captured. No manual commits needed.\u003C\u002Fem>\u003C\u002Fp>\n\u003C\u002Fdiv>\n\n---\n\n## What You Get\n\n### See what your agent actually did\n\n```bash\n$ rgt log\n\nStep a1b2c3d  |  2 min ago  |  Tool: Edit\n│ File: src\u002Fhandler.go\n│ Added error handling to request handler\n│ + 5 lines, - 2 lines\n\nStep d4e5f6g  |  5 min ago  |  Tool: Write\n│ File: tests\u002Fhandler_test.go\n│ Created unit tests for handler\n│ + 23 lines\n\nStep f8g9h0i  |  8 min ago  |  Tool: Bash\n│ Command: go mod tidy\n│ Cleaned up dependencies\n```\n\n### Blame: which prompt wrote this line?\n\n```bash\n$ rgt blame src\u002Fhandler.go:42\n\nLine 42: func handleRequest(w http.ResponseWriter, r *http.Request) {\n\nStep:    a1b2c3d4e5f6\nSession: claude-20260502-143021\nTool:    Edit\nPrompt:  \"Add error handling to the request handler\"\n```\n\n### Track multiple concurrent sessions\n\n```bash\n$ rgt sessions\n\nActive Sessions:\nclaude_code:claude-20260502-143021  |  3 steps  |  Last: 2 min ago\ncodex_cli:codex-20260502-091534     |  7 steps  |  Last: 2 hours ago\n\n$ rgt log --session claude_code:claude-20260502-143021\n# Filter history by session\n```\n\n### See full context for any change\n\n```bash\n$ rgt show a1b2c3d\n\nStep a1b2c3d4e5f6\nParent: d4e5f6g7h8i9\nSession: claude-20260502-143021\nTime: 2026-05-02 14:30:21\n\nTool: Edit\nFile: src\u002Fhandler.go\n\nChanges:\n+ func handleRequest(w http.ResponseWriter, r *http.Request) {\n+     if r.Method != \"GET\" {\n+         http.Error(w, \"Method not allowed\", 405)\n+         return\n+     }\n- func handleRequest(w http.ResponseWriter, r *http.Request) {\n\nConversation:\nUser: \"Add error handling to reject non-GET requests\"\nAssistant: \"I'll add method validation to the handler...\"\n```\n\n---\n\n## Why This Exists\n\nAI agents have no version control of their own.\n\nYou know this pain:\n- *\"It was working five minutes ago\"*\n- *\"Why did you change that file?\"*\n- *\"Go back to before the refactor\"*\n- `\u002Fcompact` and pray\n- Copy-pasting code into a fresh chat\n\nThree primitives that should already exist:\n\n- **`rgt log`** — what did this session do?\n- **`rgt blame`** — which prompt wrote this line?\n- **`rgt show`** — inspect the full context for any step\n\nWe gave agents write access to our codebases. We did not give ourselves git for it. re_gent fixes that.\n\n---\n\n## How It Works\n\nre_gent stores agent activity in `.regent\u002F` (like `.git\u002F`):\n\n```\n.regent\u002F\n├── objects\u002F     # Content-addressed blobs (BLAKE3)\n├── refs\u002F        # Session pointers (one per agent)\n├── index.db     # SQLite query index\n└── config.toml\n```\n\nEvery tool-using turn creates a **Step** — a content-addressed snapshot of what changed, why, and who asked:\n\n```go\nStep {\n  parent:      \u003Cprevious-step-hash>\n  tree:        \u003Cworkspace-snapshot>\n  causes:      [{ tool_name: \"Edit\", args: \u003Cinput>, result: \u003Coutput> }]\n  session_id:  \"claude_code:claude-20260502-143021\"\n  timestamp:   \"2026-05-02T14:30:21Z\"\n}\n```\n\nSteps form a **DAG**. Each session has its own branch. Common ancestors dedupe. You get git-level auditability for agent activity.\n\n**Technical details:** See [POC.md](POC.md) for the complete specification.\n\n---\n\n## Installation\n\n### Via Homebrew (macOS\u002FLinux)\n\n```bash\nbrew tap regent-vcs\u002Ftap\nbrew install regent\n```\n\nThis installs the `rgt` command and automatically sets up shell completions for bash, zsh, and fish.\n\n### Via Go Install\n\n```bash\ngo install github.com\u002Fregent-vcs\u002Fregent\u002Fcmd\u002Frgt@latest\n```\n\n**Shell Completion (manual setup):**\n```bash\n# Bash\nrgt completion bash > \u002Fusr\u002Flocal\u002Fetc\u002Fbash_completion.d\u002Frgt\n\n# Zsh\nrgt completion zsh > \"${fpath[1]}\u002F_rgt\"\n\n# Fish\nrgt completion fish > ~\u002F.config\u002Ffish\u002Fcompletions\u002Frgt.fish\n```\n\n### From Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\ncd regent\ngo build -o rgt .\u002Fcmd\u002Frgt\nsudo mv rgt \u002Fusr\u002Flocal\u002Fbin\u002F\n```\n\n### Binary Releases\n\nDownload pre-built binaries from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Freleases)\n\n---\n\n## Supported Tools\n\n| Tool | Status |\n|------|--------|\n| **Claude Code** | Fully supported |\n| **OpenAI Codex CLI** | Fully supported |\n| **OpenCode** | Fully supported |\n| Cursor, Cline, Continue | Planned |\n\nHooks auto-configure on `rgt init`. No manual setup required.\n\n---\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `rgt init` | Initialize `.regent\u002F` in current directory |\n| `rgt log` | Show step history (supports `--session`, `-n`, `--json`, `--graph`) |\n| `rgt sessions` | List all active sessions |\n| `rgt status` | Show current repository state |\n| `rgt show \u003Cstep>` | Display full context for a step (tool call + conversation) |\n| `rgt blame \u003Cpath>[:\u003Cline>]` | Show per-line provenance for a file |\n| `rgt cat \u003Chash>` | Inspect any object by hash |\n| `rgt version` | Print version information |\n| `rgt completion` | Generate shell completion scripts |\n\n---\n\n## Features\n\n- **Content-Addressed Storage** — BLAKE3 hashing, automatic deduplication\n- **Fast Queries** — SQLite index, sub-10ms lookups\n- **Per-Session DAG** — Concurrent sessions tracked as separate refs\n- **Conversation Tracking** — Survives `\u002Fcompact` and `\u002Fclear`\n- **Hook-Driven** — Transparent Claude Code, Codex, and OpenCode integration\n- **Zero Configuration** — Hooks auto-configure on `rgt init`\n- **Concurrency-Safe** — CAS refs, ACID transactions\n- **Gitignore-Compatible** — `.regentignore` support\n\n---\n\n## Editor Integration\n\n### VSCode Extension\n\nGet inline blame annotations directly in your editor:\n\n```bash\n# From VSIX (Recommended)\n# Download the latest .vsix from:\n# https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fvscode-regent\u002Freleases\n# Then in VS Code: Extensions > ... > Install from VSIX...\n\n# From source (Development)\ngit clone https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fvscode-regent\ncd vscode-regent\nnpm install && npm run compile\n# Press F5 in VS Code to launch Extension Development Host\n```\n\n**Features:**\n- Inline blame annotations showing which step modified each line\n- Hover tooltips with full step context (timestamp, tool name, arguments)\n- Session timeline view in the sidebar\n- One-click access to conversation history\n\n**Requirements:** `rgt` CLI must be installed and `rgt init` run in your project.\n\n[View Extension Docs →](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fvscode-regent)\n\n---\n\n## re_gent vs Git\n\n| | Git | re_gent |\n|---|---|---|\n| **Tracks code** | ✅ | ✅ |\n| **Tracks agent activity** | ❌ | ✅ |\n| **Blame with prompt** | ❌ | ✅ |\n| **Conversation history** | ❌ | ✅ |\n| **Concurrent sessions** | ⚠️ shared workspace conflicts | ✅ separate captured session refs |\n| **Purpose** | Developer VCS | Agent audit trail |\n\n**re_gent complements git, doesn't replace it.** Use both.\n\n---\n\n## Roadmap\n\nSee [ROADMAP.md](ROADMAP.md) for planned features including:\n- Non-destructive rewind and fork operations\n- Additional tool adapters (Cursor, Cline, Continue)\n- Session sharing and merge support\n- Garbage collection and integrity verification\n\n---\n\n## Contributing\n\nContributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n**Quick Start:**\n- [QUICK_START.md](.github\u002FQUICK_START.md) — 5-minute setup guide\n- [Good first issues](https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Flabels\u002Fgood%20first%20issue)\n\n**Before opening a PR:**\n- [ ] Tests pass: `go test .\u002F...` and `go test -race .\u002F...`\n- [ ] Linter passes: `golangci-lint run`\n- [ ] Code formatted: `go fmt .\u002F...`\n\n---\n\n## Built With\n\n- [cobra](https:\u002F\u002Fgithub.com\u002Fspf13\u002Fcobra) — CLI framework\n- [blake3](https:\u002F\u002Flukechampine.com\u002Fblake3) — BLAKE3 hashing\n- [go-diff](https:\u002F\u002Fgithub.com\u002Fsergi\u002Fgo-diff) — Myers diff\n- [modernc.org\u002Fsqlite](https:\u002F\u002Fmodernc.org\u002Fsqlite) — Pure Go SQLite\n\n---\n\n## License\n\n[Apache License 2.0](LICENSE)\n\n---\n\n\u003Cdiv align=\"center\">\n  \u003Cp>\n    \u003Csub>Built by \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Fgraphs\u002Fcontributors\">contributors\u003C\u002Fa>\u003C\u002Fsub>\n  \u003C\u002Fp>\n  \u003Cp>\n    \u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FUnf24KMh\">Discord\u003C\u002Fa> •\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Fdiscussions\">Discussions\u003C\u002Fa> •\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fregent-vcs\u002Fregent\u002Fissues\">Issues\u003C\u002Fa> •\n    \u003Ca href=\"POC.md\">Technical Spec\u003C\u002Fa>\n  \u003C\u002Fp>\n\u003C\u002Fdiv>\n","re_gent 是一个专为AI编码助手设计的版本控制系统。它能够追踪AI助手在代码中的每一次操作，包括每行代码是由哪个提示生成的，并支持审查每个步骤的具体内容。项目采用Go语言开发，具备自动捕获AI活动、无需手动提交的特点，同时兼容Claude Code、Codex和OpenCode等主流AI编码工具。适用于需要对AI参与的软件开发过程进行透明化管理和审计的场景，如团队协作开发、代码质量保证等。通过简单的命令行接口，用户可以初始化项目、查看历史记录以及追溯特定代码行的来源，从而提高开发效率与代码可维护性。",2,"2026-06-11 03:32:04","CREATED_QUERY"]