Secure Claude Code agent workflows with automated detection and response: block malware, command injection, reverse shells; enforce git safety via pre-commit validation, force-push blocks, destructive command prevention; guide URL, credential, supply chain best practices; review edits for staleness and safety.
npx claudepluginhub gendigitalinc/sage --plugin sageSafety for Agents - a lightweight Agent Detection & Response (ADR) layer for AI agents that guards commands, files, and web requests.
Sage intercepts tool calls (Bash commands, URL fetches, file writes) via hook systems in Claude Code, Cursor / VS Code, OpenClaw, and OpenCode, and checks them against:
Requires Node.js >= 18.
/plugin marketplace add https://github.com/gendigitalinc/sage.git
/plugin install sage@sage
Install the official extension from the Cursor extension marketplace. Alternatively, build from source:
pnpm install && pnpm -C packages/extension run package:cursor:vsix
Install the official extension from the VS Code extension marketplace. To use Sage’s MCP tools, start the MCP server manually via: MCP: List Server → sage → Start server.
Alternatively, build from source:
pnpm install && pnpm -C packages/extension run package:vscode:vsix
# From npm (recommended)
openclaw plugins install @gendigital/sage-openclaw
# From source
pnpm install && pnpm build
cp -r packages/openclaw sage && openclaw plugins install ./sage
Use a local source checkout and add the plugin path in OpenCode config:
git clone https://github.com/gendigitalinc/sage
cd sage
pnpm install
pnpm --filter @gendigital/sage-opencode run build
{
"plugin": ["/absolute/path/to/sage/packages/opencode"]
}
See Getting Started for detailed instructions.
| Document | Description |
|---|---|
| Getting Started | Installation for all platforms |
| How It Works | Detection layers, data flow, verdicts |
| Configuration | All config options and file paths |
| Threat Rules | YAML rule format and what gets checked |
| Package Protection | npm/PyPI supply-chain checks |
| Plugin Scanning | Session-start plugin scanning |
| AMSI Scanning | Windows antimalware scanning via AMSI |
| Architecture | Monorepo structure, packages, design decisions |
| MCP Server | Shared MCP server architecture + auto-install |
| Development | Building, testing, tooling, conventions |
| FAQ | Common questions |
| Privacy | What data is sent, what stays local |
Platform guides: Claude Code · Cursor / VS Code · OpenClaw · OpenCode
mcp__*) is not yet implemented~/.sage/threats/) are not yet implementedSage sends URLs and package hashes to Gen Digital reputation APIs. File content, commands, and source code stay local. Both services can be disabled for fully offline operation. See Privacy for details.
See CONTRIBUTING.md for development setup, coding conventions, and the threat rule contribution process.
Copyright 2026 Gen Digital Inc.
threats/): Detection Rule License 1.1Battle-tested Claude Code plugin for engineering teams — 48 agents, 184 skills, 79 legacy command shims, production-ready hooks, and selective install workflows evolved through continuous real-world use
Admin access level
Server config contains admin-level keywords
Executes bash commands
Hook triggers when Bash tool is used
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Complete collection of battle-tested Claude Code configs agents, skills, hooks, rules, and legacy command shims evolved over 10+ months of intensive daily use
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Stripe development plugin for Claude
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use
Modifies files
Hook triggers on file write and edit operations
Modifies files
Hook triggers on file write and edit operations