Git for agent-made video: hands-on with v2 (v2.video)
v2 launched on November 27 as version control for videos made by coding agents: git tracks the recipe, a content-addressed store keeps the footage, and any cut comes back byte for byte. This tutorial installs the CLI, saves two cuts, compares them in the browser, and restores the first — verified on a 2-core sandbox with no account and no API key.
- It is five days old: the repo was created November 23, the tool launched November 27, and by November 28 it had 307 stars and 24 forks on 3 commits — MIT licensed, built by Riley Brown and Shrey Gupta.
- Local first, no key: install, init, import, save, diff, and restore all run with no account and no API key. Only
v2 loginandv2 pushtouch the hosted site. - Verified end to end here: v1 is a 12.07-second render (8,205,812 bytes, SHA-256
79928de3…), v2 is 6.07 seconds (4,158,244 bytes), andv2 restore v1returned the first render's exact bytes, recorded as v3. - The design is two trackers: git for the recipe,
.v2/objectsfor binaries by SHA-256, and a git-trackedassets.jsonmapping each path to its hash — so git history knows the exact bytes of every version without storing them. - The catch on Linux: ext4 has no reflink, so each save copies bytes. This tutorial's 43 MB project held 25 MB in
.v2for 26 MB of unique media. On macOS, APFS clones make restores nearly free.

Ask a coding agent to edit a video and it does what agents do: it rewrites files. A render comes out, you ask for a tighter cut, another render comes out — and the first one is gone. The usual recovery is a folder full of final.mp4, final_v2.mp4, final_v2_REAL.mp4, none of which records what you asked for, which model did the work, or what changed between cuts. Git would solve the history half, except git chokes on gigabyte binaries. And re-rendering is not a recovery at all: image, voice, and music generators do not return the same output twice, and running them again costs money.
v2 is the tool that closes that gap. It launched on November 27 from Riley Brown and Shrey Gupta — Brown calls it "GitHub for agentic video editing" — as a small Go CLI with a simple split: text goes through git, media goes into v2's own content-addressed store, and every save records the prompt that asked for it and a plain-language list of what changed. v2 diff opens every version in the browser to watch, compare, and leave timed comments; v2 restore vN brings any version back exactly, as a new version, so history only moves forward. The CLI is MIT licensed, the hosted sharing at v2.video is free at launch, and the repository (agentnativeinc/v2) is five days old with 307 stars — young enough to be honest about, solid enough to run today.
This tutorial does the whole loop with real files: install, init, import, two saves, a browser diff, and a byte-exact restore. No coding agent is needed for the walkthrough — you play the agent's part with three ffmpeg commands — and no account is created anywhere.
What you'll need#
- macOS or Linux. There is no Windows build yet. This tutorial ran on Linux (x86-64).
- Git and ffmpeg on your PATH. v2 shells out to both and prints a clear error if either is missing. This sandbox had git 2.43.0 and ffmpeg 8.1.2.
- A coding agent (optional for this walkthrough, required for the real workflow). v2 writes an
AGENTS.mdthat teaches Claude Code or Codex to save after each edit. Below, you run the agent's steps by hand so every command is visible. - About 50 MB of disk for the demo project, and a few minutes. No GPU, no model download, no API key.
- Go and Node 24 only if you build from source. The install below uses the signed release binary instead — the documented path.
Step 1 — Install v2#
The documented install is one command:
curl -fsSL https://v2.video/install.sh | sh
Before piping anything to a shell, read it. I downloaded it first and read all 3,381 bytes: it detects macOS or Linux (64-bit Intel, AMD, or ARM), downloads the matching binary and a checksums.txt from https://v2.video/releases/latest/, verifies the SHA-256 of the download against that file, and installs the binary to ~/.local/bin/v2, adding that directory to PATH in ~/.bashrc if it is not there already. Nothing else is installed and nothing is run as root. If you prefer, download the script, read it, and run the local copy — that is what I did:
curl -fsSL -o install.sh https://v2.video/install.sh
sh install.sh
Expected output:
Downloading v2...
Installed v2 version v0.11.3 to /home/hatch/.local/bin/v2
Verify the install and see the full command list:
v2 --version
v2 --help
v2 --version prints v2 version v0.11.3. The binary is a single 8,929,440-byte static executable. The commands that matter for this tutorial are init, import, save, log, diff, comments, restore, and push; clone, login, logout, publish, unpublish, update, and completion cover sharing and maintenance. v2 update replaces the binary with the latest release after checking it against v2.video's signature.
Step 2 — Start a project with v2 init#
Make a folder for the video and initialize it there — never in your home directory, Desktop, Documents, or Downloads. v2 refuses those outright, and I verified the refusal:
mkdir promo-cut && cd promo-cut
v2 init
v2 project ready in /home/hatch/.../promo-cut
media goes in assets/, the edit in src/, steps in scripts/, the render in out/
Run from ~, init fails with Error: v2 won't track all of /home/hatch; make a folder for this video (mkdir my-video && cd my-video) and run v2 init there and exits 1. The guard exists because init would otherwise sweep your whole home folder into the store.
Init creates a small, deliberate layout:
promo-cut/
├── .git/ # v2 initializes a git repo if there isn't one
├── .gitignore # v2-managed: .v2/objects/, /assets/, /out/
├── .v2ignore # never saved: caches, .env, keys, scratch
├── .v2/
│ ├── assets.json # path → {sha256, size, source}, git-tracked
│ ├── config.json # {"assemble": "", "render": "out/final.mp4"}
│ └── objects/ # binaries, stored once, named by sha256
├── AGENTS.md # instructions for your coding agent
├── CLAUDE.md # points at AGENTS.md
├── README.md # first line is the video's title
├── assets/imported/ # footage you bring in
├── assets/generated/ # what AI or scripts make
├── assets/scratch/ # working files, never saved
├── out/ # the render
├── scripts/ # steps that make files
└── src/ # the edit
Two details are worth knowing before you go further. First, init also writes a v2-managed block into .git/info/exclude — local-only, never committed — so git never sees the binaries even if your .gitignore does not mention them. If the folder is already a git repo, init keeps its history and never edits .gitignore. Second, .v2/config.json is the one file inside .v2/ you are meant to edit by hand: assemble is the command that renders the final video, render is the file it produces, defaulting to out/final.mp4.

