Cowback banner
jinbowang1 jinbowang1

Cowback

AI community

Description

πŸ„ The missing Ctrl+Z for AI Agents. Zero-cost undo powered by Copy-on-Write.

Installation

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

README

[δΈ­ζ–‡ζ–‡ζ‘£](./README_CN.md)

πŸ„ Cowback

**The missing Ctrl+Z for AI Agents.**

Cowback uses OS-native Copy-on-Write to create **near-instant, zero-cost snapshots** of your project before every AI agent operation. Break things freely. Restore in milliseconds.

![cowback demo](./docs/demo.gif)

Your AI agent just mass-deleted your source files. Now what? With Cowback: `cowback undo`. That's it.

Why this exists

I wrote some auto-update code for an Electron app I maintain. Routine stuff β€” clean up stale install artifacts before installing the new bundle. In production, the cleanup path resolved correctly: `app.getAppPath()` returned the bundled resources directory, two levels up was the right folder to clean.

In dev mode, on my machine, that same path computation resolved to `~/Desktop`. Then `rm -rf` ran on it.

I watched it happen. Icons on my desktop disappearing one by one β€” months of files, in-progress work, screenshots, notes β€” gone in a single `await fs.rm(...)`. No backup. By my own code. On my own machine. Three commits after I'd reviewed and tested the change. I've been writing code for ten years. I'd called out exactly this class of bug in other people's PRs. I wrote it anyway.

**This is what AI coding agents now do, all day, in production.** They write file operations. They run bash commands. They `rm -rf` paths they computed from variables. They edit configs in place. They mostly get it right β€” and every once in a while, they don't.

You can review their diffs. You can sandbox them. You can pray. Or you can have a `Ctrl+Z`.

That's what cowback is. Read [the full story](./STORY.md) if you want the gory details.

Why

AI coding agents (Claude Code, Cursor, OpenClaw, Codex, etc.) can modify files, run destructive bash commands, and break your project. Existing undo tools create full file copies to back up your project β€” **slow and wasteful.**

Cowback uses the same technology behind APFS and Time Machine: **Copy-on-Write file cloning.** Instead of