Claude Code session

ccundo

Adds granular undo of Claude Code file operations by reading session history.

1,402 stars 55 forksSessions & history Source

Install

Install
npm install -g ccundo
From source
git clone https://github.com/RonitSachdev/ccundo.git

From the README

ccundo
Intelligent undo for Claude Code sessions - Revert individual operations with cascading safety and detailed previews.

ccundo seamlessly integrates with Claude Code to provide granular undo and redo functionality. It reads directly from Claude Code's session files to track file operations and allows you to selectively revert or restore changes with full preview and cascading safety.

✨ Features

- Automatic Detection - Reads directly from Claude Code session files
- Detailed Previews - See exactly what will be changed before undoing/redoing
- Cascading Undo/Redo - Maintains project consistency by undoing/redoing dependent operations
- Complete Redo System - Reverse any undo operation with full cascading support
- Multi-language - Supports English and Japanese (日本語)
- Smart Operation Tracking - Tracks file edits, creations, deletions, renames, and bash commands
- Safe Backups - Creates backups before making changes
- Zero Configuration - Works out of the box with Claude Code

Installation

Quick Start

1. Navigate to a directory where you've used Claude Code
2. List recent operations:

3. Preview what would be undone:

4. Undo operations with confirmation:

5. Redo previously undone operations:

Usage

List Operations

View all operations from your current Claude Code session:

Example output:

Preview Changes

See exactly what will be undone without making any changes:

Preview shows:
- File diffs for edits (- current content, + original content)
- Content that will be restored for deleted files
- Files that will be deleted for created files
- Bash commands that require manual intervention

Undo Operations

Safely revert operations with detailed confirmation:

Cascading Undo: When you select an operation to undo, ccundo will also undo ALL operations that came…
Read the full README on GitHub

Details

Language
JavaScript
Last updated
27 July 2025

FAQ

What is ccundo?

Adds granular undo of Claude Code file operations by reading session history. It is a session for Claude Code, from RonitSachdev/ccundo on GitHub.

How do I install ccundo?

Run npm install -g ccundo, then follow the setup in the README.

Is ccundo popular?

RonitSachdev/ccundo has 1,402 GitHub stars and 55 forks, and is included in 1 curated Claude Code list. It was last updated on 27 July 2025.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.