shellguardian — Cursor Agents | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorAgentsshellguardian
    Back to Agents
    shellguardian

    shellguardian

    zedoodez March 30, 2026
    1 copies 0 downloads

    A deletion guardrail for Codex, Claude Code, Cursor, and other AI coding agents.

    Agent Definition
    # ShellGuardian
    
    Protect AI coding agents from deleting the wrong files before it happens.
    
    `ShellGuardian` is a Python-first open source deletion guardrail for Codex, Claude Code, Cursor, Cursor, and other agentic workflows.
    
    Unlike a traditional `safe-rm` wrapper, ShellGuardian focuses on prevention first:
    
    - preview deletion risk before anything is removed
    - scan the current project and suggest cleanup targets
    - block obviously dangerous targets such as `src/`, `.git/`, or the workspace root
    - delete only likely disposable files by default
    - require confirmation for ambiguous paths
    - help humans understand why something looks risky
    
    It is designed for three reuse layers:
    
    - Library: `safe_delete()`, `preview_delete()`, `smart_delete()`, `safe_move()`, `safe_exec()`
    - CLI: `shellguardian preview|rm|move|exec`
    - Future server/webhook support: policy validation and audit logging are separated from the transport layer
    
    ## Agent-ready
    
    ShellGuardian can also be embedded into AI coding agent workflows, not just used as a standalone CLI.
    
    - `--json` results include a `guidance` object with natural-language risk explanations and next-step suggestions
    - prompt templates for Codex and Claude Code are included in [`prompts/`](./prompts/)
    - the recommended interaction protocol is documented in [`docs/agent-protocol.md`](./docs/agent-protocol.md)
    
    This makes ShellGuardian useful even for users who are not very comfortable with command-line deletion flows, because an agent can explain the risk before taking action.
    
    ## Why this exists
    
    AI coding agents are great at automating shell tasks, but they are also very capable of deleting the wrong directory for very boring reasons:
    
    - they misread the current path
    - they confuse sibling directories
    - they over-apply cleanup commands
    - they treat unknown files as disposable
    - they fall back to raw shell deletion when a safer API should have been used
    
    ShellGuardian flips the default:
    
    - reject protected paths
    - keep work inside the c

    Tags

    ai-agentscliguardrailspythonsecurityshell

    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.