Repository navigation
Leash – A safety hook blocking dangerous commands #277
melihmucuk
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone! I built a security hook that sandboxes Pi's file system access. It blocks dangerous commands outside your project directory and prevents destructive git operations.
What it does:
rm,mv,cp,chmodetc. outside working directorygit reset --hard,push --force,clean -f~20µsper tool call since it's in-process)Setup is simple. Clone the repo and add to
~/.pi/agent/settings.json:It's open source and also supports Claude Code, OpenCode, and Factory Droid.
Repo: https://github.com/melihmucuk/leash
Would love feedback or contributions!
All reactions