Skip to content

Jev decides whether Cue acts (System 1), Claude decides what to show (System 2) - #53

Merged
a-Fig merged 1 commit into
mainfrom
jev-gate
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
jev-gate

Conversation

@a-Fig

@a-Fig a-Fig commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Closes #50

Why

Tyler wants Cue in the hackathon's "Best Use of System One Models" track (closes 3:00 PM PST today). Cue has a natural System 1 job. Every few seconds it must decide whether anything should go on the shared screen, and the answer is usually no. Until now each of those "no"s cost a full Claude call, about 1.6 s and $0.002.

Flag for Tyler: this adds OpenRouter (Jev) as an outside service with its own key. OPENROUTER_API_KEY is now in the root .env on Tyler's laptop, copied from jev-score's .env.local.

Change

  • System 1 is Jev (typesafe/jev-1.13, OpenRouter's decisions API). agent.js's jevGate() asks one scored question, "would putting something on the shared screen right now clearly help?", with the criteria No / Maybe / Yes. The state it gets: the newest 12 lines, CURRENT SCREEN and recent actions. Cue stays quiet only when Jev puts at least JEV_QUIET_AT (0.7) on "No".
  • System 2 is Claude. It runs for every other tick and decides what to show, exactly as before.
  • The reflex never stands between a person and Cue.
    • Being addressed skips it. The page now sends addressed: true with the request, and the server also checks the last 3 lines for a wake word.
    • Any error, a non-200 reply, or no answer within 2.5 s goes on to Claude.
  • On whenever OPENROUTER_API_KEY is set. CUE_GATE=off turns it off.
  • What System 1 did is visible. think() returns gate: {model, score, confidence, quiet, ms, usd, act}. The server log adds [system 1 jev act|quiet Nms], and the console shows jev: quiet score … p(quiet) … conf ….
  • .env.example, CLAUDE.md and the docs/VISION.md budgets section say how the two systems split the work.

Builds on #36 (merged), which owns think()'s plumbing. Its Haiku gate (CLAUDE_GATE_MODEL) is left as it was.

Screenshots

None: nothing visible on Cue's screen changes.

Verified

Gate off (#36) Jev gate on
Score 33/33 30/33 (the one "annoying" is Claude showing Lisbon weather as a slide, which Jev passed on as it should; #36 saw the same miss in other runs)
Missed 0 0
Quiet ticks Jev settled alone n/a 10 of 22, 0 wrong
Quiet tick, settled by Jev n/a 231 ms median, ~$0.00002
Quiet tick, settled by Claude 1.7 s, $0.0019 1.6 s, $0.0019
All quiet ticks $0.0019 $0.0011
Projected hour $0.79 (with the filler skip) $0.79

The projected hour barely moves because research ticks dominate the cost. The win is speed and calls avoided on the quiet half of the meeting.

Not checked: a real Recall call.

Review

Pending (manager). This changes agent.js and server.js, so it needs an Opus review before merge.

🤖 Generated with Claude Code

…, for #50

Most ticks of a meeting need nothing on screen, yet each one paid for a
full Claude call (about 1.6 s and $0.002) just to answer "stay quiet".
Jev answers that one question in about 230 ms for about $0.00002, so it
now runs first. Claude gets the tick only when Jev isn't confident the
answer is no (p(quiet) < JEV_QUIET_AT, 0.7).

The reflex must never cost a request: being addressed ("Cue, ...", which
the page now sends as `addressed`, or a wake word in the last 3 lines)
skips it, and any error or a slow answer (over 2.5 s) goes on to Claude.
In the replay, Jev settled 10 of 22 quiet ticks with none wrong and no
action tick blocked. Tyler wants Cue in the hackathon's System One track.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@a-Fig
a-Fig merged commit 4487bd3 into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the jev-gate branch November 13, 2026 21:45
rvaichal added a commit that referenced this pull request Nov 13, 2026
#15 is settled when VISION.md says plainly what is sent where and what is kept. Records Tyler's four answers (2026-11-13) under What is settled, with the sources read that day, and Jev's OpenRouter call from #53, whose retention is not checked yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Jev, a System 1 model, as Cue's act-or-stay-quiet reflex

1 participant