Original Summary

All software makes decisions. Code handles the deterministic ones. Decision models like Jev handle the judgement calls.<p>A decision model takes context and questions with a fixed set of choices, and returns answers with a calibrated probability. No prose, nothing to parse. Decision models are 200x faster and 400x cheaper than LLMs making comparable judgements.<p>I wanted to play around with decision models in more places and without writing code or manually calling APIs. I wanted scripts to read like natural language and agents to be able to pick up the tool and use it after simply reading the help output.<p><pre><code> $ brew install vsekhar&#x2F;tap&#x2F;decide $ decide --set-config --model typesafe:jev-latest --api-key API key: &lt;paste your API key&gt; $ decide &quot;Is Atlanta the capital of Georgia?&quot; yes # Choose from among options $ decide &quot;What kind of weather is typical in Florida?&quot; \ --option rainy \ --option sunny \ --option snowy sunny # Provide context (32k context window) $ decide --context @ticket.txt \ &quot;Which team handles this ticket?&quot; \ --option shipping \ --option billing \ --option returns billing # Pick a level, least to most, explain each to the model $ decide --context @ticket.txt \ &quot;How urgent is this ticket?&quot; \ --level not_urgent=&quot;Customer feedback or feature request&quot; \ --level somewhat_urgent=&quot;Customer problem, not blocked&quot; \ --level urgent=&quot;Customer blocked&quot; somewhat_urgent # Multiple questions in one call, name questions for easier parsing $ decide --context @ticket.txt \ &quot;Which team handles this ticket?&quot; \ --name team \ --option shipping \ --option billing \ --option returns \ &quot;How urgent is this ticket?&quot; \ --level not_urgent \ --level somewhat_urgent \ --level urgent \ &quot;Should we issue a refund?&quot; team=billing somewhat_urgent yes # Script-friendly exit codes if decide --context &quot;$body&quot; &quot;Is this message spam?&quot; -q; then mv &quot;$file&quot; spam&#x2F; fi </code></pre> Other features:<p>- Confidence: gate on the model&#x27;s confidence in its answer with --min-confidence and --fallback<p>- Question files: load questions from a file, useful for detailed questionnaires under version control<p>- Scriptable: 0 is decided or yes, 1 is no, 2 is unsure, 10 is your mistake, 11 is network&#x2F;model problem<p>- Agent skill: agents can get cursory information about files quickly and cheaply before or instead of reading them (example skill included in the repo) - token efficient, no MCP<p>- Statistics and distribution: output the model&#x27;s confidence and probabilities across your choices<p>- JSON: read context as JSON objects, write decisions as JSON objects<p>- Streaming: decide once per line from stdin using --each (for JSONL pipelines)<p>- Economical: two orders of magnitude cheaper than LLMs (Jev: $0.042&#x2F;Mtok input, free output)<p>- Fast: typical latency of 200ms end-to-end (400 token context with 5 questions)<p>- Scalable: unlimited questions per call, processed in parallel<p>Limitations:<p>- Typesafe or OpenRouter API key required<p>- macOS 26+ pre-built via Homebrew; macOS 15 and Linux build from source (requires Swift 6.2)<p>- Jev only (so far the only publicly available decision model)<p>See also:<p>- DecisionModels (<a href="https:&#x2F;&#x2F;github.com&#x2F;vsekhar&#x2F;DecisionModels" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vsekhar&#x2F;DecisionModels</a>): Swift library for static and dynamic decision model calls, inspired by Apple&#x27;s FoundationModels library, and powering decide.<p>- llm-typesafe (<a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm-typesafe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;llm-typesafe</a>): JSON-oriented input and output, integrated into the general purpose (and very popular) llm command by simonw which is written in Python and has 14 runtime dependencies.<p>Swift 6.2, Apache 2.0<p>What do you think about the command line model? How are you plugging decision models into your systems?


  • 情报分类:技术学习与提效
  • 分类依据:内容涉及技术、AI、软件工具或工程实践
  • 信息来源:Hacker News 新项目
  • 发布时间:2026/9/28 22:23:59