dsh-plugin-structured-output
by royenheart
deepseek harness插件结构化输出
deepseek harness plugin structured output
安装
dsh plugin --profile web add github:royenheart/dsh-plugin-structured-outputGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
opencode-style json_schema structured output for dsh agents, built entirely
on native dsh seams (no dsh source changes):
- visibility is per agent preset (mode) and is opt-in: Settings → 结构化输出工具 / Structured output chooses which modes expose it;
- in enabled modes,
/json-schema <json>stores an object-rooted JSON Schema for the receiving session and theStructuredOutputtool is registered; - the next prompt receives opencode's instruction to return the final answer
through
StructuredOutputinstead of plain text; - the tool validates the output with the native dsh JSON Schema subset
(
@deepseek-ai/dsh-tools) and rejects malformed values.
Install
lib/ is generated locally and is not committed. install.py always builds
the repository's own toolchain first (npm install when the toolchain is
missing, then npm run build) and only reports an error when npm itself is
missing.
Install/uninstall idempotently with the bundled script (stdlib-only
Python). The package ships its own cordis.patch.yml (id
structured-output) and declares dsh.bundle.patch, so the script only links
the package into the profile node_modules, adds the link: dependency, and
appends the package to dsh.profile.bundles. The profile's own
cordis.patch.yml is never modified:
python3 install.py install --profile web # install
python3 install.py uninstall --profile web # remove
python3 install.py install --profile web --home "$DSH_HOME" # explicit home
Manual alternative:
dsh plugin --profile web add link:/path/to/dsh-plugin-structured-output
dsh plugin reconciles dsh.profile.bundles from the installed package's
dsh.bundle declaration, so no profile patch edit is needed either.
Per-mode visibility
No mode is enabled by default. After installing, open Settings →
结构化输出工具 (Structured output) and toggle the agent presets that should
see StructuredOutput and /json-schema. Disabled modes see neither surface;
the choice applies to sessions created after the change.
Usage
/json-schema {"type":"object","properties":{"answer":{"type":"string"}},"required":["answer"],"additionalProperties":false}
What is the answer to life, the universe, and everything?
The model must then call StructuredOutput with a valid object.
Supported schemas follow dsh's enforced JSON Schema subset: any JSON root,
object properties/required/boolean additionalProperties, array items,
scalar enum/const, and exact-one oneOf. Unsupported keywords are
rejected at /json-schema time.
原始 README: https://github.com/royenheart/dsh-plugin-structured-output/blob/main/README.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent