malevrigns/agent-jev

AgentJev-0.6B - a fast 'System One' decision model for AI Agents: feed it any unstructured state (diffs, traces, logs) and structured questions, get calibrated probability distributions back in one ~50ms forward pass. Zero output-token decoding.

What it solves

Agents and workflows spend most steps on decisions like "did the tests pass?", "which tool next?", or "is this safe to run?" — not on writing prose. Traditionally you ask a large model to talk its way to an answer, then parse the text. AgentJev replaces that: given a state and a typed question, it returns a probability for each option directly, with zero generated tokens. This avoids malformed JSON, verbose output, and decoding latency.

How it works

AgentJev uses a 0.6B-parameter Qwen3 backbone with the language-model head removed. Instead of generating text, it reads each candidate option at its last token and a small head scores all options together. The answer is a probability distribution (softmax per question). It supports three question types: boolean (proposition), choice (pick from 2–255 options), and score (on a 2–10 level rubric). The model never decodes a single token.

A key feature is shared-state encoding: the state is processed once for all questions, and the server merges candidate paths into a token trie to cut latency dramatically (e.g., 278 ms → 43.89 ms median on a test split). Over-length inputs (beyond 2,048 tokens) are refused rather than silently truncated.

Who it’s for

Developers building agent loops, chat-based tooling, or automation workflows that need fast, reliable gates, routes, or scores. It's framework-independent — you can call it via HTTP or the provided Python client. It's meant to be the "reflex" under the turn, while a larger model handles prose generation.

Highlights

  • Zero decoded tokens: no text generation, no JSON to repair.
  • Typed questions: boolean, choice, score — all return full distributions, not just the winner.
  • Efficient: state encoded once per request; latency speedups up to 6–7× on measured loads.
  • 2,048-token context, over-length input refused.
  • Weight release on Hugging Face, with optional coding-gate weights for test-run classification.
  • HTTP server and Python client included.

Related

  • Project
  • Project
  • Project
  • Project
  • Project