Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Rajesh-kumar-rv0.1.0MITIn 1 marketplace
Intercepts AskUserQuestion calls, routes them through TypeSafe Jev, and auto-resolves when confidence is high enough.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Intercepts Claude's AskUserQuestion tool calls, routes each one through
TypeSafe Jev, and auto-resolves it when Jev's
confidence is high enough — so the human only sees questions that genuinely
need them.
The gate is disabled by default (GATE_ENABLED=false). Enable it once
you have a TYPESAFE_API_KEY and are comfortable with the threshold.
Claude calls AskUserQuestion
│
▼
GATE_ENABLED? ── no ──▶ ask human
│ yes
▼
call Jev (Choice question)
│
confidence ≥ threshold?
yes │ │ no
▼ ▼
log (was_asked=false) log (was_asked=true, after human answers)
return auto-answer ask human → record human_pick
│ │
└──────── every 20 decisions: recompute agreement rate ──▶ adjustThreshold
After every 20 decisions the mod looks at the last 50 decisions that have a
human_pick recorded and computes the agreement rate (how often Jev and the
human agree).
| Condition | Effect |
|---|---|
agreementRate >= 0.95 for 2 consecutive windows | Lower threshold by 0.02 (floor 0.60) |
agreementRate < 0.80 | Raise threshold by 0.03 (ceiling 0.95) |
| Otherwise | No change |
Set GATE_ADAPTIVE=false to disable automatic adjustment.
| Key | Default | Description |
|---|---|---|
GATE_ENABLED | false | Set to true to activate auto-resolution |
GATE_THRESHOLD | 0.85 | Starting confidence threshold (0–1) |
GATE_CONTEXT_TURNS | 8 | Conversation turns sent to Jev as context |
GATE_ADAPTIVE | true | Enable adaptive threshold |
TYPESAFE_API_KEY | (empty) | TypeSafe API key — required |
| Command | Effect |
|---|---|
/gate | Show current status, threshold, and recent decisions |
/gate on | Enable the gate (persists in state file) |
/gate off | Disable the gate |
/gate threshold <n> | Set threshold (0.60–0.95) |
/gate stats | Detailed stats: totals, agreement rate, high windows |
/gate reset | Clear the decisions log and stats cache |
callJev in lib/jev.mjs is the only API-specific file. To swap in a
different model or provider, replace callJev with any function that has the
same signature:
callJev(question, options, contextTurns)
→ Promise<{ pickedIndex: number, confidence: number }>
The rest of the mod (threshold adaptation, logging, commands) is provider-agnostic.
When the gate is enabled (GATE_ENABLED=true), every AskUserQuestion call's question text and
options array are sent to the TypeSafe API at api.typesafe.ai. Only the
question and options are sent — not the full conversation or any file contents.
Setting GATE_ADAPTIVE=false stops automatic threshold adjustments but data is still sent to
TypeSafe while GATE_ENABLED=true. Only setting GATE_ENABLED=false (or running /gate off)
prevents any data from leaving the machine.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rajesh-kumar-r/rajesh-claude-mods --plugin decision-gate