Skip to content

SafeShell v0.2.0 — MCP Server, Claude Code Hook, Docker & CI

Latest

Choose a tag to compare

@2422725977 2422725977 released this 05 Dec 07:17

What's New in v0.2.0

  • Zero-LLM Claude Code PreToolUse Hook (safesh --hook): Intercepts catastrophic Bash commands (rm -rf /, curl | bash, fork bombs, raw dd, syntax errors, placeholder leaks) in <2ms, and downgrades scoped destructive commands (find ... -delete) to ask with an automatic read-only dry_run preview. Run safesh --print-claude-hook for a ready-to-paste ~/.claude/settings.json snippet.
  • Zero-Dependency Stdio MCP Server (safesh-mcp / safesh --mcp): Exposes validate_bash_command, suggest_dry_run, and generate_safe_bash over standard JSON-RPC 2.0 stdio for Claude Desktop, Cursor, Windsurf, and Antigravity.
  • Production Dockerfile & GitHub Actions CI: Automated Python 3.10–3.12 + ShellCheck + pytest (33 tests) + wheel/sdist build verification.
  • Apache-2.0 LICENSE & Terminal Demo GIF: Added repository license, animated assets/demo.gif, updated bilingual READMEs, and cross-linked the SafeShell-3B-v4 / SwiftCypher-4B / SwiftSQL-3B suite.