Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginCẩn thậnĐăng nhập & bảo mậtCần cài đặt chút

reins

pegasi-ai · pegasi-ai/reins

Plugin này cung cấp các biện pháp kiểm soát bảo mật cho tác nhân AI, thực thi chính sách, quét lỗ hổng và theo dõi sự sai lệch để ngăn chặn các hành động không mong muốn.

Stop AI agents from doing things you didn't ask for.

392 sao53Giấy phép: Apache-2.0Cập nhật 5 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Chặn tác nhân AI thực hiện lệnh `rm -rf` có tính phá hoại.
  • Yêu cầu phê duyệt rõ ràng cho các hoạt động có tác động lớn như xóa hàng loạt dữ liệu.
  • Duy trì một nhật ký kiểm toán bất biến về tất cả các quyết định và hành động của tác nhân để tuân thủ.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Đọc file chứa thông tin đăng nhập (SSH key, token cloud hoặc npm).plugin/skills/reins/SKILL.md

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

🪢 Reins Security controls for AI agents.

github.com/pegasi-ai/reins







= 18.0.0">

In Greek myth, Athena gave Bellerophon the golden bridle — reins included — that let him guide Pegasus. Reins applies the same idea to AI agents: raw power is not enough — what matters is making it controllable.

Reins enforces deterministic security policies on every agent action, scans your configs for OWASP ASI10 vulnerabilities, and tracks drift over time. Policies evaluate in under 50ms. Works with Claude Code PreToolUse and PostToolUse hooks, OpenClaw, and any MCP-compatible agent.

Quickstart

npm install -g @pegasi-ai/reins
reins init

Claude Code Skill

Install the Reins skill to give Claude Code awareness of your security posture:

mkdir -p ~/.claude/skills/reins
curl -o ~/.claude/skills/reins/SKILL.md \
  https://raw.githubusercontent.com/pegasi-ai/reins/main/.claude/skills/reins/SKILL.md

Or clone the repo — the skill is included at .claude/skills/reins/ automatically.

Demo

An OpenClaw agent tries to bulk-delete 4,382 Gmail messages. Reins blocks it before execution.

What Reins does

  • Prevent — Block destructive actions before execution. Score irreversibility. Detect risky browser state.
  • Pause — Route high-impact actions through terminal or messaging approval flows. Require explicit CONFIRM-* tokens for catastrophic operations.
  • Prove — Preserve an immutable audit trail of every decision, approval, and block.

Security guarantees

  • Zero Trust — every action evaluated before execution
  • Synchronous — agent cannot proceed until the hook exits
  • No network in the hot path — policies cached locally, enforced offline
  • Fail-closed — any unhandled hook error blocks the action
  • Immutable audit — append-only JSONL at ~/.openclaw/reins/decisions.jsonl

Documentation

Full docs at reins.sh/docs:

Contributing

PRs welcome. See CONTRIBUTING.md.

License

Apache 2.0 — see LICENSE.

Xem mã nguồn trên GitHub