fabric: A Minecraft Fabric-like Hook Processing Plugin for DeepSeek Harness
omdsh-dev/fabric
Fabric/Mixin hook layer for DeepSeek Harness, enabling load-time and browser transforms.
Provides safe, controllable load-time transformation for DeepSeek Harness, letting developers extend DSH behavior modularly.
dsh plugin --profile web add github:omdsh-dev/fabric- Category
- Development & Operations
- Platform
- DSH-Plugin
- Author
- omdsh-dev
- Distribution
- Plugin
fabric Key Features
fabric Repository

fabric Repo Summary
fabric is a DeepSeek Harness (DSH) plugin (DSH plugin) maintained by omdsh-dev, written in TypeScript, designed to provide a Minecraft Fabric-like hook processing mechanism for DSH. It addresses the need for safe, controllable load-time transformation of modules in DSH, allowing developers to extend and modify DSH behavior in a modular way without directly altering core code. The core capabilities of fabric include: providing a trusted load-time transformation service (FabricService), a compatibility layer (FabricCompatService), multiple DSH-facing facades (such as ctx.fabricAgent, ctx.fabricTools, etc.), and browser-side transformation support. The plugin consists of three packages: the pure Cordis packages cordis-fabric and cordis-fabric-api, and the DSH-facing package cordis-fabric-dsh, which supplies the Host and browser facades, the package invariant, and the profile bootstrap.
What core features does the fabric DSH plugin support?
fabric supports Node ESM/CommonJS load-time transformation, browser build-time transformation, priority composition, HMR-safe disposal, static target validation, generator delegation, and watched browser transforms. It registers trusted patch handlers via ctx.fabric.register(). Patch descriptors are configuration metadata, but executable handlers are never deserialized from YAML or model input, ensuring security. Additionally, fabric provides a testkit and a browser client entry for testing and integration.
How to install the fabric DSH plugin?
To install fabric, use the following command:
dsh plugin --profile web add github:omdsh-dev/fabric
After installation, fabric provides two disabled-by-default profile rows (cordis-fabric and cordis-fabric-dsh) as a bundle, which developers can enable as needed.
How to configure and use the fabric DSH plugin?
Configuration of fabric is primarily done through pnpm dependency patches (patches/) and the cordis.patch.yml file. The repository is self-contained; all source files, compiler settings, test fixtures, and build helpers reside under the repository root. Running pnpm run verify:self-contained enforces boundary checks, rejecting local-path dependencies, external links, etc. At launch, the fabric-dsh command provides the launcher/bootstrap wiring for the trio to run together.
Which DeepSeek Harness versions and platforms are compatible with the fabric DSH plugin?
The DSH-facing package (cordis-fabric-dsh) depends on npm packages such as @deepseek-ai/dsh-agent and @deepseek-ai/dsh-invariants, which are installable from the npm registry. fabric supports Node environments (ESM/CommonJS) and browser environments, with browser-side transformation via the browser facade (ctx.fabricClient).
What is the repository structure and license of the fabric DSH plugin?
The repository was created by omdsh-dev on 2026-08-06 and last updated on 2026-08-16, with 14 stars and 2 forks. It is written in TypeScript; the license is not explicitly stated in the README, but such projects typically use MIT or Apache 2.0. The repository structure includes packages/ (three packages), docs/ (detailed documentation), patches/ (dependency patches), etc.