dsh-fmt
Run the following command in DeepSeek Harness:
dsh plugin install ZhijiangTang/dsh-fmt
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install ZhijiangTang/dsh-fmt in your terminal to install the plugin; the source code is available at https://github.com/ZhijiangTang/dsh-fmt
About this plugin
In a DSH workflow, raw text often arrives with inconsistent indentation, mixed-case SQL keywords, and unpredictable field ordering, and manually validating and reformatting it every time is slow and error-prone. dsh-fmt collapses that into a single format_text call: feed in the original text and a target format, and you get back either a validated, canonically formatted result or a clear error with line and column information.
The plugin covers JSON, YAML, TOML, and SQL. JSON and YAML are parsed first and then stringified with pretty-printing, expanding flow-style arrays into block style; TOML follows the same parse-then-normalize path with position details lifted directly from the parser error. SQL supports four dialects (standard, PostgreSQL, MySQL, SQLite) and lets you choose keyword casing as upper, lower, or preserve. A deliberate design rule keeps the pipeline robust: a parse failure never throws a tool-level exception. The caller always receives a structured ok flag plus an error message, so one bad snippet cannot crash the entire pipeline.
Written as pure ESM with no build step and no native dependencies, the plugin is ready to use the moment it is installed. It fits developers building prompt-assembly pipelines, cleaning external data, validating user-submitted config fragments, or embedding a lightweight formatting step into an agent tool chain in DSH.
Use Cases
- Normalize incoming JSON, YAML, and TOML config fragments inside a DSH pipeline
- Validate user-submitted SQL queries and emit standardized keyword casing
- Embed lightweight text formatting and error-location steps into an agent toolchain
Best For
- Developers building DSH agent toolchains that need a lightweight formatting step
- Engineers processing multi-source config data requiring unified validation
- Architects authoring prompt-assembly pipelines with text normalization requirements
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.