modscode JA

modscode / Gallery / jev

jev

Jev picks the tool that fits Claude's next step and Claude gets it as a hint, shown live and measured against a control group. Native to Claude Code: no gateway, no proxy.

Code you can checkTerminal + desktopPaneBandToastBoxButtonText

What it does

  • Draws a pane, a band above the prompt, toasts in the desktop app
  • Adds /jev, /jev-setup
  • Watches tool calls and can refuse them
  • Hooks classic.Stop, prompt.submit, session.start, turn.complete and 2 more
  • Calls the network

Good points

  • Written in TypeScript
  • Has a desktop-specific branch
  • Handles errors

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

register.tsx
import type { Register } from 'claude-code'

// Drawn like jev by Matheus Tonelotto (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/ntkode-jev/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Jev" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const text = '…'
    const routingText = '…'
    const DONE_MODE_TEXT = '…'
    const gateway = '…'
    const tool = '…'
    const duration = '…'
    const steps = '…'
    const tokens = '…'
    const cleanPrompt = '…'
    const ARM_TEXT = '…'
    const doneText = '…'
    const cell = '…'
    const cell2 = '…'
    const cell3 = '…'
    const text2 = '…'
    const hinted = '…'
    const asked = '…'
    const pct = '…'
    const text3 = '…'
    const followed = '…'
    const hinted2 = '…'
    const text4 = '…'
    const toolCounts = '…'
    const text5 = '…'
    const map = '…'
    const text6 = '…'
    const latency = '…'
    const text7 = '…'
    const dollars = '…'
    const jevCost = '…'
    const asked2 = '…'
    const text8 = '…'
    const week = '…'
    const resets = '…'
    const split = '…'
    const line = '…'
    const split2 = '…'
    const line2 = '…'
    const split3 = '…'
    const line3 = '…'
    const turns = '…'
    const requests = '…'
    const controlTurns = '…'
    const latency2 = '…'
    const DONE_NEXT = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between">
          <Text>
            <Text bold>
              Jev
            </Text>
            <Text>
              {" ● "}
              {text}
            </Text>
            <Text color="yellow">
              {" "}
              {routingText}
            </Text>
          </Text>
          <Text dimColor />
        </Box>
        <Text dimColor wrap="truncate-end">
          {"asked before each of Claude's requests · hints at ≥ 0.7 · "}
          20
          % control turns
        </Text>
        <Text wrap="truncate-end">
          <Text dimColor>
            {"done check "}
          </Text>
          <Text color="cyan">
            {DONE_MODE_TEXT}
          </Text>
        </Text>
        <Text color="yellow" wrap="wrap">
          This session's requests go through a local proxy (
          {gateway}
          ). If it is jev-gateway, it hints too: run one or the other to measure either.
        </Text>
        <Box marginTop={1}>
          <Text wrap="truncate-end">
            <Text color="yellow">
              {"▶ now "}
            </Text>
            <Text>
              Claude working
              {` · ${tool}`}
            </Text>
          </Text>
        </Box>
        <Box marginTop={1} flexDirection="column">
          <Text>
            <Text bold>
              Last turn
            </Text>
            <Text dimColor>
              {"  "}
              {duration}
              {" · "}
              {steps}
              {" requests"}
              {` · ${tokens} out`}
            </Text>
          </Text>
          <Box flexDirection="column">
            <Text dimColor italic wrap="truncate-end">
              “
              {cleanPrompt}
              ”
            </Text>
            <Text dimColor>
              {ARM_TEXT}
            </Text>
            <Text>
              {"done check · "}
              {doneText}
            </Text>
            <Box flexDirection="column" marginTop={1}>
              <Text wrap="wrap">
                <Text>
                  {cell}
                </Text>
                <Text>
                  {cell2}
                </Text>
                <Text>
                  {cell3}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {text2}
                </Text>
                <Text color="cyan" bold>
                  {hinted}
                </Text>
                <Text dimColor>
                  {" of "}
                  {asked}
                  {" asks"}
                  {pct}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {text3}
                </Text>
                <Text bold>
                  {followed}
                </Text>
                <Text dimColor>
                  {" of "}
                  {hinted2}
                </Text>
              </Text>
              <Text wrap="wrap">
                <Text dimColor>
                  {text4}
                </Text>
                <Text color="cyan">
                  {toolCounts}
                </Text>
              </Text>
              <Text wrap="wrap">
                <Text dimColor>
                  {text5}
                </Text>
                <Text>
                  {map}
                </Text>
              </Text>
              <Text>
                <Text dimColor>
                  {text6}
                </Text>
                <Text color="yellow">
                  {latency}
                </Text>
                <Text dimColor>
                  {" per ask, before Claude's request"}
                </Text>
              </Text>
            </Box>
          </Box>
        </Box>
        <Box marginTop={1} flexDirection="column">
          <Text>
            <Text bold>
              Spend
            </Text>
            <Text dimColor>
              {" this session"}
            </Text>
          </Text>
          <Text wrap="truncate-end">
            <Text dimColor>
              {text7}
            </Text>
            <Text>
              {"Claude "}
              {dollars}
            </Text>
            <Text dimColor>
              {" at API prices"}
            </Text>
            <Text>
              {" · Jev "}
              {jevCost}
            </Text>
            <Text dimColor>
              {" over "}
              {asked2}
              {" asks"}
            </Text>
          </Text>
          <Text wrap="truncate-end">
            <Text dimColor>
              {text8}
            </Text>
            <Text color="red" bold>
              {week}
              %
            </Text>
            <Text dimColor>
              {" used"}
              {` · resets ${resets}`}
            </Text>
          </Text>
        </Box>
        <Box marginTop={1} flexDirection="column">
          <Text wrap="wrap">
            <Text bold>
              {split}
            </Text>
            <Text dimColor>
              {line}
            </Text>
          </Text>
          <Text wrap="wrap">
            <Text bold>
              {split2}
            </Text>
            <Text dimColor>
              {line2}
            </Text>
          </Text>
          <Text wrap="wrap">
            <Text bold>
              {split3}
            </Text>
            <Text dimColor>
              {line3}
            </Text>
          </Text>
        </Box>
        <Box marginTop={1} flexDirection="column">
          <Text bold>
            This session
          </Text>
          <Box flexDirection="row" flexWrap="wrap">
            <Box flexDirection="column" marginRight={3}>
              <Text bold>
                {turns}
              </Text>
              <Text dimColor>
                turns
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold>
                {requests}
              </Text>
              <Text dimColor>
                requests
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold color="cyan">
                {`${hinted}${pct}`}
              </Text>
              <Text dimColor>
                hinted
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold>
                {`${followed}${pct}`}
              </Text>
              <Text dimColor>
                followed
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold>
                {controlTurns}
              </Text>
              <Text dimColor>
                control turns
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold>
                {tokens}
              </Text>
              <Text dimColor>
                output
              </Text>
            </Box>
            <Box flexDirection="column" marginRight={3}>
              <Text bold color="yellow">
                {latency2}
              </Text>
              <Text dimColor>
                Jev p50
              </Text>
            </Box>
          </Box>
        </Box>
        <Box marginTop={1}>
          <Text dimColor wrap="wrap">
            Shadow: Jev is asked and its picks are recorded, but Claude never sees them. The last 7 days show how often Claude chos…
          </Text>
        </Box>
        <Box marginTop={1} flexDirection="row" flexWrap="wrap" columnGap={2}>
          <Button hotkey="s" plain variant="primary" label="set up" />
          <Button hotkey="p" plain label="resume" />
          <Button hotkey="d" plain label={`done check: ${DONE_NEXT}`} />
          <Button role="dismiss" plain label="close" />
        </Box>
      </Box>
    )
  })

  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text } = $.ui.resolve(e)
    const tool = '…'
    const status2 = '…'
    return (
      <Box flexDirection="column">
        <Box>
          <Text color="yellow">
            {"◆ "}
          </Text>
          <Text>
            Claude working
            {` · ${tool}`}
          </Text>
          <Text dimColor>
            {" · "}
            {status2}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const deny = '…'
    const message = '…'
    await $.ui.toast(`Jev: the done check stays shadow (${deny}).`)
    await $.ui.toast(`Jev: the done check stays shadow (${message}).`)
    return next(e)
  })
}

The mod's own code

Its licence text was not found at the commit read, so only the places in the source are linked.

What its code calls

networkruns programswrites filesenv varstool calls

The design, read from code

Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.

What its code shows

Read from the source at commit 459f3a11bf67 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.

Decides the listing: code you can check
Entry readEvery module hooks/hooks.json names was read.jev/plugins/jev/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.3 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).jev/plugins/jev/hooks/register.tsx:926 chmod (not on Windows)
NetworkWhether every fetch names its https host in the code.jev/plugins/jev/hooks/register.tsx:230 fetch(a.url)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.jev/plugins/jev/hooks/register.tsx:892 a program named at run time; jev/plugins/jev/hooks/register.tsx:961 a program named at run time
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.no licence

This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen

Install it

Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add ntkode/notkode-mods
/plugin install jev@notkode-mods

This installs the marketplace's latest commit, which may not be the one read here (459f3a11bf67). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "ntkode-jev" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs