classif: shell scripts branch on meaning via one token's logprobs on a local 12B
piotr1215 · reddit · 2026-10-06
Inspired by Jev, the author built classif, a shell tool that branches on semantics: it asks a local model one question and reads the answer from a single token's logprobs, returning a label, probability and exit code so if and && work on it (e.g. pipe git diff --staged to check for secrets, then conditionally trigger claude for a security review). One /api/chat call with numpredict 1, 0.3s on a 12GB card using his Gemma fine-tune Winnow-12B (GGUF 8GB). Long text never truncates: it splits text, uses embeddinggemma + BM25 to pick passages — 772KB Pride and Prejudice judged in 17s, 3s with cached index. Python 3.12, no third-party dependencies.
More from coding & agent
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29
- 'Verification is AI's next trillion-dollar category' — proof checkers, evals, agents auditing agents — McDonaghMatthew · 2026-11-29
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29
- 'End user programming!': a three-word verdict on what LLM coding really unlocks — round · 2026-11-29
- Founder claims LLMs aren't even the right ML approach for writing programs — jfischoff · 2026-11-29
- Gmail's official MCP only drafts, never sends: devs slam over-cautious agent design — steipete · 2026-11-29