cd /news/ai-products/talk-to-jev · home topics ai-products article
[ARTICLE · art-133178] src=github.com ↗ pub= topic=ai-products verified=true sentiment=· neutral

Talk to JEV

TypeSafe AI's first System One model, Jev, is the subject of a new open-source demo called Grug that holds conversations by repeatedly selecting the next word from a compact 979-word vocabulary via the API's `choice` primitive. The demo connects to the real Jev API when a `TYPESAFE_API_KEY` is configured and otherwise falls back to a deterministic mock, running a grouped tournament of at most 249 options per sequential word and stopping after 18 words or when Jev selects the dedicated `end` control option. Grug requires Node.js 22.13 or newer, and TypeSafe notes the approach is a toy inversion of Jev's intended use rather than a recommended production chatbot architecture.

read4 min views1 publishedSep 17, 2026
Talk to JEV
Image: Michielbdejong (auto-discovered)

tiny vocabulary. big thought.

TypeSafe says Jev isn't an LLM. Let's talk to it anyway. Grug is a tiny cave-chat experiment that makes Jev hold a conversation by repeatedly choosing its next word from a compact vocabulary. What could grug wrong?

The demo now connects to the real Jev API when TYPESAFE_API_KEY is configured. Without a key it falls back to a deterministic mock, so contributors can still run the interface immediately.

Jev is TypeSafe AI's first System One model. Unlike a large language model, it does not generate arbitrary text. You provide a state plus one or more typed questions, and it returns structured answers that code can use directly.

This demo uses the choice primitive: one answer is selected from options defined in advance, accompanied by a probability distribution and confidence value. In the real API, all questions in one request are evaluated independently and in parallel. Grug intentionally runs a grouped tournament for every sequential word, so this is a toy inversion of Jev's intended use—not a recommended production chatbot architecture.

conversation + words so far
            │
            ▼
  Jev Choice: "next word?"
            │
            ▼
 approved word │ end
            │
            └── repeat until end

The real request shape this project mirrors is:

{
  "state": {
    "conversation": [{ "role": "user", "text": "How do I ship faster?" }],
    "words_so_far": ["make", "small"]
  },
  "model": "jev-latest",
  "questions": {
    "next_word": {
      "type": "choice",
      "instructions": "Choose the next word in Grug reply.",
      "criteria": {
        "thing": null,
        "first": null,
        "end": "The answer is complete."
      }
    }
  }
}

See the official introduction, quick start, state guide, and HTTP API reference for the authoritative interface.

Requirements: Node.js 22.13 or newer.

npm install
cp .env.example .env
npm run dev

Open the local URL printed in the terminal. A production build is equally small:

npm run build
  • Keeps a compact 979-word vocabulary in lib/core-vocabulary.ts , with request builders inlib/jev.ts .
  • Gives every eligible word a chance through parallel groups of at most 249 options, then asks Jev to choose among each group’s strongest finalists or end .
  • Carries the conversation and words_so_far forward as structured state.
  • Extracts candidate names, numbers, and terms from user messages, then batches one Jev Noul judgment per non-numeric candidate to decide which words join the conversation vocabulary.
  • Always admits numeric tokens and displays accepted and rejected conversation words in the inspector.
  • Stops when Jev chooses the dedicated end control option or after 18 words.
  • Withholds the three most recent words and words already used twice to prevent repetition loops.
  • Validates every returned choice and retries documented 429 and529 failures.
  • Shows Jev's real probabilities and confidence in the inspector.
  • Offers an ABC mode where Jev selects one character at a time from lowercase a-z ,0-9 , apostrophe, space,? , and. , plus the separateend end-of-transmission control.
  • Falls back to lib/mock-jev.ts only when no key is configured.
  • Exposes the same chat action through the experimental WebMCP browser interface when available.

The fallback is deterministic for the same prompt and conversation length, which makes the demo easy to inspect and test.

Create an API key in the TypeSafe console and put it in .env:

TYPESAFE_API_KEY=your_key_here

Do not put the key in a NEXT_PUBLIC_* variable or call the authenticated API directly from browser code. The browser calls the project's server route; only that route talks to TypeSafe.

app/
  layout.tsx       page metadata and fonts
  page.tsx         chat UI, trace inspector, and interaction loop
  globals.css      visual system and responsive layout
  api/chat/route.ts server-only Jev request loop and mock fallback
lib/
  core-vocabulary.ts compact common-English vocabulary
  jev.ts           vocabulary, shared types, and Choice request builder
  mock-jev.ts      deterministic fallback decisions
types/
  webmcp.d.ts      small browser API type declaration

The public documentation describes Jev as an early-access model for fast, structured decisions. The API accepts a string, object, or array as state; jev-latest is the documented model alias; a Choice answer includes choice, probabilities, and confidence; and Choice supports a defined set of options. Jev is a product of TypeSafe AI. This project is an independent demo and is not affiliated with or endorsed by TypeSafe AI.

Research checked against TypeSafe AI's public documentation on September 17, 2026.

Created by Michael Kotlikov.

── more in #ai-products 4 stories · sorted by recency
── more on @typesafe ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/talk-to-jev] indexed:0 read:4min 2026-09-17 ·