Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

git-sim

Draws what a Git command will do to your repo before you run it, and can stop a coding agent's risky Git commands for approval.

Reviewed by ReviewRamble editors · Updated

View on GitHub Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

3.8/5

git-sim is a clear way to see a rebase or reset before it happens, and its new agent hook is a sensible guard on Git commands, though the relaunch is weeks old and carried by one person.

What is git-sim?

git-sim shows what a Git command would do to your own repository without running it. You type git-sim where you would type git (git-sim merge dev, git-sim reset --hard HEAD^), and it reads the real repo, works out the result and opens an interactive graph with a before-and-after slider. Nothing in the repo changes. Besides the everyday commands it covers bisect, blame, reflog, stash, worktree and the --continue and --abort steps of merge, rebase and cherry-pick.

Version 0.4.0, released on 10 October 2026, is close to a new tool. It added preflight, which rates a command as safe, caution or destructive and says what it would lose and how to undo it; live, which animates a repo as commands run and records the session; and wire-agents, which installs a pre-flight hook and an MCP server into coding agents. It also shipped a VS Code extension (it runs in Cursor, Windsurf and VSCodium too), a Jupyter magic and a GitHub Action that comments on pull requests. Static images now render with skia in well under a second, and Manim, which made the original install heavy, is only needed for video.

Jacob Stopak of Initial Commit has written nearly all of it (495 commits against 13 for the next contributor). The code is GPL-2.0, has about 4,700 stars and needs Python 3.10 to 3.14 plus Git. The project was close to dormant between v0.3.5 in April 2024 and August 2026, with two commits in that time; more than 100 have landed since.

Is git-sim worth it?

The idea behind git-sim drew 447 points on Hacker News in January 2023: prefix a Git command with git-sim and see the commit graph it would leave behind. Commenters liked it most as a teaching aid, and the complaints were about install weight (Manim and Pango took one user more than five minutes through Homebrew) and the risk that a simulation drifts from what Git really does. Version 0.4.0 answers both. Images now come from skia and Manim is optional, and the release notes say every command and option was checked against real Git across many repo shapes and six open-source repos up to git/git itself.

The part aimed at AI-assisted work is wire-agents. It installs a PreToolUse-style hook in Claude Code, Codex CLI, Cursor, GitHub Copilot CLI, Gemini CLI and VS Code, and an MCP server with two tools, git_preflight and git_simulate, in those plus Windsurf, Cline, Roo Code, Amazon Q Developer CLI and Claude Desktop. When an agent tries something like git reset --hard HEAD~2, the hook stops it and shows which commits move, what uncommitted work would be lost and the reflog command to get it back, then asks you to approve. For unattended runs GIT_SIM_HOOK_MODE=deny refuses risky commands outright, and warn lets them through with the facts attached. It only reads Git commands, so a broader guard such as cc-safety-net is still needed for rm -rf and secret files.

Your repo data mostly stays put. Graphs open in a viewer on initialcommit.com by default, but the graph data sits in the URL fragment, which browsers never send to the server; --open-in local avoids the site entirely. Two things do leave the machine: the header link that explains a command sends that command and its flags to Initial Commit, and a public share link stores the graph on its servers until you delete it. Live mode runs a small web server bound to 127.0.0.1 with a session key.

The open question is whether the project keeps going. Releases went from v0.3.5 in April 2024 to 0.4.0 in October 2026 with two commits in between, one maintainer wrote 495 of the commits, and PyPI counted 339 downloads in the last month, so few people are running the new version yet. Minimal Linux images, CI runners and WSL also need libEGL, libGL and fontconfig installed before it will draw anything.

Our take: worth adding to any machine where an agent has push rights, for the preflight hook alone, and the clearest Git teaching tool we have seen. Check back in six months to see whether the October burst of work keeps going.

