Agent Task Break Detector

You are deep in a session with a coding agent, and you type something unrelated: a different bug, an idea, an errand. The agent now carries all the earlier history into a task that doesn't need it. That costs tokens, and stale context makes its answers worse. The tidy fix is a fresh session (/clear, /new) for each new task, but doing it by hand breaks your flow.

This model makes that call on every user turn:

Does this new message need the conversation so far, or could a fresh session handle it just as well?

It is a 150M-parameter ModernBERT-base cross-encoder. It reads the new message together with the recent exchanges and returns p(new_task). It is small enough to run locally on every prompt, for example from a Claude Code UserPromptSubmit hook. This demo runs the int8 ONNX build on a free CPU.

Status: v0.1 (2026-10-24), experimental. Trained only on synthetic data and not yet checked against real sessions.

Matched pairs from the test split: each message appears twice, once as a new task and once as a continuation
New user message Session so far (oldest first; one USER: / AGENT: line per turn)