Asia/Shanghai
ProjectsMay 7, 2026

opencode-plugin-fixes

opencode-plugin-fixes
Archived historical project. The repository is read-only. opencode-plugin-fixes was never published to npm, so it is not a valid OpenCode package entry.
opencode-plugin-fixes is a small dependency-free source bundle for OpenCode. It explores four boring but expensive tool-call failure modes: malformed question arguments, over-broad MCP object coercion, DCP compress range payload shape failures, and repeated question prompts while the user is still answering.
  • FixQuestionSchema - normalizes stringified questions, bare question objects, and stringified options before OpenCode validates the question tool call.
  • FixMcpNestedObject - parses only selected schema-like MCP fields such as metadata, arguments, and queries, while leaving JSON-looking file bodies and user content untouched.
  • FixDcpCompressFlat - accepts flat DCP range payloads such as { topic, startId, endId, summary }, parses stringified native range arrays, and restores DCP's native content: [{ startId, endId, summary }] shape.
  • BlockRepeatQuestion - holds a per-session lock so (no answer) placeholders do not trigger retry spam before the user replies.
Frontier models usually call tools correctly. When they do not, the failure is often just one level of JSON stringification or one nested array away from valid input. The source bundle fixes that narrow, recoverable class without pretending every malformed call is safe to rewrite. The DCP guardrail exists because compress range mode expects content: [{ startId, endId, summary }]. Some models reliably preserve the same information as flat fields, but keep breaking the array shape. FixDcpCompressFlat restores the native shape before validation while leaving native nested calls unchanged. The repeat-question blocker addresses a separate UI behavior: OpenCode can render (no answer) while the user is still typing. Some models read that as a decline and ask again. The plugin turns that into an explicit stop condition. The final main branch preserves all four guardrails for reference, but the project is no longer maintained or part of the author's OpenCode setup. No npm package was published. Do not add "opencode-plugin-fixes" to OpenCode's plugin array. The initial v0.1.0 tag predates FixDcpCompressFlat; the fourth guardrail exists only in the final archived source tree. The final archived source tree can be checked with:
Bash
npm test
npm pack --dry-run
The driver exercises all four hooks end-to-end, including the regression that arbitrary JSON-looking filesystem_write_file.content must remain unchanged.
opencode-plugin-fixes 是一组零依赖 OpenCode 插件,用来保护长上下文 agent 运行中最烦人的四类小故障:question 参数形状错误、MCP nested object 被字符串化、DCP compress 的 range 参数形状失败、以及用户还没回答完时模型反复追问。 它不会泛化地重写所有 JSON-looking 字符串;FixMcpNestedObject 只处理明确的 schema-like 字段,避免把文件正文、命令或用户内容误解析成对象。新增的 FixDcpCompressFlat 也只碰 compress 工具,把 flat { topic, startId, endId, summary } 还原成 DCP 原生的 content 数组形态。 本项目已经归档,不再维护,也不属于作者当前的 OpenCode 配置。npm 包从未发布,"opencode-plugin-fixes" 不是可用的 package entry。最终 main 分支保留四个护栏;初始 v0.1.0 tag 只有前三个,FixDcpCompressFlat 是后续补入的源码。

Related projects

OpenCode Annotate terminal review in Dracula theme with two annotations and a reaction toolbar

OpenCode Annotate

An unofficial OpenCode plugin for annotating AI replies, documents, and webpages, with a bundled terminal reviewer and optional browser companion.
another

another

Every coding-agent session in one place: find, resume and organize them, @-mention across agents, or write one into another agent's native store to continue it instead of pasting a summary.
Clean Design

Clean Design

Use the AI tools you already have to create editable visual projects that stay on your Mac.
Codex Minus

Codex Minus

A slimmed-down Codex manager for macOS and Windows: switch providers safely, manage official and custom model catalogs, and protect OAuth and context.
JumpOTP

JumpOTP

An on-demand TOTP helper for authorized SSH and JumpServer sessions. It calls an unlocked Bitwarden CLI only after a strict prompt match, submits at most once per connection, and keeps a visible manual fallback.
Codex Doubao Pets

Codex Doubao Pets

Six Doubao desktop pets you can install straight into Codex Desktop: choose from real character art, then install with one npm command.
loop

loop

One explicit trigger, then artifact readiness chains deep-grill, deep-design and deep-build until the work reaches a confirmed spec or a verified result.
Slash Saver

Slash Saver

A native macOS tool that does one thing for the physical slash key: switch to your chosen ASCII input source before the original keypress reaches the current app.
deep-grill

deep-grill

One Agent Skill, two modes: exploration turns a raw idea into a confirmed Product Brief, audit pressure-tests a formed plan, and ordinary replies keep the current session going.
Mingjian AI Services

Mingjian AI Services

A focused collaboration entry for teams moving from AI ideas to working products, Agent systems, and operable business workflows.
opencode-metrics

opencode-metrics

A per-session sidebar metrics plugin for the OpenCode TUI. It records speed, TTFT, tokens, cache and timing by sessionID and shows only the session you are attached to, not the global serve-mode totals.
opencode-vibe-island-plugin

opencode-vibe-island-plugin

Keeps Vibe Island recognizing OpenCode sessions as OpenCode when oh-my-openagent is installed. Fixes the mislabeled source and Ghostty click-to-jump.
OpenCode Themes

OpenCode Themes

Terminal-inspired dark themes for Obsidian, Typora, and Ghostty, all synced to the official OpenCode TUI palette.
wechat-mp-publisher

wechat-mp-publisher

From a personal WeChat Official Account skill to a publicly installable npm package: local validation and sandbox preview first, and only a draft is created after you confirm.
SIGINT

SIGINT

An archived content-intelligence experiment that once connected Xiaohongshu and Douyin collection, AI analysis, n8n orchestration and a live dashboard into one pipeline.
MdictLive

MdictLive

Modern web reader for MDict dictionaries with React 19 SPA, dark mode, and faithful rendering.
SiliconLM

SiliconLM

Local LLM dashboard for Apple Silicon Macs, currently preserved without an active local deployment.
mdx2apple

mdx2apple

Convert complete MDict entries into native macOS dictionaries, with pronunciation, illustrations and Oxford dark-mode styling.