How acunningham-ship-it/leakproof works
leakproof is a local-first secret and PII firewall for AI coding tools. Developers either run a tool through its local proxy, which scans outbound requests and monitors, redacts, or blocks them before forwarding, or install a Git hook to scan staged changes before commit. Both surfaces produce audit events that the watch dashboard reads. Scanning combines deterministic rules with an optional local-model pass. Edges reflect excerpts, SOURCE INDEX references, and README statements; adapters and some CLI routing details were not sampled, so uncertain connections are omitted or marked unverified.
Main entry points: server.py Egress proxy · cli.py CLI commands · __init__.py Scan and redact · core.py Staged-change check
Components 16
User entry points
- CLI commands
src/leakproof/cli.py - Tool adapters
src/leakproof/adapters.py - Hook installer
src/leakproof/hook/install.py
Detection
- Scan and redact
src/leakproof/scanner/__init__.py - Rules and entropy
src/leakproof/scanner/rules.py - Semantic scan
src/leakproof/scanner/semantic.py
Firewall surfaces
- Egress proxy
src/leakproof/proxy/server.py - Staged-change check
src/leakproof/hook/core.py
Audit and review
- Audit log
src/leakproof/audit.py - Watch dashboard
src/leakproof/tui/dashboard.py - Demo event generator
src/leakproof/audit_demo.py
Other components
- Developer
- AI coding tool
- Model API
- Local Ollama
- Git commit
Connections 20
- Developer → CLI commands: runs commands
README.md - CLI commands → Egress proxy: starts proxy
README.md - CLI commands → Tool adapters: launches tool
- Tool adapters → AI coding tool: sets base URL
- AI coding tool → Egress proxy: sends requests
README.md - Egress proxy → Scan and redact: scans payload
src/leakproof/proxy/server.py - Egress proxy → Audit log: records events
src/leakproof/proxy/server.py - Egress proxy → Model API: forwards request
README.md - Developer → Hook installer: installs hook
README.md - Hook installer → Staged-change check: installs entry point
src/leakproof/hook/install.py - Git commit → Staged-change check: checks staged changes
- Staged-change check → Scan and redact: scans and redacts
src/leakproof/hook/core.py - Staged-change check → Audit log: records findings
src/leakproof/hook/core.py - Scan and redact → Rules and entropy: runs detectors
src/leakproof/scanner/__init__.py - Scan and redact → Semantic scan: adds semantic findings
src/leakproof/scanner/__init__.py - Semantic scan → Local Ollama: queries local model
src/leakproof/scanner/semantic.py - Developer → Watch dashboard: watches activity
README.md - Watch dashboard → Audit log: reads events
src/leakproof/tui/dashboard.py - Demo event generator → Audit log: writes demo events
src/leakproof/audit_demo.py - CLI commands → Demo event generator: generates demo log
src/leakproof/cli.py