← All tools

kawarimidoll/guard-and-guide

Popularity 65 Updated Development & Build

🛡️ Guard coding agents from dangerous operations, and 🧭 Guide them to safer alternatives.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

<div align="center"

guard-and-guide

🛡️ Guard coding agents from dangerous operations, and 🧭 Guide them to safer alternatives.

</div

Motivation

You tell your AI coding agent: "Don't run git push."

The agent gets blocked — and tries harder:

🧑 deny(git push)
🤖 Got it! I'll use /usr/bin/git push instead.
🧑 NOOO!!!

AI agents don't give up when simply denied. They try absolute paths, alternative commands, and creative workarounds to get the job done.

guard-and-guide solves this by not only blocking dangerous operations, but also telling the agent why it was blocked and what to do instead. When given clear guidance, agents are much more likely to comply.

Install

nix

nix profile install github:kawarimidoll/guard-and-guide

cargo

cargo install --git https://github.com/kawarimidoll/guard-and-guide

Setup

1. Create rules

Create ~/.config/guard-and-guide/rules.toml with your rules. See rules.example.toml for a full example.