sh-guard — Cursor Agents | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorAgentssh-guard
    Back to Agents
    sh-guard

    sh-guard

    aryanbhosale April 4, 2026
    14 copies 0 downloads

    Semantic shell command safety classifier — AST-based risk scoring for AI coding agents

    Agent Definition
    # sh-guard
    
    [![crates.io](https://img.shields.io/crates/v/sh-guard-core?color=orange&label=crates.io)](https://crates.io/crates/sh-guard-core)
    [![npm](https://img.shields.io/npm/v/sh-guard?color=blue&label=npm)](https://www.npmjs.com/package/sh-guard)
    [![PyPI](https://img.shields.io/pypi/v/sh-guard?color=blue&label=pypi)](https://pypi.org/project/sh-guard/)
    [![CI](https://github.com/aryanbhosale/sh-guard/actions/workflows/ci.yml/badge.svg)](https://github.com/aryanbhosale/sh-guard/actions/workflows/ci.yml)
    [![License: GPLv3](https://img.shields.io/badge/license-GPLv3-blue)](LICENSE)
    [![Docker](https://img.shields.io/badge/docker-ghcr.io-blue)](https://github.com/aryanbhosale/sh-guard/pkgs/container/sh-guard)
    
    Semantic shell command safety classifier for AI coding agents. Parses commands into ASTs, analyzes data flow through pipelines, and scores risk in under 100 microseconds.
    
    ```
    $ sh-guard "rm -rf /"
    CRITICAL (100): File deletion: targeting filesystem root, recursive deletion
      Risk factors: recursivedelete
      MITRE ATT&CK: T1485
    
    $ sh-guard "ls -la"
    SAFE (0): Information command
    ```
    
    ## The Problem
    
    AI coding agents (Claude Code, Codex, Cursor, etc.) execute shell commands on your behalf. Real incidents include:
    
    - `rm -rf ~/` deleting a developer's entire home directory
    - A production database dropped by an AI agent during a code freeze
    - 70+ git-tracked files deleted after explicit "don't run anything" instructions
    - 43% of MCP server implementations containing command injection flaws
    
    **sh-guard catches these before execution.**
    
    ## Install
    
    ```bash
    # Homebrew (macOS / Linux)
    brew install aryanbhosale/tap/sh-guard
    
    # Cargo (Rust)
    cargo install sh-guard-cli
    
    # npm (CLI)
    npm install -g sh-guard-cli
    
    # PyPI
    pip install sh-guard
    
    # Docker
    docker run --rm ghcr.io/aryanbhosale/sh-guard "rm -rf /"
    
    # Or: Snap, Chocolatey, WinGet, GitHub Releases
    # See full install options below
    ```
    
    ## Quick Start
    
    ### 1. Protect all your AI agents in one command
    
    ```bash
    sh-guard --

    Tags

    ai-agentbashclaude-codeclicodexcommand-injectioncursordevtoolsmcpmitre-attack

    Comments

    More Agents

    View all
    documentation

    Documentation & Onboarding Agent

    Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.

    C
    Community
    debugging

    Cursor Bug Triage Agent

    Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.

    C
    Community
    api

    API Integration Agent

    Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.

    C
    Community
    coding

    Cursor Agent Mode

    Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.

    C
    Cursor Team
    cloud

    Cursor Background Agent

    Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.

    C
    Cursor Team
    composer

    Cursor Composer Agent

    Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.

    C
    Cursor Team

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.