Ls1more

Backpaw — AI skill for Claude Code

AI community

Undo for AI coding agents.

How to install Backpaw

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

What Backpaw does

Undo for AI coding agents. Blocks rm -rf and other permanent deletes from Claude Code, Codex, Cursor, Gemini CLI, Copilot, Windsurf, Qwen, Kimi and OpenCode, sends them to the Recycle Bin/Trash, and restores them in one click. Windows + macOS.

Alternatives in AI

  • Omniget — Udemy & Hotmart course downloader, YouTube downloader (yt-dlp GUI, 1,800+ sites) + desktop app for AI agents 13.9k ★
  • EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★

README

Backpaw logo: a paw print inside a circular undo arrow

Backpaw

**Get back what your AI coding agent deleted or moved.**

[![test](https://github.com/Ls1more/backpaw/actions/workflows/test.yml/badge.svg)](https://github.com/Ls1more/backpaw/actions/workflows/test.yml)

**Use at your own risk.** Backpaw reduces the damage from accidental or prompt-injected deletes. It is not a backup and cannot catch every way a program can delete files. Keep real backups (OneDrive, File History, Time Machine). Provided as-is under the [MIT License](LICENSE), with no warranty.

Demo: an AI agent's rm -rf src is blocked by Backpaw, the folder goes to the Recycle Bin instead, and one click in the Backpaw window restores it

AI agents run shell commands. When one runs `rm -rf`, `Remove-Item` or `mv` on the wrong thing, the agent's own undo (like Claude Code's `/rewind`) can't help: shell side effects are outside checkpoint tracking. Backpaw covers that gap for every major agent:

Agent Hook used Config Backpaw writes
Claude Code PreToolUse + SessionStart ~/.claude/settings.json
OpenAI Codex PreToolUse + SessionStart ~/.codex/hooks.json
Gemini CLI BeforeTool + SessionStart ~/.gemini/settings.json
Cursor beforeShellExecution ~/.cursor/hooks.json
GitHub Copilot CLI preToolUse ~/.copilot/hooks/backpaw.json
Windsurf pre_run_command ~/.codeium/windsurf/hooks.json
Qwen Code PreToolUse ~/.qwen/settings.json
Kimi Code CLI PreToolUse ~/.kimi-code/config.toml (marked block)
OpenCode tool.execute.before plugin ~/.config/opencode/plugins/backpaw.js

Backpaw guards the **agent app**, not the model, so open-weight models (Kimi K2, Qwen3-Coder, DeepSeek, GLM, gpt-oss, local models via Ollama/LM Studio) are covered whenever they