dsh-deep-clone
Run the following command in DeepSeek Harness:
dsh plugin install uckkk/dsh-deep-clone
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install uckkk/dsh-deep-clone in DeepSeek Harness to install this plugin; the source code is hosted at https://github.com/uckkk/dsh-deep-clone .
About this plugin
Deeply nested objects in an agent workflow are a classic source of subtle bugs — a shallow copy or a simple reassignment quietly shares references, so mutating one branch silently shifts a sibling. dsh-deep-clone addresses exactly this: it registers deep cloning as a ready-to-call in-session tool, letting an agent obtain a safe, fully independent copy of any complex structure in a single step without hand-rolling recursion or pulling in heavyweight libraries.
The implementation stays deliberately lean — pure Node.js, zero network calls, no third-party runtime services. It runs fully offline, introduces no extra I/O, and returns a complete clone on invocation, so your workflow is never blocked by a flaky connection or an unavailable backend.
If your project repeatedly needs to replicate nested objects without polluting the source, and you would rather avoid heavy dependencies or external services for such a fundamental operation, dsh-deep-clone offers a lightweight, plug-and-play solution. Released under the MIT license, it is free to adopt in any project.
Use Cases
- Cloning nested objects safely before mutation in an agent workflow
- Performing data duplication in offline or network-restricted environments
- Preventing reference-sharing side effects caused by shallow copies
Best For
- Developers building agent workflows
- Application developers working with deeply nested data structures
- Teams that need reliable, zero-dependency utilities in air-gapped environments
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.