Safety for Agents — Agent Detection & Response for AI coding assistants Sage is a lightweight security layer that protects AI agents from executing dangerous actions.
FAQ
sage is a Claude Code plugin with 1 hand-picked skill for security work, indexed on Flowy. Install it with the command on its page. It includes security-awareness. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add gendigitalinc/sage> /plugin install sage@sage
Repo: gendigitalinc/sage
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 for details.
Visit ai.gendigital.com/sage for the latest installation instructions, or use the platform-specific guides below.
Claude Code — install guide · requires Node.js >= 18
/plugin marketplace add https://github.com/gendigitalinc/sage.git
/plugin install sage@sage
Cursor — install guide · install the Gen Sage extension from the marketplace
VS Code — install guide · install the Gen Sage extension from the marketplace
OpenClaw — install guide · install from npm
openclaw plugins install @gendigital/sage-openclaw
OpenCode — install from npm by adding to ~/.config/opencode/opencode.json:
{
"plugin": ["@gendigital/sage-opencode"]
}
See the User Guide for detailed instructions, configuration, and troubleshooting.
For privacy considerations, please refer to Privacy.
| Document | Description |
|---|---|
| User Guide | Installation, usage, configuration, exceptions, platform guides, privacy, FAQ |
| Developer Guide | Architecture, development setup, testing, threat rule format |
| Prompt Injection | ML + heuristic prompt injection detection |
| Package Protection | npm/PyPI supply-chain checks |
| AMSI Scanning | Windows antimalware scanning via AMSI |
| Plugin Scanning | Session-start plugin scanning |
| Audit Log | On-disk JSONL schema (entries, signals, content) |
| MCP Server | Shared MCP server architecture |
| Decision Pipeline | Signal sources, policy model, evaluation order |
| Branding | Product name configuration |
See CONTRIBUTING.md for development setup, coding conventions, and the threat rule contribution process.
Copyright 2026 Gen Digital Inc.
threats/): Detection Rule License 1.1.changeset/
changelog-config.cjs
config.json
.claude-plugin/
marketplace.json
plugin.json
.github/
workflows/
ci.yml
release.yml
.gitignore
biome.json
CLAUDE.md
CONTRIBUTING.md
docs/
amsi-scanning.md
audit-log.md
branding.md
decision-pipeline.md
developer-guide.md
mcp.md
package-protection.md
plugin-scanning.md
prompt-injection.md
user-guide.md
hooks/
hooks.json
images/
block-cc-chmod.gif
block-cc-fetch.gif
block-cursor-chmod.gif
block-cursor-fetch.gif
block-openclaw-allow.gif
block-opencode-allow.gif
icon.png
logo-shaded.png
logo-shaded.svg
LICENSE
NOTICE
package.json
packages/
claude-code/
CHANGELOG.md
dist/
mcp-server.cjs
model-download-worker.cjs
sage-statusline.cjs
session-start.cjs
esbuild.config.js
package.json
README.md
scripts/
build-sea.sh
src/
__tests__/
approval-tracker.test.ts
e2e.test.ts
format.test.ts
hooks-config-contract.test.ts
integration.test.ts
mcp-hook-tools-runtime.test.ts
mcp-server.test.ts
runtime-version.test.ts
sage-statusline.test.ts
session-start.test.ts
skill-registration.test.ts
approval-tracker.ts
constants.ts
format.ts
hook-handlers.ts
mcp-hook-tools.ts
mcp-server.ts
runtime-version.ts
sage-statusline.ts
session-start.ts
tsconfig.json
vitest.config.ts
core/
CHANGELOG.md
package.json
scripts/
eval-pi-accuracy.mjs
src/
__tests__/
agent-layer-threats.test.ts
allowlist-migration.test.ts
amsi-client.test.ts
amsi-koffi-backend.test.ts
amsi-signal.test.ts
approval-store.test.ts
audit-log.test.ts
branding.test.ts
cache.test.ts
command-threats.test.ts
config.test.ts
content-policy.test.ts
content-snapshot.test.ts
content-threats.test.ts
credential-threats.test.ts
decision-snapshot.test.ts
detection-telemetry.test.ts
engine-signal-matrix.test.ts
engine.test.ts
evaluator-disabled-threats.test.ts
evaluator.test.ts
exceptions.test.ts
extended-info.integration.test.ts
extended-info.test.ts
extractors.test.ts
file-check-client.test.ts
file-utils.test.ts
files-threats.test.ts
fixtures/
decision-snapshot.json
pi-benign-50.json
pi-injection-50.json
pi-ioc-snippets.json
guard.test.ts
heuristics.test.ts
installation-id.test.ts
mac-commands-threats.test.ts
mac-credentials-threats.test.ts
mac-files-threats.test.ts
mac-obfuscation-threats.test.ts
mac-persistence-threats.test.ts
mac-supply-chain-threats.test.ts
mitre-threats.test.ts
model-downloader.test.ts
model-manifest.test.ts
model-storage.test.ts
obfuscation-threats.test.ts
operational-log-flush-timeout.test.ts
operational-log.test.ts
package-checker.test.ts
package-extractor.test.ts
package-registry-client.test.ts
persistence-threats.test.ts
pi-check.test.ts
pi-deps-installer.test.ts
plugin-scan-cache.test.ts
plugin-scanner-amsi.test.ts
plugin-scanner-file-check.test.ts
plugin-scanner-skill-check.test.ts
policy.test.ts
product-version.test.ts
prompt-injection-threats.test.ts
scan-handler.test.ts
self-defense-threats.test.ts
skill-check-client.test.ts
skill-id.test.ts
skill-loading.test.ts
statusline.test.ts
supply-chain-threats.test.ts
test-helper.ts
test-utils.ts
threat-loader.test.ts
tokenizer.test.ts
tool-names.test.ts
trusted-domains.test.ts
url-check.test.ts
version-check.test.ts
version.test.ts
win-commands-threats.test.ts
win-credentials-threats.test.ts
win-files-threats.test.ts
win-obfuscation-threats.test.ts
win-persistence-threats.test.ts
win-supply-chain-threats.test.ts
allowlist-migration.ts
approval-store.ts
audit-log.ts
brands.ts
cache.ts
clients/
amsi-spawn.ts
amsi.ts
content-fetch.ts
file-check.ts
model-downloader.ts
model-manifest.ts
package-registry.ts
pi-check.ts
pi-deps-installer.ts
skill-check.ts
tokenizer.ts
url-check.ts
config-diagnostics.ts
config.ts
content-policy.ts
content-snapshot.ts
detection-telemetry.ts
engine.ts
evaluator.ts
exceptions.ts
extended-info.ts
extractors.ts
file-utils.ts
format.ts
guard.ts
heuristics.ts
index.ts
installation-id.ts
jsonl-log-writer.ts
model-download-worker.ts
model-download.ts
model-storage.ts
operational-log.ts
package-checker.ts
package-extractor.ts
plugin-scan-cache.ts
plugin-scanner.ts
policy.ts
product-version.ts
sage-proxy.ts
scan-handler.ts
session-start-scan.ts
session-start.ts
skill-id.ts
statusline.ts
threat-loader.ts
tool-names.ts
trusted-domains.ts
types.ts
typings/
koffi.d.ts
url-utils.ts
version-check.ts
version.ts
tsconfig.json
vitest.config.ts
extension/
branded-commands.json
CHANGELOG.md
esbuild.config.cjs
icon.png
LICENSE
package.json
README.md
scripts/
generate-brand-commands.mjs
package-vscode-vsix.mjs
sync-assets.mjs
src/
__tests__/
agent_runtime_version.test.ts
auto-enable.test.ts
e2e-copilot-cli.test.ts
e2e-suite/
index.js
e2e.test.ts
hook_installer_shared.test.ts
integration.test.ts
plugin-discovery.test.ts
startup-scan.test.ts
agent_runtime_version.ts
auto_enable_logic.ts
cursor_extension.ts
cursor_hook_installer.ts
hook_installer_shared.ts
managedHooks.ts
mcp_config_installer.ts
mcp-server.ts
plugin-discovery.ts
sage-hook.ts
shared_extension.ts
startup-scan.ts
uninstall.ts
vscode_extension.ts
vscode_hook_installer.ts
test-workspace/
.gitignore
.gitkeep
tsconfig.json
vitest.config.ts
mcp/
CHANGELOG.md
package.json
src/
__tests__/
false-positive.test.ts
index.ts
server.ts
tools/
false-positive.ts
utils.ts
tsconfig.json
vitest.config.ts
openclaw/
CHANGELOG.md
esbuild.config.js
openclaw.plugin.json
package.json
README.md
scripts/
sync-assets.mjs
src/
__tests__/
e2e-integration.test.ts
e2e.test.ts
index.test.ts
plugin-discovery.test.ts
skill-registration.test.ts
test-helpers.ts
tool-handler.test.ts
bundled-dirs.ts
index.ts
mcp-server.ts
plugin-discovery.ts
startup-scan.ts
tool-handler.ts
tsconfig.json
vitest.config.ts
opencode/
CHANGELOG.md
esbuild.config.mjs
package.json
README.md
scripts/
sync-assets.mjs
src/
__tests__/
e2e.test.ts
integration.test.ts
bundled-dirs.ts
error.ts
extractors.ts
index.ts
mcp-server.ts
plugin-discovery.ts
startup-scan.ts
tool-handler.ts
tsconfig.json
vitest.config.ts
pnpm-lock.yaml
pnpm-workspace.yaml
README.md
scripts/
check-changeset.sh
check-workspace-refs.mjs
clean.mjs
git-hooks/
.gitattributes
install.sh
lib/
util.sh
pre-commit
pre-push
pre-release-audit.sh
sync-manifests.mjs
vitest-global-setup.mjs
SECURITY.md
skills/
security-awareness/
SKILL.md
threats/
agent-layer.yaml
commands.yaml
credentials.yaml
dummy.yaml
files.yaml
LICENSE
mac-commands.yaml
mac-credentials.yaml
mac-files.yaml
mac-obfuscation.yaml
mac-persistence.yaml
mac-supply-chain.yaml
mitre.yaml
obfuscation.yaml
persistence.yaml
prompt-injection.yaml
self-defense.yaml
supply_chain.yaml
urls.yaml
win-commands.yaml
win-credentials.yaml
win-files.yaml
win-obfuscation.yaml
win-persistence.yaml
win-supply-chain.yaml
trusted-domains/
trusted-installer-domains.yaml
tsconfig.base.json
vitest.config.ts
vitest.e2e.config.ts© 2026 Flowy · Free and open source
Built for Claude Code · Not affiliated with Anthropic