Examples
Each example is a small app in two forms, before/ and after/, with a check that the answers did not change. They are how leanprompt tests its own rules.
compaction-rewrite
A support agent with a long system prompt (about 6,000 tokens) and one tool. In each of four sessions the customer states four facts about a ticket (courier, dock, order code, delivery day), the conversation is…
dated-chat
A support assistant answers questions from a shop handbook (about 6,000 tokens). Four sessions of nine questions each.
dict-tools-agent
An operations assistant has twelve tools and picks the right one for each of eight requests (it answers with the tool name; nothing is executed). Four sessions. Each session registers the tools again, the way a plugin…
rag-chunks-first
A parts-support assistant answers questions about a catalogue. Each question comes with three retrieved chunks (the right one and two near neighbours with different figures), and the system prompt carries long shared…
repeat-samples
An assistant answers lookup questions about a synthetic field survey log (invented stations, names and readings, about 6,000 tokens) and takes a majority vote over four samples of each answer. Four sessions of eight…
timeout-retry
A release-notes writer alternates a long answer (forty numbered items, about 2,000 tokens) with a one-line answer. Four sessions of eight requests.