Strata · dsh-strata-preset

Preface

The plugin ecosystem of DeepSeek Harness (DSH) emphasizes “everything is a plugin,” allowing developers to mount different agent presets within a session to alter behavioral patterns. In existing approaches, presets are typically simple configuration sets that lack explicit constraints on the “image–kernel” relationship, making it easy to introduce inconsistencies or hard-to-trace changes during multi-turn tasks.

world-eternity’s dsh-strata-preset takes an epistemological starting point and turns a single principle into an executable agent action discipline: every task round forms a closed loop of report the image → assert the kernel → pre-register criteria → act → return with the new image. It does not add any new Host services—it merely declares one preset mode and one tool surface—making it well suited for developers who need to reinforce behavioral constraints within a session.

Plugin Identity

  • Name: dsh-strata-preset (Strata, “stratification”)
  • Maintainer: world-eternity
  • Type: agent preset (packaged as a config-only bundle)
  • Category: Workflow
  • License: MIT

It is a pure configuration package: no JS entry point, no install scripts, no runtime dependencies, no Host service declarations, and it does not modify any existing session.

Core Functionality

After installation, an option named Strata Stratification appears in the mode list of new sessions. Once selected, the agent executes tasks following the loop below:

  1. Report the image (report the current projection of the world)
  2. Assert the kernel (declare the current kernel)
  3. Pre-register criteria (write down criteria before switching kernels)
  4. Act (execute the intervention)
  5. Return with the new image (continue the next round with the new projection)

The plugin grounds epistemological concepts—“image,” “kernel,” “chain & mesh,” “failure axes,” “update gate,” “one-way pair,” and others—into executable constraints:

  • Image & Kernel: Three kernel types (mapping / projection / in-itself) are writable; they differ only in extension. The kernel cannot be directly reported; verification occurs only in the displacement at kernel-switching; pre-registration always lands on observables.
  • Chain & Mesh: The cognitive kernel is composite. The total kernel can only be pushed forward: ker(g∘f) = f⁻¹(ker g), and it can only run once. Series reduces discriminability; parallel increases discriminability; mesh = ∩_p ker(f_p), and merge points must be compatible. Bandwidth / tolerance / congruence / 𝒪 are given per segment. Which segment to repair is determined by argmax Δn_i / c_i, not by which segment loses the most.
  • Failure Axes: Six failure modes (narrow / distorted / unsolvable / unstable / model misspecification / selection bias), each paired with a probe that can separate it from its neighbors. The distortion criterion is double-Lipschitz distortion (folding yields ∞); parallel composition does not necessarily cure distortion; a near-isometry strand counts only as anchoring.
  • Update Gate: First determine whether the intervention acts on the apparatus side or the object side, then classify as artifact / false image / true image / undetermined.
  • One-way Pair: What is forbidden is “returning,” not the reading; the feasible form is P[reverse ∧ rec ≤ b] ≤ ε_↩, where b is left unwritten and ε_↩ carries no referent; criteria are fixed before kernel-switching.
  • Tool Surface: Files (read / write / edit / image), shell & persistent terminal, background tasks, scheduling, skills, goals, plan mode, compression, sub-agent / workflow / ralph, session query, web, todo, present.

Services already provided globally by the Host—plugin management, Cordis inspection, Office skills, web provider, and the like—are deliberately not re-mounted to avoid same-name tool collisions or duplicated services.

Installation & Activation

Installation supports three methods:

  1. From the plugin index (Discovery)

Navigate to Plugins → Experimental Plugins → Custom Plugin Index, switch to the Discovery tab, add the index source, and then install Strata. The repository ships a format-1 index market/index.json; once hosted over HTTPS, paste the URL. See PUBLISH.md for details.

  1. Install the npm package directly
   dsh plugin --profile <profile> add dsh-strata-preset
  1. Install from a local directory
   plugin_manager { action: install_bundle, target: <absolute path to this directory> }

Or select the directory via Plugins → Add Plugin. Installing a bundle executes plugin code within the Host process, so Full access or a one-time approval for the call is required.

After installation, you must start a new session and select Strata Stratification from the mode list.

Compatibility & Boundaries

  • Engine requirement: engines.dsh: >= 0.2.2-rc.3
  • The patch targets the @deepseek-ai/dsh-* packages shipped alongside dsh and resolves them from the dsh installation directory. The only thing that could break it is a rename or removal of those tool packages.
  • Windows vs. POSIX differences: tool-bash is disabled on win32; tool-pwsh is disabled on non-win32.

Boundaries and cautions:

  • The preset is not a sandbox: the patch runs with the Host’s privileges.
  • The persona is written in Chinese; the tool surface is language-agnostic.
  • Verified: YAML and index formats pass machine validation; the patch is byte-for-byte hash-identical to the running working copy.
  • Not verified: installation on third-party machines, marketplace page rendering, long-running behavior.

Use Cases

Best suited for developers who need to reinforce behavioral constraints within a session, especially those who want to explicitly constrain the “image–kernel” relationship and maintain consistency across multi-turn tasks. If you simply want to quickly add a new tool or service, this preset is not the right entry point.

Summary

dsh-strata-preset translates a single epistemological principle into an executable agent action discipline, providing constraints such as the three-layer kernel, six failure modes, update gate, and one-way pair. It is designed for developers who need to reinforce behavioral constraints within a session.

  • Catalog page: https://www.skillhub.cn/plugins/world-eternity/dsh-strata-preset
  • GitHub: https://github.com/world-eternity/dsh-strata-preset
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye