Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Show HN: Free job-market dashboard – which skills and roles postings ask for (payanai.com)
    —discuss
  2. What if automating AI R&D triggers an intelligence explosion? (casp.ac)
    —discuss
  3. Partnership and economic drivers of Gambia men with foreign tourists (nih.gov)
    —discuss
  4. Resurrecting Midway's Ms Gorf – The Arcade Blogger (arcadeblogger.com)
    —discuss
  5. Age of Invention: Salt Syndicate, Part I (ageofinvention.xyz)
    —discuss
  6. Jensen Huang says AI distillation is 'competition.' (cnbc.com)
    —discuss
  7. Debugging HTTP:Tiny Calls Deep Inside Your Stack (olafalders.com)
    —discuss
  8. Nvidia AI Agent Safety Stack (nvidia.com)
    1comments
  9. Show HN: Beside.nvim – Live preview in Neovim using leaf, glow or pandoc (github.com/mariocesar)
    —discuss
  10. MongoDB CEO resigns "effective immediately" to join Meta, stock drops 20% (reuters.com)
    —discuss
  11. Bike light hacking: AAA to rechargeable lithium (tylerhext.com)
    1comments
  12. Nvidia boosts share buyback by record $150B (reuters.com)
    —discuss
  13. Show HN: Knotchy – Open untrusted links in a throwaway VM under the notch (github.com/aculix)
    —discuss
  14. Unlimited virtual cards for everyone, for free (twitter.com/aayan1405)
    —discuss
  15. Microsoft silent on paying "fair share" (arstechnica.com)
    —discuss
  16. Paramount/WBD merger conditions give the public "virtually nothing," judge told (arstechnica.com)
    —discuss
  17. Containers Are No Longer a Security Boundary (depthfirst.com)
    —discuss
  18. Leaving Them Behind (dbushell.com)
    —discuss
  19. What Heraldry and Mon Can Teach Us About Building Visual-Identity Generators (benovermyer.com)
    —discuss
  20. This Special Screw Is Needed for Missiles and Planes. Buying One Can Take Years (nytimes.com)
    1comments
  21. Hunger Stone (wikipedia.org)
    —discuss
  22. GPU Glossary (modal.com)
    —discuss
  23. A Staff Engineer's Guide to Inventing Work (sujithjay.com)
    —discuss
  24. Show HN: Agent Cat – Claude Code, Codex and Gemini limits in your menu bar (agentcat.app)
    —discuss
  25. Anthropic: Emergent Misalignment from Reward Hacking (anthropic.com)
    —discuss
  26. Firefox 157 released with 'biggest visual refresh in years' (omgubuntu.co.uk)
    1comments
  27. Always Ground Your Responses (iam.mt)
    1comments
  28. Social Approval, Reward Learning, and Neurobiological Basis of Social Media Use (journalclp.com)
    1comments
  29. How to Solve Hallucination (With RLCD) (robw.fyi)
    —discuss
  30. Opus 5.5 vs. GPT-6 in pi-agent: reasoning efforts and DeepSeek, GLM, Qwen (ibragim.dev)
    —discuss

Show HN: Decide – Jev decisions in the shell, scripts, and agent skills

1 pointsby 36m agogithub.com
0 comments
All software makes decisions. Code handles the deterministic ones. Decision models like Jev handle the judgement calls.

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.

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.

  brew install vsekhar/tap/decide
  decide --set-config --model typesafe:jev-latest --api-key
  API key: <paste your API key>

  decide "Is Atlanta the capital of Georgia?"
  yes

  # Choose from among options
  decide "What kind of weather is typical in Florida?" \
      --option rainy \
      --option sunny \
      --option snowy
  sunny

  # Provide context (32k context window)
  decide --context @ticket.txt \
      "Which team handles this ticket?" \
        --option shipping \
        --option billing \
        --option returns
  billing

  # Pick a level, least to most, explain each to the model
  decide --context @ticket.txt \
      "How urgent is this ticket?" \
        --level not_urgent="Customer feedback or feature request" \
        --level somewhat_urgent="Customer problem, not blocked" \
        --level urgent="Customer blocked"
  somewhat_urgent

  # Multiple questions in one call, name questions for easier parsing
  decide --context @ticket.txt \
      "Which team handles this ticket?" \
        --name team \
        --option shipping \
        --option billing \
        --option returns \
      "How urgent is this ticket?" \
        --level not_urgent \
        --level somewhat_urgent \
        --level urgent \
      "Should we issue a refund?"
  team=billing
  somewhat_urgent
  yes

  # Script-friendly exit codes
  if decide --context "$body" "Is this message spam?" -q; then
    mv "$file" spam/
  fi
Other features:

- Confidence: gate on the model's confidence in its answer with --min-confidence and --fallback

- Question files: load questions from a file, useful for detailed questionnaires under version control

- Scriptable: 0 is decided or yes, 1 is no, 2 is unsure, 10 is your mistake, 11 is network/model problem

- 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

- Statistics and distribution: output the model's confidence and probabilities across your choices

- JSON: read context as JSON objects, write decisions as JSON objects

- Streaming: decide once per line from stdin using --each (for JSONL pipelines)

- Economical: two orders of magnitude cheaper than LLMs (Jev: $0.042/Mtok input, free output)

- Fast: typical latency of 200ms end-to-end (400 token context with 5 questions)

- Scalable: unlimited questions per call, processed in parallel

Limitations:

- Typesafe or OpenRouter API key required

- macOS 26+ pre-built via Homebrew; macOS 15 and Linux build from source (requires Swift 6.2)

- Jev only (so far the only publicly available decision model)

See also:

- DecisionModels (https://github.com/vsekhar/DecisionModels): Swift library for static and dynamic decision model calls, inspired by Apple's FoundationModels library, and powering decide.

- llm-typesafe (https://github.com/simonw/llm-typesafe): 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.

Swift 6.2, Apache 2.0

What do you think about the command line model? How are you plugging decision models into your systems?

A quiet thread, for now.Start the conversation on HN ↗