---
name: auditing-and-rewinding-uncommitted-local-code-changes
description: "Audits recent local file snapshots to summarize uncommitted changes and identify overwritten or removed work. Use when rapid edits or script runs may have lost in-progress code and a rollback review is requested."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/auditing-and-rewinding-uncommitted-local-code-changes/"
  kind: skill
  hermes:
    tags: ["coding", "version-control", "git", "terminal", "diff"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Auditing and rewinding uncommitted local code changes

Inspect granular workspace snapshot history and safely roll back unwanted file edits

## When to use

When multiple rapid edits or automated script runs overwrite in-progress work before a commit, this bot checks recent local file snapshots, compares diffs across custom time windows, and identifies lost modifications. It summarizes what was modified and prepares precise rollback instructions to recover the desired state.

## Inputs

- `review_timeframe`: Timeframe to review for recent local file snapshots and uncommitted changes.
- `file_paths` (optional): Specific files or directories to inspect for snapshot diffs and file histories.

## Steps

1. When you ask: Request rollback review (A person asks in chat for a rollback review of recent uncommitted local code changes.)
2. Inspect snapshot diffs
3. Diff summary and restore prompt

## Instructions

When requested, query recent snapshot diffs and file histories via terminal utilities. Summarize all changes that occurred within the specified timeframe, highlighting overwritten functions or removed files. Before running any restoration or file overwrite command, present the exact diff to the user and wait for explicit confirmation.

## Approvals

- Running restoration or file overwrite commands only after presenting the exact diff and receiving explicit user confirmation.

## Output

Summary of snapshot diffs and overwritten or removed files, with precise rollback instructions and a confirmation prompt. (format: chat_message)

## Source

Summarized in our own words from [Show HN: Unfucked - version all changes (by any tool) - local-first/source avail](https://news.ycombinator.com/item?id=47172238) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/auditing-and-rewinding-uncommitted-local-code-changes/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
