clef-gate

by Dwain Barnes · ★ 0 · updated 2 days ago

ReskinsGuardsCommandsvalidates

0

Asks a local Clef decision model whether an expensive tool call or subagent is actually needed before Claude Code pays for it. Logs every decision; shadow mode by default.

install clef-gate

Install

/plugin marketplace add dwain-barnes/clef-gate
/plugin install clef-gate@clef-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
ui.rendersession.startsession.endturn.starttool.callagent.spawnturn.completecommand.run
API calls
$.clock.now$.clock.sleep$.command.register$.env.get$.fs.list$.fs.read$.fs.write$.http.fetch$.session.id$.session.messages$.state.get$.state.set$.store.get$.store.set$.ui.invalidate$.ui.toast
Draws
PromptHint
Can see
every tool callsubagent spawns
Reach
level 3 of 3 other: $.state.getother: $.state.setnetworkwrites filesreads filesreads env varsreads the transcriptpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/dwain-barnes/clef-gate
Path in repo
repository root
Source commit
449955e the exact code the scan read
Author
Dwain Barnes @dwain-barnes
License
Apache-2.0
First published
Last pushed
First listed here

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.