Skip to content

saferm

The rm replacement that is safe to hand to your AI Agents: deleted files can be restored, know exactly which session deleted a file, when, and why, with the reason being a required flag.

saferm is a replacement for rm, a CLI meant for AI agents that delete files. Every deletion goes into an archive instead of disappearing, requires a stated reason, and records which session deleted what and when, and saferm undelete puts an archived path back without overwriting anything. It is written in Go, and you can read the source mirror at github.com/stricttools/saferm.

Go cli 0.12.0

uv tool install saferm

What it is

The rm replacement that is safe to hand to your AI Agents: deleted files can be restored, know exactly which session deleted a file, when, and why, with the reason being a required flag.

What it does

Install

uv
uv tool install saferm
npm
npm i -g saferemove
Package names
  • Gostricttools.com/saferm
  • PyPIsaferm
  • npmsaferemove

More tools

selfdoc

Go

Static Site Generator that builds a project's documentation site directly from its source code, so the docs can never drift from the code they describe, with SEO/AEO, first-class blog, search, and cross-project linking built in.

strictcli

Go

A CLI framework for the Era of Agents: nothing is inferred, everything is declared. Written in Go.

strictspec

Go

Define a schema once in TOML, and generate the full toolchain: validation, versioning, migrations, etc. -- for Go.