dshbase

Plugin directory / Developer / dsh-plugin-structured-output

dsh-plugin-structured-output

Verified · install-tested on dsh royenheart

✓ Actively maintained 2 contributors Builds on 12 official DSH packages

View on GitHub ↗ ← Back to plugin directory

0Stars
0Forks
0Open issues
—Language
2026-08-20Last push
Cross-platformPlatform

What it does

deepseek harness plugin structured output

✅
Our take
Works — verified, early-stage project

deepseek harness plugin structured output It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

@royenheart/dsh-plugin-structured-output

dsh

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 the StructuredOutput tool is registered;
  • the next prompt receives opencode's instruction to return the final answer
    through StructuredOutput instead 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.

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-plugin-structured-output for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:royenheart/dsh-plugin-structured-output

Headless (CLI) profile:

dsh plugin --profile headless add github:royenheart/dsh-plugin-structured-output

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7819 plugins →