← 开源
RonitSachdev

ccundo

[claude now natively supports this feature] ccundo seamlessly integrates with Claude Code to provide granular undo functionality. It reads directly from Claude Code's session files to track file operations and allows you to selectively revert changes with full preview and cascading safety.

ApplicationsCodingJavaScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.40k
Star
55
Fork
+0
本周
1
贡献者
创建于 2025-07-05 · 更新于 2026-10-09 · 今日第 10448 名
主要开发者
RonitSachdev

RonitSachdev/ccundo 排名第 10,448,有 1,401 个星标。

同类别比较

RonitSachdev/ccundo 排名第 10,448,此处有 8 个同类条目;PentesterFlow/agent 排名第 10,450。

同类别比较
名称排名指标
a16z-infra/llama2-chatbot10,419
语言:
Python
星标数:
1,409
分叉数:
219
简介:
LLaMA v2 Chatbot
robertpiosik/CodeWebChat10,429
语言:
TypeScript
星标数:
1,405
分叉数:
129
简介:
Blazing fast AI coding with static context
dairoot/ChatGPT-Mirror10,432
语言:
Vue
星标数:
1,404
分叉数:
254
简介:
🚀 一键部署个人的 ChatGPT 镜像站
bupticybee/ChineseAiDungeonChatGPT10,444
语言:
Python
星标数:
1,402
分叉数:
135
简介:
中文版的ai地牢,直接使用的openai的ChatGPT api作为讲故事的模型。
PentesterFlow/agent10,450
语言:
TypeScript
星标数:
1,400
分叉数:
262
简介:
Agentic offensive-security in your terminal
aws-samples/aws-genai-llm-chatbot10,459
语言:
TypeScript
星标数:
1,398
分叉数:
435
简介:
A modular and comprehensive solution to deploy a Multi-LLM and Multi-RAG powered chatbot (Amazon Bedrock, Anthropic, HuggingFace, OpenAI, Meta, AI21, Cohere, Mistral) using AWS CDK on AWS
nilbuild/claude-statusline10,461
语言:
Shell
星标数:
1,398
分叉数:
104
简介:
Minimal Claude Code statusline setup I personally use
LongOnly/Quantitative-Notebooks10,465
语言:
Jupyter Notebook
星标数:
1,395
分叉数:
217
简介:
Educational notebooks on quantitative finance, algorithmic trading, financial modelling and investment strategy
关键参数与规格
关键参数与规格
参数值
语言JavaScript
类别Applications
子类别Coding
关键词Claude Code
星标数1,401
分叉数55
贡献者1
创建日期2025-07-05
更新日期2026-10-09
1 天星标数0
7 天星标数0
排名10,448
上次排名10,444
排名变化-4
7 天星标排名12,626
上次 7 天星标排名12,658
7 天星标排名变化32
总星标排名8,554
上次总星标排名8,543
总星标排名变化-11
国家Japan
README 摘录

✨ 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. Session Management Work with multiple Claude Code sessions: Language Support ccundo supports multiple languages with persistent preferences: **Supported Languages:** 🇺🇸 English ( ) - Default 🇯🇵 Japanese ( ) - 日本語フルサポート 🇫🇷 French ( ) - Français 🇪🇸 Spanish ( ) - Español 🇩🇪 German ( ) - Deutsch How It Works ccundo automatically integrates with Claude Code by: 1.

常见问题

记录了多少星标和分叉?

RonitSachdev/ccundo 有 1,401 个星标和 55 个分叉。

仓库排名是多少?

RonitSachdev/ccundo 排名第 10,448。

记录的语言和类别是什么?

RonitSachdev/ccundo 有 1,401 个星标,语言为 JavaScript,类别为 Applications。

哪个仓库排名最接近?

RonitSachdev/ccundo 与 PentesterFlow/agent 比较,后者排名第 10,450,有 1,400 个星标。

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

npm install -g ccundo

Quick Start

  1. Navigate to a directory where you've used Claude Code
  2. List recent operations:
    ccundo list
    
  3. Preview what would be undone:
    ccundo preview
    
  4. Undo operations with confirmation:
    ccundo undo
    
  5. Redo previously undone operations:
    ccundo redo
    

Usage

List Operations

View all operations from your current Claude Code session:

ccundo list                    # Show recent operations
ccundo list --all             # Include already undone operations

Example output:

Operations from Claude Code session:

1. [ACTIVE] file_edit - 2m ago
   ID: toolu_01XYZ...
   File: /project/src/app.js

2. [ACTIVE] file_create - 5m ago
   ID: toolu_01ABC...
   File: /project/src/utils.js

3. [ACTIVE] bash_command - 7m ago
   ID: toolu_01DEF...
   Command: npm install express

Preview Changes

See exactly what will be undone without making any changes:

