Judgment calls, at scale

decide

4 min read Original article ↗

The small calls inside your automations.

Every pipeline has judgment calls that are too many for a person and too fuzzy for a rule. Here are a few that decide makes out of the box.

What you’d otherwise build yourself.

A decision model’s API takes one text and one question. decide brings the questions, splits your data into items, and gives your script something to act on.

Questions, already written

Thirteen built-in templates, each a set of questions with tuned wording and flag thresholds. Write your own in a few lines of JSON.

$ decide templates

Code, function by function

decide splits Go, Python, JavaScript, TypeScript and Java into functions and sends each with its imports. On a diff, it asks only about the functions that changed.

$ decide run code-risk src --each function

Any data, item by item

Point it at JSONL, CSV, Markdown, a diff, or a folder of images or PDFs. Each record, section, hunk or file gets its own answer, and long ones are judged in parts.

$ decide run relevance docs --each section

No question asked twice

Every answer is kept. Run again and decide asks only about what changed, so a second pass over a codebase costs almost nothing.

81974 answers from cache · 450 asked

Output a script can act on

A flagged answer can exit 2. Results print as JSON, CSV, a Markdown report or GitHub annotations, and a stopped run resumes where it left off.

--fail-on flagged --format github

The same from Go

Typed questions from your own program, with validated answers, retries, a fake server for tests, and patterns such as gate, rank and funnel.

$ go get github.com/deepnoodle-ai/decide

Audit a whole codebase from Claude Code.

Two skills in the decide plugin. decide scores every function, and Claude reads only the few that score highest.

  • /decide:audit

    Audits a repository for security bugs

    decide scores every function with the security template. Claude reads up to 15 of the highest with their callers, and reports which are real.

  • /decide:hunt

    Finds where a fixed bug was repeated

    Give it a fix commit or pull request. Claude writes one question about the mistake, decide asks it of every function, and Claude reads the top matches.

  1. decide scores every function, one request each.
  2. A few score 30% or more. Most don't.
  3. Claude reads up to 15 of the highest, with their callers, and says which are real.

A drawing of one audit, not a run.

In Claude Code

> /plugin marketplace add deepnoodle-ai/decide> /plugin install decide@decide

Needs the decide CLI and a key for a decision model. Once installed, the plugin also checks what Claude reads and runs.

Claude Code guide →

Why not just call an LLM?

You can, and for writing or reasoning you should. For a yes or a no on every item, a decision model is the better tool.

Faster

An LLM writes its reply a token at a time, and you wait for all of it. A decision model writes nothing. It returns one answer.

100msfor one answer, in a recorded run

Cheaper

With an LLM you pay for your prompt and for every token it writes back. Here you pay for the prompt.

$0.042per million input tokens on Jev1

Calibrated

Ask an LLM how sure it is and it types a number, usually a confident one. A decision model is trained so its probability matches how often it is right.

90%means right about nine times in ten

1 Jev bills input only (TypeSafe). gemini-decision-1 bills $0.10 per million input tokens and writes no output tokens (Google). OpenAI's Decisions API and Cloudflare bill on their own terms. For scale, the lowest standard price OpenAI lists for a chat model's output is $0.40 per million tokens, for gpt-5-nano (OpenAI).

Close calls go to a person.

Every answer comes with a probability. Act on the ones the model is sure of, and send the rest to a person.

triage.go

e, err := decide.Eval(ctx, client, issue,
    decide.Noul("Is this ready to work on?"))
if err != nil {
    return err
}
switch p := e.Answer.Noul; {
case p >= 0.9:
    assign(issue)              // allow
case p <= 0.1:
    sendBack(issue)            // reject
default:
    route(issue, gate.Review)  // a person decides
}
  1. >= 0.9allow
  2. in betweena person decides
  3. <= 0.1reject

Before you switch, test it on your own items.

Run it on items you've already labeled and compare. The probability is the model's judgment, not proof, so set your thresholds there too.

See examples/calibrate →

Four decision models, one set of commands.

All four read text and code. Three read images, and Gemini reads audio, video and PDFs too. Jev is the default; switch with one flag.

TypeSafe

TypeSafeJev · default

jev-latest

  • text

CloudflareClef · Workers AI

clefclef-flash

  • text
  • images

OpenAILuna

gpt-6-luna

  • text
  • images

GoogleGemini

gemini-decision-1

  • text
  • images
  • audio
  • video
  • PDF

Bring your own key. decide sends what you ask about to that provider and nowhere else. Keys and switching are in Providers.

Your turn. Ask it something.

Install it, set a key, and put it where your script makes a call.

$ brew install deepnoodle-ai/tap/decide

Open source under Apache 2.0. LICENSE · CONTRIBUTING.md