Claude Skill
gendigitalinc/sage
Sage 是一个轻量级 AI 代理检测与响应(ADR)层,守护 AI 代理的命令、文件及网络请求。集成 Claude Code、Cursor 和 VS Code。
概览
仓库信息
安装这个 Skill
git clone https://github.com/gendigitalinc/sage.gitRegistry 信息
项目简介
Sage 是一个轻量级的 AI 代理检测与响应(ADR)层,用于监控和守护 AI 代理执行的命令、文件操作及网络请求。作为 Gen 代理信任中心的一部分,它与 Claude Code、Cursor 和 VS Code 集成,提供实时安全监控,且不增加过多负担。
Lightweight Agent Detection & Response (ADR) layer for AI agents — guards commands, files, and web requests. Part of Gen Agent Trust Hub.
要点
- 轻量级 AI 代理检测与响应(ADR)层
- 守护命令、文件操作及网络请求
- 集成 Claude Code、Cursor 和 VS Code
- 属于 Gen 代理信任中心生态系统
- 对代理行为进行实时检测与响应
使用场景
- 监控并阻止 Claude Code 会话中的不安全命令
- 防止 VS Code 中 AI 代理的未授权文件访问
- 审计 Cursor AI 扩展发出的网络请求
- 在代理工作流中强制执行安全策略
- 在开发环境中实现安全的代理自动化
README 摘要
# Sage <p align="center"> <img src="images/logo-shaded.png" alt="Sage" width="250"> </p> <p align="center"> <strong>Safety for Agents</strong> — Agent Detection & Response for AI coding assistants </p> --- <p align="center"> <img src="images/block-cc-chmod.gif" alt="Sage blocking a dangerous command in Claude Code" width="700"> </p> Sage is a lightweight security layer that protects AI agents from executing dangerous actions. It intercepts tool calls — shell commands, URL fetches, file writes — and checks them against multiple threat detection layers before they run. > **Note:** Sage may appear under a different product name (e.g., Norton Sage, Avast Sage) depending on how it was installed. See [Branding](docs/branding.md) for details. ## Key Features - **URL reputation** — cloud-based detection of malware, phishing, and scam URLs - **Local heuristics** — 300+ YAML-based threat patterns for dangerous commands, suspicious URLs, credential exposure, and obfuscation - **Prompt injection detection** — two-tier defense (heuristics + fine-tuned ML model) against injected instructions in fetched content. See [Prompt Injection](docs/prompt-injection.md) - **Package supply-chain checks** — registry existence, file reputation, and age analysis for npm/PyPI packages - **Plugin scanning** — scans installed plugins for threats at session start - **AMSI integration** — Windows Antimalware Scan Interface support (Windows + WSL via PowerShell interop; no-op on macOS and non-WSL Linux) ## Quick Start Visit **[ai.gendigital.com/sage](https://ai.gendigital.com/sage)** for the latest installation instructions, or use the platform-specific guides below. **Claude Code** — [install guide](https://ai.gendigital.com/sage#install-claude-code) · requires [Node.js >= 18](https