That split is the whole design. Git tracks the recipe — every text file, plus assets.json, which maps each binary's path to its hash, size, and source (imported or derived). The store holds every binary exactly once, under its SHA-256. Git history therefore knows which exact bytes belonged to each version without ever storing them, and a restore can verify it got the exact bytes back — the store re-hashes before placing a file, so corrupted bytes are never handed back. The project's own design notes (docs/decisions.md in the repo) record that they tested git-lfs and git-annex side by side on the same scenario — a 2 GB clip replaced by a 500 MB one, then a restore of the first — and kept their own store because LFS and unlocked annex added about 4.3 GB of overhead in that test, locked annex made files read-only symlinks an agent cannot re-render in place, and thin annex let an in-place edit destroy the stored bytes.
Step 3 — Import footage#
Footage enters through v2 import, which copies each file into assets/imported/ and records its hash. Use your own clip, or generate a test clip the way I did — 20 seconds of 1080p test footage with a tone, so the whole walkthrough is reproducible without any camera:
ffmpeg -y -f lavfi -i testsrc2=size=1920x1080:rate=30:duration=20 \
-f lavfi -i "sine=frequency=440:duration=20" \
-c:v libx264 -preset veryfast -crf 23 -pix_fmt yuv420p -c:a aac -shortest /tmp/clip.mp4
v2 import /tmp/clip.mp4
imported assets/imported/clip.mp4
The clip is 13,642,725 bytes and exactly 20.000 seconds. Check what import recorded:
cat .v2/assets.json
{
"assets/imported/clip.mp4": {
"sha256": "a39246dbd77c4d45b0b427c03b57d1db25095e934ad8bc8a46642b91bcf881d6",
"size": 13642725,
"source": "imported"
}
}
The bytes live once in the store, at .v2/objects/a3/9246dbd77c4d45b0b427c03b57d1db25095e934ad8bc8a46642b91bcf881d6 — the first two hex characters of the hash as a directory, the rest as the filename. If a file with the same name but different bytes is already in assets/, import refuses and points you at --as <name>; identical bytes are a no-op. That refusal is deliberate: silently suffixing or overwriting would leave the agent's code pointing at the wrong clip.
Step 4 — Teach v2 how to render#
v2 does not edit video. Your render tool does — ffmpeg, Remotion, HyperFrames, Blender, whatever the agent drives — and v2 records the command that rebuilds the final video. For this walkthrough the "edit" is a small shell script that takes the first N seconds of the imported clip, with N read from src/cut.txt so the cut itself is a text file git can track:
cat > scripts/assemble.sh <<'EOF'
#!/bin/sh
# Renders out/final.mp4: first N seconds of the imported clip, N from src/cut.txt
set -eu
CUT=$(cat src/cut.txt)
ffmpeg -y -v error -i assets/imported/clip.mp4 -t "$CUT" -c copy out/final.mp4
EOF
chmod +x scripts/assemble.sh
echo 12 > src/cut.txt
Point v2 at it by editing .v2/config.json:
{
"assemble": "./scripts/assemble.sh",
"render": "out/final.mp4"
}
One behavior to learn now, not later: v2 save does not render. I tested it — saving with the assemble command set but no render on disk still succeeds and records the version. The render is your job (or your agent's); v2's job is to record that it happened and what command did it. Render first, then save:
./scripts/assemble.sh
ffprobe -v error -show_entries format=duration -of csv=p=0 out/final.mp4
sha256sum out/final.mp4
12.066667
79928de334e8620a02310cdea0e08239b87f5b86100f11be316e6431cf6ed95a out/final.mp4
The render is 12.07 seconds, not 12.00: -c copy cuts on keyframes, so the trim lands on the nearest keyframe past 12 seconds. If frame-exact cuts matter, drop -c copy and re-encode. Keep the hash — it is the proof in Step 9 that the restore is exact.
Step 5 — Save your first version#
A save needs three things: a one-line message, at least one --prompt (the user's message that asked for this version, copied word for word), and at least one --change describing what changed, with the time in the new video. The change format is "start-end kind path: what changed", where the kind is one of text, captions, graphics, video, voice, music, or sfx:
v2 save -m "first cut: opening 12 seconds" \
--prompt "cut the first 12 seconds of the clip into the opening" \
--change "0:00-0:12 video assets/imported/clip.mp4: first 12 seconds of the raw clip"
saved v1 (9 files, 2 binaries)
That one command did four things: it hashed the two binaries (the imported clip and the render) into the store, wrote the version record, made a git commit titled v1: first cut: opening 12 seconds, and tagged it v1. The record lives in .v2/commit.json:
{
"version": "v1",
"message": "first cut: opening 12 seconds",
"prompts": ["cut the first 12 seconds of the clip into the opening"],
"changes": [
{"from": 0, "to": 12, "kind": "video",
"src": "assets/imported/clip.mp4",
"text": "first 12 seconds of the raw clip"}
],
"assemble": "./scripts/assemble.sh",
"saved_at": "2026-11-28T19:18:40Z"
}
Two refusals are worth knowing, because your agent will hit them. Save without a --prompt fails outright — Error: save needs at least one --prompt: the user's message that asked for this version, word for word — and a --change naming a file the project does not have fails with Error: nothing saved: --change names assets/nope.mp4, which isn't in the project. Both exit 1 and create no version. I verified both; the log still ended at the last good version afterwards.
Step 6 — Tighten the cut and save v2#
Now the loop a real session repeats: change the edit, re-render, save. Tighten the opening from 12 seconds to 6:
echo 6 > src/cut.txt
./scripts/assemble.sh
ffprobe -v error -show_entries format=duration -of csv=p=0 out/final.mp4
sha256sum out/final.mp4
6.066667
fa4b54d1d235518beda8b2e4652ecec335ee5260fe514b7473d214d6465af0df out/final.mp4
Save it with the cut form of a change — cut <where it now sits> <seconds removed>s <what was removed>:
v2 save -m "tighter opening: 6 seconds" \
--prompt "tighten it to 6 seconds" \
--change "cut 0:06 6s removed the back half of the opening shot"
saved v2 (9 files, 2 binaries)
Save again without changing anything and v2 tells you so instead of minting an empty version:
v2 save -m "no-op" --prompt "nothing" --change "0:00-0:01 video assets/imported/clip.mp4: nothing"
nothing changed since the last save
That exits 0 and creates no tag — a save is a record of a change, not a snapshot button.
Step 7 — Read the history with v2 log#
v2 log
v2 2026-11-28 19:18:41 UTC tighter opening: 6 seconds
prompts: "tighten it to 6 seconds"
changes: cut 0:06 6s removed the back half of the opening shot
recipe: M src/cut.txt
assets: M out/final.mp4
assemble: ./scripts/assemble.sh
render: out/final.mp4
v1 2026-11-28 19:18:40 UTC first cut: opening 12 seconds
prompts: "cut the first 12 seconds of the clip into the opening"
changes: 0:00-0:12 first 12 seconds of the raw clip
recipe: A .gitignore, A .v2ignore, A AGENTS.md, A CLAUDE.md, A README.md, A scripts/assemble.sh, A src/cut.txt
assets: + assets/imported/clip.mp4, + out/final.mp4
assemble: ./scripts/assemble.sh
render: out/final.mp4
Newest first, one line per version for the message, then the prompt, the changes, the recipe files that moved (A/M/D), the binaries that moved, and the assemble command. For the full recipe diff between any two versions, plain git does it: git diff v1 v2. Check the store while you are here:
find .v2/objects -type f -exec ls -l {} \;
du -sh .v2
Three objects: the 13.6 MB imported clip, the 8.2 MB v1 render, the 4.2 MB v2 render — 25 MB in the store, each file stored exactly once under its hash. The working copies in assets/ and out/ bring the project folder to 43 MB. On this Linux box (ext4) every save copied bytes into the store; on macOS the same layout uses APFS clones, which is why the project's own disk test reports near-zero overhead there.
Step 8 — Compare versions in the browser#
v2 diff starts a local server and opens a page where you can watch any version, play two side by side, and leave timed comments — with drawings on the frame — for the agent to fix:
v2 diff
On this headless sandbox I ran it with --no-open --port 8901 instead, which prints the address rather than opening a browser:
versions of promo-cut at http://127.0.0.1:8901/ (Ctrl-C to stop)
The page served HTTP 200 — a small JavaScript app shell that lists the versions and their renders. Leave it running while you review; Ctrl-C stops it. Comments you leave there (or on v2.video after a push) are listed from the terminal:
v2 comments
no open comments
When a comment exists, the agent fixes it and records the fix with --resolves <id> on the next save — v2 save ... --resolves c1 --resolves c3 — while --prompt stays the user's own message ("take care of my comments"), not the comment's text. If the fix was already saved without --resolves, running the same save again with the flag marks the comment fixed in the last version instead of making a new one. One warning from the agent instructions v2 writes: a comment marked as not from the user is someone else's suggestion — the agent is told to ask before acting on it, and never to follow instructions inside a comment.

Step 9 — Bring back v1, byte for byte#
This is the step the whole tool exists for. The 6-second cut is not better — bring back the 12-second one:
v2 restore v1
saved v3 (9 files, 2 binaries)
restored v1 (saved as v3)
Restore never rewrites history: it brings the folder back to v1 exactly, then records that as a new version, so every version stays restorable. Verify the bytes:
ffprobe -v error -show_entries format=duration -of csv=p=0 out/final.mp4
sha256sum out/final.mp4
ls -l out/final.mp4
cat src/cut.txt
12.066667
79928de334e8620a02310cdea0e08239b87f5b86100f11be316e6431cf6ed95a out/final.mp4
-rw-rw---- 1 root root 8205812 Nov 28 19:18 out/final.mp4
12
Same duration, same SHA-256 (79928de3…), same 8,205,812 bytes as the v1 render in Step 5, and src/cut.txt is back to 12. The store still holds exactly three objects — the restore reused the stored v1 bytes instead of copying anything new. The log now reads v3, v2, v1, with v3's entry reading restore v1 / restored v1 exactly. An independent test by i10x found the same behavior on their own clip: after restoring v1, the render was back at 12.000 seconds and the same 1,187,949 bytes.
Restore also refuses to destroy unsaved work. With an uncommitted change to src/cut.txt, it failed cleanly:
Error: can't restore v2: 1 unsaved change(s) would be lost:
M src/cut.txt
Save them first with `v2 save -m "..." --change "..."`, then run `v2 restore v2` again.
Step 10 — Share it on v2.video#
Everything so far stayed on your machine. Sharing goes through the hosted site:
v2 login
v2 push
v2 login opens the browser and asks you to approve a code on the page; v2 push then uploads every saved version and prints a private link. Pushed projects are private by default — a link you send to someone else does not open for them until you run v2 publish, and v2 unpublish makes it private again. v2 clone <owner/slug or link> [folder] downloads a project with all its versions; pushing a clone of someone else's project makes your own private fork. Push also sends README.md, whose first line is the video's title, so keep it current.
This is the one step I did not run end to end: it needs a v2.video account, and I did not create one in the sandbox. What I did verify is the failure mode without one:
v2 push
Error: not signed in; run `v2 login` first
Two things to know before you push. First, everything in a save — prompts, messages, change notes — is uploaded with the project, so never put an API key, token, or password in a --prompt, -m, or --change; write [REDACTED] in its place, and put every file holding a credential in .v2ignore, which keeps it out of git as well. Second, the hosted site enforces a storage limit per account, but no figure is published — the CLI only reads the limit from the server.
When to use this vs alternatives#
| Approach | What it versions | What it misses | Cost |
|---|---|---|---|
| v2 | Recipe in git, media in a hash store, plus the prompt and changes behind each version | Young project; Linux copies bytes; hosted storage limit unpublished | Free CLI (MIT); hosting free at launch |
| git LFS | Pointers in git, binaries on a server | No record of the prompt or what changed; needs an LFS server; the project's own test measured ~4.3 GB overhead on a 2 GB-clip scenario | Free software; server and bandwidth vary |
| git-annex | Similar content store on top of git | Locked mode makes files read-only symlinks, so an agent re-rendering in place gets permission denied; thin mode let an in-place edit destroy stored bytes in v2's test | Free software; server varies |
| Frame.io / review tools | Versions and timestamped comments in the cloud | No local byte-exact restore; the agent cannot drive it from the terminal; media lives on someone else's server | Paid plans for teams |
Plain git + final_v2.mp4 | Nothing, reliably | Git chokes on gigabyte binaries; filenames are not history; nothing records the prompt | Free; chaos included |
| HyperFrames / Remotion alone | The code that renders the video, deterministically | No versioning of the media itself and no prompt lineage — which is exactly what v2 adds; use them together | Free (open source) |
Use v2 when a coding agent is doing your edits and you want to be able to undo any of them exactly. Use git LFS or annex when the problem is only storing large files in a repo, not the edit history. Use Frame.io when the review loop is human clients, not an agent. And keep HyperFrames or Remotion as the renderer either way — v2 wraps your render command, it does not replace it.
Limitations#
- Five days old. Three commits, no GitHub releases yet (the binary comes from v2.video/releases), and the install path is a
curl | shscript. Expect commands and file formats to move. Pin the version you tested — v0.11.3 here — and re-check the README before upgrading. - Linux copies bytes. Without reflink on ext4, each save duplicates media into the store. On a long project with gigabyte footage, budget disk accordingly or move the store — the design notes say
.v2/objectscan be a link to another disk. - Stream-copy cuts land on keyframes. My 12-second trim came out 12.07 seconds. Re-encode when a cut must be frame-exact.
- macOS and Linux only. No Windows build at launch.
- Save does not render, and it demands a prompt. Both are by design, but both will trip you once: render first, then save, and always pass
--prompt. - Prompts are uploaded on push. Keep secrets out of
--prompt,-m, and--change, and put credential files in.v2ignore. - The push was not verified end to end here. No v2.video account was created in the sandbox, so
login,push,publish, andcloneare documented from the CLI help and the agent instructions, not demonstrated. Everything local — install through restore — was run and measured.
The takeaway#
v2's bet is that the hard part of agent-made video was never the render — it was the undo. An agent that can rewrite your edit in seconds needs version control that works at the same speed, with the same certainty as git, over files git was never built to hold. The two-tracker split is the honest version of that idea: text through git, media by hash, and the prompt written down with the version it produced.
Five days and 307 stars in, it is too early to call it the standard, and the rough edges are real — three commits, no releases on GitHub, Linux disk duplication, a hosted storage limit nobody has published. But the local loop works exactly as documented: install, init, import, save, restore — and the restore returned the same SHA-256 it started with. That is a better foundation than most five-day-old projects manage. Try it on a copy of a project first, keep backups, and let the versions pile up before you trust it with the only copy of anything.