third774/opencode-decision-models lets an OpenCode agent classify retrieved items inside Code Mode, its code-execution tool. An agent can fetch a list, ask typed questions about each item, and return selected results to its conversation. The surrounding code owns the filter.
Keep the selection in code
modelslists enabled decision models;evaluatechecks one input;batchapplies shared questions to a list.- Questions cover yes/no probabilities, named choices and scores against an ordered rubric.
- The implementation limits simultaneous batch requests to 8 by default, capped at 20. These are settings, not measured throughput.
- Individual request failures become item-level errors, so callers can separate failed checks from negative decisions.
A successful batch item can still contain an error answer for a particular question. Callers need to inspect both levels before using a result.
Jev is an explicit choice
The default preference starts with Cloudflare’s Clef Flash. Passing model: "jev" selects an enabled Jev model through OpenCode’s existing decision-generation interface. Separate adapters handle some Cloudflare and Google gateway configurations.
Local media files pass through OpenCode’s read-permission check before loading. The plugin restricts extensions and imposes a 10 MiB per-file limit. Those controls govern file access; selected inputs still travel to the configured provider.
Normalizing an answer leaves work for the caller
Local checks reproduced two permissive cases in the direct-provider decoder:
- A predicate probability of
2passed through despite the expected zero-to-one range. - A choice outside the supplied menu passed through as a choice answer.
These findings concern the plugin’s direct-provider decoder. Jev’s ordinary path delegates to OpenCode, whose validation was outside this inspection. Typed output still needs both value validation and labeled correctness tests.
The batch usage total also treats missing token or cost fields as zero. Read it as the sum of reported usage, rather than a complete bill.
Caveat: source inspection and 10 local protocol assertions passed; the full plugin, live providers, speed, cost and decision accuracy were not tested.