Preface

In DSH’s “everything is a plugin” philosophy, plugins are often used to extend the host’s execution mode. For capabilities like the J-Space Cognition Suite, injecting them entirely into system prompts every time would make simple tasks seem redundant; if not injected, complex tasks might be missed.

dsh-jspace-trigger provides an intermediate approach: it only observes real user messages and decides based on rules whether it is worth prompting the DeepSeek Harness agent to load j-space.

Below is an introduction to the positioning, features, installation method, and boundaries to pay attention to for this plugin.

Plugin Positioning

dsh-jspace-trigger is a configurable local trigger maintained by EricWang1358 under the MIT license.

It does not perform full injection. It only prompts the agent to load the J-Space Cognition Suite when a rule matches; otherwise, it remains silent.

This plugin is suitable for users who are already using the DSH web profile and wish to enable J-Space on demand. Its Node.js engine requirement is >=20.

Core Features

The following lists verified capabilities.

  • No full injection: It will not forcibly add J-Space related prompts to every session.
  • Configurable rule engine: Supports regex, keywords, any/all/score matching, rule-level thresholds, and exclusions.
  • Length fallback: Long non-chat messages can be routed to full or loop.
  • Session-safe delivery: A hit in one session will not be delivered to an agent in another session.
  • Deduplication: An event triggers a prompt at most once.
  • Observance-only mode: Under injectMode: none, it only logs without injecting.
  • Skill detection and installation guidance: Reports whether j-space is installed and provides installation prompts or commands.
  • Runtime metrics: Reports events, triggers, injections, and observance-only hits.
  • Invocation funnel analysis: Connects rule hits, delivery, and subsequent tool calls, and checks if j-space is loaded.
  • Dry-run tool: Displays the processing result of the current configuration on a message.

Built-in opt-out rules are always evaluated first and can override content keywords. This means that even if a message contains keywords that would normally trigger a match, once the opt-out is triggered, the reminder will not continue due to those content keywords.

Installation & Activation

First install the plugin, then restart DSH, and finally verify the configuration.

  1. Installation:
dsh plugin --profile web add "github:EricWang1358/dsh-jspace-trigger"

This command adds the repository-form plugin to the web profile.

  1. Restart:
dsh --profile web
  1. Verify configuration:
dsh --profile web --dump-config | Select-String dsh-jspace-trigger

After the above steps, if the output contains dsh-jspace-trigger, it means the plugin is visible in the configuration.

Typical Usage

When dry-running a message, you can use:

jspace_trigger_test "<message content>"

This step is used to see how the current configuration would treat this message.

If you want to observe without injecting, you can set it in cordis.patch.yml:

config:
  injectMode: none

In observance-only mode, hits are logged, but no prompts are injected into the agent.

If you maintain a copy of the repository and wish for it to appear in market discovery based on GitHub topics, the repository needs to carry the dsh-plugin GitHub topic and keep a non-empty description.

Applicable Scenarios & Notes

This plugin is suitable for scenarios where you want to “load J-Space on demand”: it does not interfere when the message is simple, and reminds the agent only when the message matches the rules.

Pay attention to the following points before use:

  • The plugin runs with the permissions of the current dsh process; you should check the source code and license before installing.
  • License is MIT.
  • Node.js engine requirement is >=20.
  • DSH 0.1.0-rc.7 is verified; versions lower than 0.1.0-rc.7 are not supported.
  • peerDependencies restrict @deepseek-ai/cordis >=4.0.0-rc <5 and related DSH packages.
  • Zero runtime dependencies, using only Node.js built-in capabilities.
  • Hits are not delivered across sessions, and an event triggers a prompt at most once.
  • Built-in opt-out rules are always evaluated first and can override content keywords.

Links

GitHub Repository: https://github.com/EricWang1358/dsh-jspace-trigger

Community Directory Listing Page: https://www.skillhub.cn/plugins/EricWang1358/dsh-jspace-trigger

The Community Directory is an independent site and has no official affiliation with DeepSeek / Fenxiang.