AI Agent Hub
Back to plugins
⚙️

dsh-deep-clone

Workflow Updated 2026.08.20

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