Tret

A CLI tool that installs other CLI tools.

Tret runs a tool's installer inside a bounded capture window, records what it creates, overwrites, or deletes there as observations. Cleanup needs explicit approval for each object and verifies its identity and fingerprint again.

$ curl -fsSL https://tret.framwrk.com/scripts/install.sh | bash

Installs the latest release to ~/.tret/bin and links it as ~/.local/bin/tret, after verifying it against the published checksums. Update in place with tret update, or a tracked tool with tret update <tool>.

What it does

Install
Fetches the install script, shows its hash and a preview, runs it in a bounded capture window, and records the files it changed.
tret install <URL>
Uninstall
Removes explicitly approved objects after identity and fingerprint checks; unresolved effects stay tracked. Package-manager and recursive managed-install cleanup stay blocked for manual reconciliation. Shell edits without a recorded before-image stay blocked too; markers do not prove a line was added.
tret uninstall <tool>
Inspect
Shows a record without changing anything: capture confidence, owned paths, files changed since install, and what uninstall would do.
tret inspect <tool>
Trace
Runs a tracked tool in a bounded observation window and appends what it writes as a separate segment. Opt-in, never silent.
tret trace <tool>
Update
Updates Tret itself, or re-runs a tracked tool's recorded installer with its original arguments.
tret update [tool]
Track
Lists captured tools, adopts commands you installed yourself, and can stop tracking without touching files.
tret list · tret find · tret forget

Noninteractive installs and tracked updates require --yes. Heuristic or disabled capture also requires --allow-weaker-capture for each run; execution consent alone does not accept weaker observation. Most commands accept --json for one machine-readable document, with stable exit codes for scripts and CI.

Capture is bounded and labeled, not a full filesystem diff: macOS uses a scoped heuristic snapshot with no process attribution, and a Linux window is complete only when the traced process tree was fully observed. tret inspect shows what a record actually covers, and the capture limits are documented in the README.

Platform support

macOS and Linux, on both arm64 and x64. Windows is not supported.

Prefer to read before you run? The install and uninstall scripts are plain shell. Read install.sh and uninstall.sh in the repo.