Show HN: Permission Slips: only your prompt can issue coding-agent grants A developer publishing under the handle kyisaiah47 released Permission Slips, an open-source plugin for Claude Code and Codex that lets only a prompt the human types issue a one-time grant for a risky coding-agent action, with a hook outside the model checking the grant before each tool call runs. The design rests on four rules — only a typed prompt issues a slip, every slip is scoped to a named target, every slip has a defined end, and the guard runs outside the model and fails closed — implemented as two hooks, slip.py issue on UserPromptSubmit and slip.py check on PreToolUse, sharing a per-session locked ledger the model never writes. The project argues that writing "never deploy without asking" in a prompt does not enforce the rule and that approving every tool call stops working after the fortieth prompt, and it installs via /plugin marketplace add kyisaiah47/permission-slips. permission slip noun A permission slip grants one risky agent action that only a prompt the human types can issue. It names what the action permits, ends on a defined condition, and a hook outside the model checks it before the tool call runs. An agent can't sign its own permission slip. The idea comes from sudo, break-glass access and capability tokens. The repo's shape, an essay with working code beside it, comes from 12-Factor Agents by HumanLayer. sudo https://www.sudo.ws/ , 12-Factor Agents https://github.com/humanlayer/12-factor-agents Coding agents now run deploys, apply database migrations, publish packages, spend money on ad platforms and start many subagents at once. Most of those actions should happen only after you approve them and only for the thing you named. Writing "never deploy without asking" in the prompt does not enforce the rule. The model treats it as context. A long task, a summarised history or a confident plan can outweigh it, and the agent that broke the rule also decides whether it followed the rule. Approving every tool call does not enforce the boundary. After the fortieth prompt, you approve without reading, and the call that matters looks like the others. How do you give an agent permission for one dangerous thing, for one stretch of work, in a form it cannot forge? Two hooks share a small ledger. The issue hook reads each prompt you submit and records any slip you typed. The check hook runs before every tool call, matches the call against your rules, and denies a guarded call that holds no valid slip. The model never writes the ledger. It sees only a line saying what was issued or why a call was denied. sequenceDiagram actor Human participant Issue as slip.py issue