Skip to main content
AWL-001
← Back to projects
Developer Tools

shell-pilot

A zsh/bash precheck/postcheck hook installed via PyPI. It intercepts every command before execution, runs 14 regex danger rules with zero network, corrects typos against your live $PATH, and on failure redacts secrets before asking Claude Haiku for a one-sentence fix. SQLite caches API responses for 7 days.

Key figures

58 Tests passing
14 Danger rules
v0.1.0 Version

What it does

  • 14 danger rules covering rm -rf, force-push, dd disk wipes, fork bombs, DROP TABLE, chmod 777 — zero latency, zero network
  • Typo correction via difflib against every binary on $PATH — fully local, no cloud call, instant
  • Secret redaction strips passwords, AWS keys, bearer tokens, hex secrets before any LLM call
  • Shell analytics: top-command heatmap, failure summary, alias suggestions via stats subcommand
  • SQLite cache (7-day TTL) prevents redundant Haiku calls for identical errors — 58 tests passing