Writing C++ with Jev by picking valid next tokens
The author experimented with TypeSafe's Jev decision/classifier model for C++: at each step it was given only grammatically valid next tokens to pick from, avoiding free-form generation.
A test shows Jev handling step-by-step decisions while frontier models handle planning and coding, cutting time by 51% and cost by 61% while passing all tasks.
Tried the Jev + Opus 5.5 pattern: Jev makes every typed step decision, the frontier model only plans, codes and critiques. Same coding tasks, same harness: Opus 5.5: −51% time, −61% cost Codex: −39% time, −57% tokens Every task still passed. Small sample, strong signal.