← 全部工具

kawarimidoll/guard-and-guide

热度 65 更新于 开发与构建

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

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

<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.