Where it earns its place

  • A developer running Claude Code or Codex on a branch with uncommitted changes

    Stop the agent from resetting, force-pushing or dropping work without a person seeing it first

    Run git-sim wire-agents --agent claude (or --agent codex) and restart the agent. Risky Git commands pause with a plain summary of what moves, what is lost and the undo command; set GIT_SIM_HOOK_OPEN=never if a browser tab for every prompt gets tiresome. Free, and the first setup takes minutes.

  • A bootcamp instructor or team lead teaching Git to junior developers

    Show what rebase, cherry-pick and reset do to a real history instead of drawing it on a whiteboard

    git-dummy --scenario orders builds the sample repo used in the README, and each git-sim command opens a graph with a before-and-after slider. Copy embed puts the interactive graph into course notes or an internal wiki with no file to host.

  • A maintainer of a busy open-source repository

    Know what merging a pull request will do, and whether it conflicts, before pressing the button

    The git-sim GitHub Action comments on each pull request with the incoming commits, a safe or caution verdict, how to undo the merge and any conflicting files. The gh gitsim extension gives the same simulation from the terminal.

Before you commit

Setup
pip install git-sim (or pipx or uv tool install) on Windows, macOS or Linux with Python 3.10 to 3.14 and Git; the first graph takes a minute. Video output needs pip install "git-sim[extras]" for Manim. Debian, Ubuntu and WSL may need apt install libegl1 libgl1 libfontconfig1.
Integrations
Hook and MCP server for Claude Code, Codex CLI, Cursor, GitHub Copilot CLI, Gemini CLI and VS Code; MCP server only for Windsurf, Cline, Roo Code, Amazon Q Developer CLI and Claude Desktop. VS Code extension, Jupyter magic, GitHub Action, gh CLI extension and a Docker image.
Data and privacy
Reads your repo locally. The hosted viewer gets graph data only in the URL fragment, which is not sent to the server; the explain link sends the command and its flags; a public share link stores the graph on initialcommit.com until deleted. --open-in local keeps everything offline. Live mode's server listens on 127.0.0.1 with a session key. GPL-2.0.
Cost at scale
Free; there is no paid edition. The only cost is a little CPU per simulation, and static rendering takes well under a second.
Limits
Single maintainer and a long gap before 0.4.0; the hook only understands Git commands; simulations are models of Git's behaviour, so an odd edge case can still differ from the real result; 11 open issues include missing checkout -b start points.

What’s good

  • Shows a command's effect on your real repo without changing it
  • Pre-flight hook and MCP server for 11 coding agents in one command
  • Says what a command would lose and how to undo it
  • Graph data stays in the URL fragment; a fully local mode exists

What’s not

  • One maintainer; two commits between April 2024 and August 2026
  • Hook covers Git commands only, not other destructive shell commands
  • Minimal Linux and CI images need extra graphics libraries
  • Explain links and public share links do send data to initialcommit.com

Best for

Developers who let coding agents run Git in repos with unpushed work, and anyone teaching or learning what rebase, reset and merge really do.

git-sim alternatives

Where it fits in the AI stack

git-sim: common questions

Is git-sim worth it?
git-sim is a clear way to see a rebase or reset before it happens, and its new agent hook is a sensible guard on Git commands, though the relaunch is weeks old and carried by one person. We rate it 3.8 out of 5.
How much does git-sim cost?
Free under GPL-2.0; optional GitHub Sponsors. Public share links are stored on initialcommit.com at no charge.
What are the downsides of git-sim?
One maintainer; two commits between April 2024 and August 2026; hook covers Git commands only, not other destructive shell commands; minimal Linux and CI images need extra graphics libraries; explain links and public share links do send data to initialcommit.com.
Who is git-sim best for?
Developers who let coding agents run Git in repos with unpushed work, and anyone teaching or learning what rebase, reset and merge really do.
How much does git-sim cost for a team or in production?
Free; there is no paid edition. The only cost is a little CPU per simulation, and static rendering takes well under a second.
Is git-sim safe for company data?
Reads your repo locally. The hosted viewer gets graph data only in the URL fragment, which is not sent to the server; the explain link sends the command and its flags; a public share link stores the graph on initialcommit.com until deleted. --open-in local keeps everything offline. Live mode's server listens on 127.0.0.1 with a session key. GPL-2.0.
What are the best git-sim alternatives?
The closest alternatives we have reviewed are CC Safety Net and Anthropic Sandbox Runtime (srt).

Answers checked Nov 30, 2026.