slb — CLI for Claude Code and Codex
The slb CLI demands separate review and approval for risky agent commands: rm -rf, git push --force and DROP TABLE.
Install in Claude Code and Codex
Manual install
brew install dicklesworthstone/tap/slbThe first install command from the README, for macOS and Linux. Windows has Scoop.
Access and checks
How we reviewExtended access. The tool runs code or makes network calls and only reads external data.
- Approved commands run in your shell with your credentials, and `same_host` does not isolate a malicious process of the same user.
This is third-party code. Review the repository files before installing.
What it does
slb is a cross-platform CLI that stops potentially destructive commands from AI agents before they run. When an agent wants to run `rm -rf`, `git push --force`, `kubectl delete` or `DROP TABLE`, slb opens a request and requires review and explicit approval. Commands split by danger level: CRITICAL (two or more reviews, never auto-approved), DANGEROUS (one review), CAUTION (auto-approved after 30 seconds) and SAFE (immediately). An approval binds to the exact command through a SHA-256 hash, and execution runs in your shell with your AWS credentials, kubeconfig and virtualenvs. State lives in `.slb/state.db`, with a TUI dashboard for humans and MCP Agent Mail integration for notifications and an audit trail. The default `independent` approval policy requires independent reviewers, while `same_host` gives cooperating agents on one host a peer check as mistake prevention.
Who it is for. Teams that run several agents in parallel in working terminals and do not want one bad command to destroy data or infrastructure.
Good fit when
- An agent is about to run `terraform destroy` and a second look is needed before it runs.
- Two agents work in one repository and one reviews the commands of the other.
- A log of requests, reviews and executions with policy labels is needed.
- A command is approved by hash and only it runs in your shell with the right kubeconfig.
Not a fit when
- You need a security boundary against a malicious process: `same_host` mode does not give one.
- There are no reviewers at all and the process must run without people: CRITICAL is never auto-approved.
- You need agent identity authentication: no external identity provider is implemented yet.
Example request
Request rm -rf ./build through slb with a reason and expected effect, wait for the second session review and only then run the command.Limitations
The `same_host` mode does not authenticate agents and models and does not stop a malicious process of the same OS user: it prevents mistakes and is not a security boundary. The default `independent` policy refuses local approvals until independent reviewers exist, and no external identity provider is implemented. Requests, reviews and execution records keep policy labels, and a local approval never becomes independent. Building from source needs Go 1.26. The license is MIT with a rider for OpenAI and Anthropic.
How to disable. Remove the program through the package manager (`brew uninstall slb`) and the `.slb/` folder in projects. Remove agent hooks that route commands to slb from the agent settings.
FAQ
How do I install slb?
Run `brew install dicklesworthstone/tap/slb`. On Windows use Scoop: `scoop install dicklesworthstone/slb`. Other options are `go install github.com/Dicklesworthstone/slb/cmd/slb@latest` and a release archive checked against `checksums.txt`.
What does slb init create?
A `.slb/` directory with `state.db` (requests, reviews and sessions), the project `config.toml` and a `pending/` folder of pending requests as JSON.
How do I enable peer review between agents?
Run `slb config set general.approval_policy same_host`. Then each agent runs `slb session start` and the requester explains the command through `slb request`.
What does hash binding mean?
An approval covers only the exact command: its SHA-256 is recorded in the request, and a changed command needs a new approval.
Where is state stored?
In the project `.slb/state.db` SQLite database. Request logs go to `.slb/logs/`, and user configuration to `~/.slb`.
Is slb safe to install?
Extended access. The tool runs code or makes network calls and only reads external data.
Discussion
No questions or reviews yet.
README in short
The README explains the purpose, danger tiers, installation from several sources, project initialization, project discovery from subdirectories and a same-host peer review workflow. The security boundary is described in a separate document.