Simple Memory System Cookbook
A support-ticket cookbook that lets Jev decide which requests are worth remembering, then wraps each call so saved tickets ride along in the state. Six later messages route correctly with memory against two without.
- Format
- Docs
- Published by
- TypeSafe AI
- Last verified
- Oct 2026
- Languages
- Python
Highlights
- Two parts: a Noul gate that asks whether a request states a lasting customer fact, and a wrapper that adds saved tickets to later states.
- The gate saves when P(yes) reaches 0.5; lasting facts scored 0.91-0.92 while airport and holiday small talk scored 0.07-0.10.
- Six later messages reach the expected teams with memory against two without, because the same message routes differently per customer.
- Each call makes two sequential requests, and the wrapper takes the same state and questions as ask() with the same return value.
Quickstart
def ask_with_memory(state: dict, questions: dict):
saved = MEMORIES.get(customer_id(state), [])
response = ask({**state, MEMORY_KEY: saved} if saved else state, questions)
memory = as_memory(state, questions, response)
if remember_probability(memory) >= REMEMBER_AT:
MEMORIES.setdefault(customer_id(state), []).append(memory)
return responseWatch out
The memory store is a plain Python dict that disappears when the process exits, and memory only grows: no size limit, relevance check, or expiry. The 0.5 threshold is a starting point the page says to evaluate against your own labelled examples. Numbers come from jev-1.13.0 on 2026-09-28.
Questions about this entry
Reactions & coverage
Posts, threads, and videos about this entry from around the web.
Facebook: Intake Router keeps diagnosis out of the answer space at the front desk.
FacebookClinicnotes
YouTube: Jev explained for routing and judging, with a comparison against LLMs.
Hacker News: jevmem keeps Claude Code project memory by asking Jev which turns are worth saving.
avinashjetwani61 pointsJevmem – automatic project memory for Claude Code, built on JevRead the thread on Hacker NewsHacker News: Vercel on using Jev for defined decisions and GPT-6 Astra when the job also has to write or use tools.
flashbrew4 pointsTypeSafe AI Jev vs. GPT-6 AstraRead the thread on Hacker NewsMore Jev resources like this
From the Jev guides
Original write-ups on what this entry is for.
From the Jev community
Posts from builders shipping with Jev right now.