AI Agent Hub
Back to plugins
🧩

deepseek-harness-plugin-from-scratch

admin-security Updated 2026.08.21

Run the following command in DeepSeek Harness:

dsh plugin install Opr4Mp3r/deepseek-harness-plugin-from-scratch

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Opr4Mp3r/deepseek-harness-plugin-from-scratch inside the target DeepSeek Harness profile to install the plugin; the source repository lives at https://github.com/Opr4Mp3r/deepseek-harness-plugin-from-scratch, and because it is not yet published to the npm registry you should either use the prebuilt tarball from the repo or declare the allowBuilds whitelist when running pnpm 10 or later.

About this plugin

Most plugin tutorials stop at how to fill in the API surface, but what actually determines whether a plugin works reliably inside a live Harness is the boundary discipline: injecting required dependencies, attaching every registration to a revocable effect, splitting replaceable capabilities into the Definition / Provider / Consumer triangle, guaranteeing that everything model-visible can be reconstructed verbatim from the Session log, and testing the real assembly path rather than mocks. This repository distills six core principles from a full upstream code audit and ships a fully installable, runnable, line-by-line readable TypeScript plugin as a reference implementation, answering not how to write apply() but how a plugin achieves correct dependency wiring, verifiable configuration, and swappable services inside a real composition root.

Five interactive chapters-minimal tool, lifecycle and effects, the capability triangle, events and persistence, testing and release-carry 51 checkpoints that reveal each line of code evolution in lockstep with the prose, with a right-hand repository snapshot that only grows and ultimately equals the chapter's canonical source. Accompanying automated scripts cover packaging, profile installation, config-layer verification, and an end-to-end greet invocation, so a green unit-test suite no longer masquerades as a working plugin.

Whether you are building or reviewing DeepSeek Harness plugins, want to internalize the plugin-service-event-Session collaboration model, or need a delivery checklist and a 17-item anti-pattern list you can paste straight into a PR description, this repository serves as both a runnable reference implementation and an audit trail where every conclusion is backed by upstream source-code evidence.

Use Cases

  • Designing new plugins inside DeepSeek Harness with correct dependency boundaries, revocable effects, and the Definition/Provider/Consumer triangle
  • Reviewing existing plugin code against norms like revocable registration, model-visible content reconstructable from Session log, and tests exercising the real assembly path
  • Walking through 51 interactive checkpoints to master the full chain from minimal tool, lifecycle, waterfall events, to persistent log replay

Best For

  • TypeScript developers building or maintaining DeepSeek Harness plugins
  • Tech leads who need a delivery standard, audit checklist, and anti-pattern checklist for their plugin team
  • Engineering learners who want to internalize the plugin-service-event-session collaboration model from a single runnable reference