Skip to content

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>.tgz

Or install this module only

npx --yes @bastilleworks/bastille-install bastilleworks-pi-edit-guard-<version>.tgz

The installer fetches @bastilleworks/shared from public npm automatically. Replace <version> with the version you downloaded.

Usage Instructions

Pi command

/edit-guard

Pi command

/edit-guard deny-hold on|off

Pi command

/edit-guard read-retry on|off

Pi command

/edit-guard post-verify on|off

Pi command

/edit-guard status

Each guardrail is independent. Toggle them individually or all at once.

Uninstall

Uninstall this extension

pi uninstall npm:@bastilleworks/pi-edit-guard

Or uninstall the entire bundle

npx --yes @bastilleworks/bastille-install uninstall bastilleworks-pro-<version>.tgz

Notes

  • Requires a valid Polar license.