862930522/opencode-anchored-standard

862930522★ 0JavaScriptLast synced: 2026-08-14

Open on GitHub

README excerpt

opencode-anchored-standard 中文说明 An opencode plugin that runs a two-phase tool catalog : bootstrap each session with a minimal tool surface, then unlock the full toolset after the session's first tool call. Inspired by xiaobright/dsh-anchored-standard , the two-phase preset for DeepSeek Harness. This is an independent implementation for opencode — no DeepSeek Harness code is included. Why Models with strong tool catalogs can over-rely on them on the very first turn, picking an elaborate tool before understanding the task. A bootstrap phase forces a cheap, minimal start (shell + read) and only hands over the full catalog once the model has actually started working. The phase is derived from durable session state, so resume, reload and compaction all preserve it — no plugin-side storage is needed. How it works Per session: 1. While the session has no durable tool call in its history, the plugin: - injects a short bootstrap rule into the system prompt (only bash and read are usable right now); - rejects calls to any other tool with a model-visible error that explains the unlock condition. 2. The first call of any bootstrap tool — successful or failed — promotes the session. 3. From the…

View full README on GitHub →
Agentsdeepseekdsh-pluginllm-agentopencodeopencode-plugin

Category