ccundo preview                 # Interactive selection
ccundo preview   # Preview specific operation

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:

ccundo undo                    # Interactive selection with preview
ccundo undo      # Undo specific operation
ccundo undo --yes             # Skip confirmation prompts

Cascading Undo: When you select an operation to undo, ccundo will also undo ALL operations that came after it. This ensures your project remains in a consistent state.

Redo Operations

Restore previously undone operations with the same safety and preview features:

ccundo redo                    # Interactive selection of undone operations
ccundo redo      # Redo specific operation
ccundo redo --yes             # Skip confirmation prompts

Cascading Redo: When you select an operation to redo, ccundo will also redo ALL undone operations that came before it. This maintains the same consistency guarantees as undo operations.

Session Management

Work with multiple Claude Code sessions:

ccundo sessions              # List all sessions across projects
ccundo session   # Switch to specific session

Language Support

ccundo supports multiple languages with persistent preferences:

ccundo language              # Show current language and options
ccundo language en           # Switch to English
ccundo language ja           # Switch to Japanese (日本語)
ccundo language fr           # Switch to French (Français)
ccundo language es           # Switch to Spanish (Español)
ccundo language de           # Switch to German (Deutsch)

Supported Languages:

  • 🇺🇸 English (en) - Default
  • 🇯🇵 Japanese (ja) - 日本語フルサポート
  • 🇫🇷 French (fr) - Français
  • 🇪🇸 Spanish (es) - Español
  • 🇩🇪 German (de) - Deutsch

How It Works

ccundo automatically integrates with Claude Code by:

  1. Reading Session Files - Parses .jsonl files in ~/.claude/projects/
  2. Extracting Operations - Identifies file operations and bash commands from tool usage
  3. Tracking Dependencies - Understands operation ordering for safe cascading undo
  4. Creating Backups - Saves current state before making changes to ~/.ccundo/backups/
  5. Maintaining State - Stores undo history and language preferences in ~/.ccundo/

Supported Operations

Operation Type Description Undo Action Redo Action
File Create Files created by Claude Delete file (with backup) Recreate file with original content
File Edit File content modifications Revert to original content Re-apply the edit changes
File Delete Files deleted by Claude Restore file content Delete file again (with backup)
File Rename File/directory renames Rename back to original Apply rename again
Directory Create Directory creation Remove directory Recreate directory
Directory Delete Directory removal Recreate directory Remove directory again
Bash Command Shell commands Manual intervention required Manual intervention required

Examples

Undoing Recent File Changes

$ ccundo list
Operations from Claude Code session:

1. [ACTIVE] file_edit - 30s ago
   ID: toolu_01XYZ123
   File: /project/src/app.js

$ ccundo preview
📋 Preview: Would undo 1 operation(s):

1. file_edit - 30s ago
   Will revert file: /project/src/app.js
   
   - const newFeature = true;
   + const newFeature = false;
     console.log('App started');

$ ccundo undo --yes
✓ File reverted: /project/src/app.js
  Backup saved to: ~/.ccundo/backups/toolu_01XYZ123-current

Completed: 1 successful, 0 failed

Cascading Undo Example

$ ccundo preview
⚠️  Cascading undo: Selecting an operation will undo it and ALL operations that came after it.

? Select operation to preview:
❯ file_create - 1m ago (+ 2 more would be undone)
  file_edit - 2m ago (+ 1 more would be undone)  
  bash_command - 5m ago

📋 Preview: Would undo 3 operation(s):

1. file_create - 1m ago
   Will delete file: /project/new-feature.js

2. file_edit - 2m ago  
   Will revert file: /project/app.js

3. bash_command - 5m ago
   Cannot auto-undo bash command: npm install new-package
   Manual intervention required

Redoing Undone Operations

$ ccundo undo
# ... undo some operations ...

$ ccundo redo
⚠️  Cascading redo: Selecting an operation will redo it and ALL undone operations that came before it.

? Select operation to redo:
❯ file_edit - 2m ago (+ 1 more will be redone)
  file_create - 5m ago

$ ccundo redo --yes
✓ File edit redone: /project/src/app.js
  Backup saved to: ~/.ccundo/backups/toolu_01XYZ123-redo
✓ File recreated: /project/new-feature.js

Completed: 2 successful, 0 failed

Configuration

ccundo stores its configuration in ~/.ccundo/:

~/.ccundo/
├── config.json              # Language preferences
├── undone-operations.json   # Undo/redo state tracking
├── sessions/                # Local session tracking (if used)
└── backups/                # Operation backups

Config format:

{
  "language": "en"
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

git clone https://github.com/RonitSachdev/ccundo.git
cd ccundo
npm install
npm link

Adding Languages

  1. Add translations to src/i18n/languages.js
  2. Update language list in documentation
  3. Test with npm run test

License

MIT © Ronit Sachdev

排名相邻
同类项目