pi-edit-guard
ProGovernanceFSL-1.1-ALv2
Three post-edit guardrails. Pause on rejection, retry with current state, and verify what actually landed on disk.
Capabilities
- deny-hold - after a change is rejected, block the next tool call until you send a new prompt.
- read-before-retry - after an edit or write fails, require the agent to read the file before retrying.
- post-verification - after a reviewed change applies, verify the on-disk content matches what was approved.
Installation Instructions
Install the whole bundle
npx --yes @bastilleworks/bastille-install bastilleworks-pro-<version>.tgzOr install this module only
npx --yes @bastilleworks/bastille-install bastilleworks-pi-edit-guard-<version>.tgzThe installer fetches @bastilleworks/shared from public npm automatically. Replace <version> with the version you downloaded.
Usage Instructions
Pi command
/edit-guardPi command
/edit-guard deny-hold on|offPi command
/edit-guard read-retry on|offPi command
/edit-guard post-verify on|offPi command
/edit-guard statusEach guardrail is independent. Toggle them individually or all at once.
Uninstall
Uninstall this extension
pi uninstall npm:@bastilleworks/pi-edit-guardOr uninstall the entire bundle
npx --yes @bastilleworks/bastille-install uninstall bastilleworks-pro-<version>.tgzNotes
- Requires a valid Polar license.