jev-permission-gate

by Madison Rickert · ★ 23 · updated 2 days ago

GuardsCommandsPromptAutomationvalidates

0

Uses TypeSafe's Jev to allow or deny routine tool calls in auto mode, and hands uncertain ones to the built-in classifier

install jev-permission-gate

Install

git clone https://github.com/madisonrickert/jev-permission-gate
claude --plugin-dir ./jev-permission-gate

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startsession.receiveclassic.UserPromptSubmitclassic.PostToolUsetool.calltool.checkcommand.run
API calls
$.clock.now$.clock.sleep$.command.register$.env.get$.fs.exists$.fs.read$.fs.write$.http.fetch$.session.cwd$.session.messages$.state.get$.state.set$.ui.log
Can see
classic hooksevery tool call
Reach
level 3 of 3 other: $.state.getother: $.state.setnetworkwrites filesreads filesreads env varsreads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/madisonrickert/jev-permission-gate
Path in repo
repository root
Author
Madison Rickert @madisonrickert
License
MIT
First published
Last pushed
First listed here
On X
Mentioned in 2 posts on X

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Posts about this repo

Madison Rickert@MadisonJRickert

Anthropic released native mods for customizing Claude Code yesterday, so I did the obvious thing and built a Jev-based classifier for auto mode! 2x faster permission checks! https://github.com/madisonrickert/jev-permission-gate #ClaudeCode #Jev

Madison Rickert@MadisonJRickert

@ClaudeDevs Aaaand I've just shipped a Jev-based classifier for auto mode :D https://github.com/madisonrickert/jev-permission-gate