Quick Install
~\.rampart\bin, adds it to your PATH, and offers to set up Claude Code hooks automatically.
Manual install: Download the .zip from GitHub Releases, extract rampart.exe, and add to your PATH.
Setup Claude Code
That’s It — You’re Protected!
After runningrampart setup claude-code, dangerous commands are blocked immediately. No need to run rampart serve for basic protection — the hook evaluates policies locally.
Optional: Policy Server
Runrampart serve if you want:
- Live dashboard —
rampart watchshows real-time decisions - Approval flow —
action: askpolicies need serve to handle human review - Centralized audit — stream events to the dashboard
Verify Installation
Windows-Specific Notes
What Works
| Feature | Status |
|---|---|
rampart serve | ✅ Works (foreground only) |
rampart setup claude-code | ✅ Works |
rampart hook | ✅ Works |
rampart test | ✅ Works |
rampart watch | ✅ Works |
rampart mcp | ✅ Works |
| Path-based policies | ✅ Works (auto-converts \ to /) |
Limitations
| Feature | Status | Notes |
|---|---|---|
rampart serve --background | ❌ Unix only | Uses fork/exec |
rampart serve stop | ❌ Unix only | Uses SIGTERM |
rampart upgrade | ✅ Works | Downloads .zip asset, replaces rampart.exe |
rampart wrap | ❌ Unix only | Uses $SHELL |
rampart preload | ❌ Linux only | Uses LD_PRELOAD |
Path Matching
Rampart automatically normalizes Windows paths for policy matching:C:\Users\Trevor\.ssh\id_rsa will match **/.ssh/id_* correctly.
Uninstall
%USERPROFILE%\.rampart\bin from PATH: Settings → System → About → Advanced system settings → Environment Variables.
Troubleshooting
Windows Defender / Antivirus Warnings
Rampart is an unsigned binary that modifies other programs’ configurations (Claude Code hooks). This may trigger security warnings: SmartScreen “Windows protected your PC”:
Windows Defender quarantine:
Corporate antivirus blocking:
Contact your IT team to whitelist
rampart.exe, or install to a location your AV trusts.
”rampart is not recognized”
The installer refreshes PATH automatically, but if it doesn’t work:Installation fails with “Access Denied”
If a previous install left files with broken permissions:Claude Code not seeing hooks
Policy not blocking commands
Known Behavior
action: ask in --dangerously-skip-permissions mode
action: ask shows the native approval prompt even when Claude Code is launched with --dangerously-skip-permissions. Claude Code honors hook-returned permission decisions regardless of the bypass flag.
Next Steps
- Native Ask Prompt — inline approval dialogs for sensitive commands