Repository navigation
Releases
Releases · kyisaiah47/permission-slips
v0.1.0
Permission Slips is in its first release. It issues scoped, expiring grants for risky coding-agent actions. Only a prompt you type issues a slip, and a hook outside the model checks it before the tool call runs. Permission Slips works with Claude Code and Codex.
slips/slip.pyis one Python 3.8+ script that uses only the standard library. Theissuecommand runs as the UserPromptSubmit hook and records each slip you type. Thecheckcommand runs as the PreToolUse hook and denies a guarded call that holds no valid slip. Thespendcommand ends an until-spent slip from your own script. Thelistcommand prints the slips a session holds.- Slips have four lifetimes:
once,prompt,sessionanduntil-spent. A slip can require a named target. The ledger is per session and file-locked. slips/config.example.jsoncontains an example policy with slip kinds and rules.- The Claude Code plugin includes
.claude-plugin/plugin.json,hooks/hooks.jsonand theslipskill. Install it with/plugin marketplace add kyisaiah47/permission-slips. - Codex has a plugin manifest in
plugin.json, example hooks inexamples/codex/hooks.json, and a setup guide indocs/codex.md. - The test suite has 15 unit tests in
tests/test_slip.py. Run it withpython3 -m unittest discover -s tests. - The docs under
docs/cover the four rules, the slips I run, slips you could write, and a threat model.