mayrun

Policy gate for agent side effects

mayrun

Agents don’t run dangerous commands until mayrun says they may.

Primary path: eval "$(mayrun shell-hook)" — local shell gate, not another dashboard.

mayrun check · run
  1. $ mayrun check 'rm -rf /' Deny dangerous-defaults · rm-rf
  2. $ mayrun run 'git push' Require approval git-safe · push
  3. $ mayrun run 'cargo test' Allow rust-dev · cargo

How it works

Local-first choke point on the write path — shell-hook, MCP, or CLI — not a dashboard that watches after the damage.

Built for real agent mishaps

Business cases from the write path — not governance theater.

All use cases · Pack catalog

Install

Single Rust binary. Shell-hook first; MCP optional for Cursor / Claude / OpenCode.

60s shell-hook
cargo install --git https://github.com/kiket-dev/mayrun --locked
mayrun init --detect
eval "$(mayrun shell-hook)"
rm -rf /    # Deny + rule_id
Init + smoke
mayrun init --detect
mayrun check 'rm -rf /'      # Deny
mayrun run 'git status'      # Allow → execute

Full install guide · Quickstart · Docs · Pricing