dingningpei

Envgit — Development skill for Claude Code

Development community

Version control for the environment your coding agent works in.

How to install Envgit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dingningpei/envgit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Envgit does

Version control for the environment your coding agent works in.

Alternatives in Development

  • Ralph Loop — Autonomous coding loop — works through tasks, commits, repeats 14k ★
  • AgenticResourceRegistry — Share and discover coding agent resources across your team 4.5k ★
  • TokenEconomizer — Experience-Driven Black-Box Cost Control for Coding Agents 3.4k ★

README

envgit logo: a timeline of steps with an arrow back to an earlier one

envgit

**Version control for the environment your coding agent works in.**

Record every step. Rewind to any of them. Stop what can't be undone.

[![npm](https://img.shields.io/npm/v/agent-envgit?color=2dd4bf&label=npm)](https://www.npmjs.com/package/agent-envgit) [![test](https://github.com/dingningpei/envgit/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/dingningpei/envgit/actions/workflows/test.yml?query=branch%3Amain) [![node](https://img.shields.io/node/v/agent-envgit)](package.json) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)

[Quick start](#quick-start) · [Your agent](#use-it-with-your-agent) · [Policy](#policy) · [Backends](#two-backends) · [How it works](#how-it-works) · [Design](docs/design.md)

A session of five steps. Step 3, a git push, is refused at the request. envgit rewind 2 puts the environment back to step 2.

See it run

![envgit demo: a scripted agent's five steps, a git push refused at the request, a rewind](docs/demo.gif)

Coding agents such as Claude Code, Codex and Copilot CLI run for hours and execute thousands of commands, and afterwards you have a diff and a chat log. envgit records every step the agent takes in a sandbox — the command, the files it changed, the hosts it reached, what the policy denied — and snapshots the environment after each one. You can rewind to any step, fork from it, and stop the actions a rewind could never undo, such as a `git push` or a POST to a production API, before they go out.

$ envgit init
initialized ~/myproject/.envgit
$ envgit run sh -c "sed -i '' s/hi/hello/ app.py"
envgit: step 0 recorded in session 20261027T200311-619e07
$ envgit run python3 app.py
hello
envgit: step 1 recorded in session 20261027T200311-619e07
$ envgit run c