mirror of
https://github.com/pratikwayal01/datacloak.git
synced 2026-10-26 06:59:34 +01:00
datacloak + pi (~/.pi/agent)
- Copy
guard.sh+observe.shto the hook dir — global~/.pi/agent/hook/(all projects) or project<root>/.pi/hook/(this repo only) — andchmod +xboth. - Copy
hooks.yamlentries into your pi hooks config, adjusting thebash:paths to wherever you put the scripts. - Trust the hooks: run
/hooks-trustin pi, or setPI_YAML_HOOKS_TRUST_PROJECT=1. - Both shims call
datacloakfrom PATH. SetDATACLOAK_VAULTif you share one vault file across sessions.
Limitations: user.prompt.submit output is prompt context-only (cannot block);
tool.after observe is observe-only — it notes a possible secret but always exits 0.