jevbooks

← All projects

flue-jev-demo

matthewp/flue-jev-demo

Flue agent routing with TypeSafe Jev via Cloudflare AI Gateway

Classification & Routing94%Runner-up: Agent Decisions

What it is

A standalone Cloudflare-targeted Flue example in TypeScript that routes a support agent's work. It is for developers exploring Flue agents on Cloudflare Workers who want typed routing decisions from Jev alongside a chat model.

How it uses Jev

useJevRouter() turns a typed question map into a validated route_with_jev Flue tool. The agent calls it with the user's request as state; Jev returns structured choices, probabilities, and confidence, which the agent reports as selected team, urgency, confidence, and Jev model.

Primitives:choicenoul

Technique worth stealing

Wrap a typed question map into a validated Flue tool so Jev returns structured routing decisions without acting as the chat model.

Try it

cd flue-jev-demo && pnpm install && pnpm dev; run pnpm demo for one Jev request.

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricyes0.79
  • Shows a System One patternunclear0.58
  • Handles uncertaintyno0.06
  • Measuredno0.05
  • Runnableyes0.88
  • Worth recommendingunclear0.50
  • Model replicano0.03
  • Problem scopescore on a 0–2 scale0.54
  • About Jevyes0.97

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.