Skip to content
dsh.fish
Bundle

dsh-prompt-vcs

Every change to your agent's instructions is recorded with a diff, and any change can be undone.

Source
hj01857655
License
MIT
Updated
Updated 4 days ago

Readme

# dsh-prompt-vcs

[![npm version](https://img.shields.io/npm/v/dsh-prompt-vcs?color=cb3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/dsh-prompt-vcs)
[![npm downloads](https://img.shields.io/npm/dm/dsh-prompt-vcs?color=cb3837)](https://www.npmjs.com/package/dsh-prompt-vcs)
[![CI](https://github.com/hj01857655/dsh-prompt-vcs/actions/workflows/ci.yml/badge.svg)](https://github.com/hj01857655/dsh-prompt-vcs/actions/workflows/ci.yml)
[![license](https://img.shields.io/npm/l/dsh-prompt-vcs?color=blue)](LICENSE)
[![node](https://img.shields.io/node/v/dsh-prompt-vcs?color=339933&logo=node.js&logoColor=white)](package.json)
[![GitHub stars](https://img.shields.io/github/stars/hj01857655/dsh-prompt-vcs?color=yellow)](https://github.com/hj01857655/dsh-prompt-vcs/stargazers)
[![dsh plugin](https://img.shields.io/badge/dsh-plugin-4B8BBE)](https://github.com/topics/dsh-plugin)

Every change to your agent's instructions is recorded with a diff, and any change can be undone.

## Install

```sh
dsh plugin --profile web add dsh-prompt-vcs
```

## What it does

- **Watch the instruction surface.** `AGENTS.md`, `CLAUDE.md`, skill files.
- **Snapshot on change.** Unified diff + attribution (user / plugin / agent) stored in `.promptvcs/history.jsonl`.
- **Timeline.** `promptvcs log` shows every change: when, what file, who changed it.
- **Diff.** `promptvcs diff <hash>` shows the unified diff for a specific change.
- **Rollback.** `promptvcs rollback <hash>` restores a file to its state before a change.
- **Panel.** Timeline with inline diffs and rollback button.

## CLI

```sh
dsh-prompt-vcs log               # show change history
dsh-prompt-vcs diff <hash>       # show diff for a change
dsh-prompt-vcs rollback <hash>   # undo a change
```

## License

MIT

Install

dsh plugin --profile web add github:hj01857655/dsh-prompt-vcs

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source