Skip to content

playbook 3.4.0

Choose a tag to compare

@andresfrei andresfrei released this 20 Nov 10:51
· 72 commits to main since this release
185cffe

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 (including git -C <dir> push), gh pr create, gh pr merge, and gh release create, edit, or delete, a hook of playbook-agents makes Claude Code ask you. It also asks in bypassPermissions mode and inside subagents. In claude -p the 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.json or .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, and git clean;
    • the sandbox;
    • optionally, keeping commands from running outside the sandbox.
  • One more general rule. decided-behaviour-changed-without-decision joins 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 bwrap and socat.