Skip to content

Opencode Smart Reasoning

OpenCode plugin that asks Jev once per prompt how much reasoning is needed, then maps minimal to xhigh effort onto the model's own variants without rewriting prompts.

Stars
1
Language
TypeScript
License
MIT
Published by
Community
Author
d0nj
Last verified
Oct 2026

About this project

Per-request smart reasoning routing for OpenCode agents, decided by Jev (TypeSafe SystemOne via OpenCode Zen). The plugin hooks the agent-loop model call (ctx.session.hook("context")), asks Jev how much reasoning the current task needs, and applies the matching model variant via event.options. No prompt rewriting, no text parsing, no hardcoded provider lists. Question design follows the Context7 TypeSafe docs: atomic choice + noul questions evaluated in parallel, composed in code.

Quoted from the project's README. Read the full README.

Highlights

  • Combines reasoning_effort choice with high_stakes bump and low-confidence fallback to defaultEffort.
  • Stashes effort per session so tool-loop continuations reuse it without extra Jev calls.
  • Learns variant vocabulary from the model list and clamps effort to what each model supports.
  • Fails open on missing keys or errors and yields to user-pinned variants by default.

Watch out

Needs OpenCode Zen auth, and option changes require restarting the opencode process to take effect. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

1.5kGitHub stars
Open-source platform that puts ACP-compatible agents such as Claude Code, Codex, and Pi inside the team's Slack, Telegram, Discord, and GitHub workflows, with reusable Jev decisions for routing, response gating, and reviewer selection.
Jev Agents & MCP#community#jevbest
488GitHub stars
A coding agent built on pi that hands its non-code decisions — what enters the context, whether a command is safe, whether the work is done — to a small judge model at 35 decision points per turn.
Jev Agents & MCP#community#jevbest
48GitHub stars
Agent harness for work that outlives one chat, with resumable turns, routed state machines, and observational memory across sessions and processes.
Jev Agents & MCP#community#jevbest#catalog-import
Assistant framework that stores specs, memory, and specialist agents as plain markdown files in your repo for Claude Code, Codex, Opencode, and similar runtimes.
Jev Agents & MCP#community#jevbest#catalog-import
11GitHub stars
Pi Coding Agent extension that routes only at task boundaries, using Jev judgments plus declared capabilities, availability, price estimates, and failure state.
Jev Agents & MCP#community#jevbest#catalog-import
6GitHub stars
Terminal coding agent on Pi where Jev shortlists skills, ranks retrieved excerpts, and triages tool failures while the coding model handles reasoning and edits.
Jev Agents & MCP#community#awesomejev#catalog-import
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai