Repository navigation
playbook 3.4.0
Ask before what cannot be undone
Claude Code now asks you before the actions you cannot take back, and a new command protects a repository's secrets (work ask-before-irreversible, #40).
- Delivery hook. Before any form of
git push(includinggit -C <dir> push),gh pr create,gh pr merge, andgh releasecreate, edit, or delete, a hook ofplaybook-agentsmakes Claude Code ask you. It also asks inbypassPermissionsmode and inside subagents. Inclaude -pthe ask becomes a refusal that gives the reason. /playbook-agents:protect. Finds the repository's secret files by name and offers four kinds of protection. You choose which ones and whether they go to.claude/settings.jsonor.claude/settings.local.json. The command only adds to what the file already holds. Only you start it. The four protections:- deny rules so Claude Code cannot read those files;
- ask rules before
rm -r,git reset --hard,git branch -D, andgit clean; - the sandbox;
- optionally, keeping commands from running outside the sandbox.
- One more general rule.
decided-behaviour-changed-without-decisionjoins the playbook's general rules.
Nothing to migrate: the wiki format stays 5.
Known limits:
- A heredoc body can make the hook ask without need.
- Read deny rules do not stop every command; the sandbox covers the rest.
- On Linux the sandbox needs
bwrapandsocat.