DeepSeek Harness (DSH) adopts a plugin-based architecture, supporting capability extension through configuration. In multi-session development or long-running tasks, developers need to maintain certain long-term conventions across all subsequent sessions, such as “respond in Chinese” or “do not modify the main branch.” The dsh-plugin-pinboard plugin solves this issue by injecting pinned notes into system prompts, achieving a “pin once, apply globally” effect.
This is a cross-session pinned note plugin that supports injecting notes into the system prompts of all sessions, with built-in tag management and a fact base.
Installation and Activation¶
Installation requires the following steps:
- Install the plugin package using the official command:
dsh plugin --profile web add github:121212165/dsh-plugin-pinboard
-
Merge the content of the repository’s root
cordis.patch.ymlinto$DSH_HOME/profiles/web/cordis.patch.yml. This file defaults to an empty array; it is recommended to replace the entire file or merge the arrays. Do not simply append, otherwise it will cause YAML parsing errors. -
Restart DSH. Both the configuration layer and the client must be restarted for the changes to take effect.
Core Features¶
The plugin primarily provides the following capabilities:
- Cross-session Injection: Pin a note via
/pinin any session, and that note will be included in the system prompts of all subsequent sessions. - Tag Metadata: Supports adding tags to notes. Tags are used only for listing and retrieval and do not enter the injected body text.
- Built-in Fact Base: Manage facts via the
/factscommand and thefact_searchtool. Facts are stored in the same file but do not occupy injection budget. - Model Autonomous Invocation: The model can autonomously invoke the
pin_addtool to pin notes.
Common Commands¶
The plugin provides the following commands and tools:
- Pin a Note:
/pin <sentence> [#tag...]
Duplicate content will not be added to the database again.
- Unpin:
/unpin <id>
- List Notes:
/pins
In the output, `●` indicates the note will be injected, while `○` indicates it has been pushed out due to exceeding the budget.
- Fact Base Management:
/facts save|find|list|rm|import
The `import` operation is read-only and will not modify the source file.
- Model Tools:
pin_add: Allows the model to autonomously pin notes.fact_search: Allows the model to query the fact base, scoring by tag/body text hits.
Configuration and Notes¶
Notes and facts are stored in ~/.dsh/pinboard/pins.jsonl. Injection is subject to limit (default 12) and maxChars (default 1200).
- Notes are injected in descending order of the
attimestamp, with the newest first. If a single note is too long, it will be truncated to ensure the newest note is always included. - Configuration errors (e.g.,
limit: -1) will cause startup to fail with pinboard explicitly named, without crashing the entire Harness. /facts importis a read-only operation; the source file bytes remain unchanged.- Duplicate content is not stored redundantly.
Summary¶
This plugin solves the problem of cross-session context loss through an injection mechanism, making it suitable for scenarios requiring long-term fixed instructions. Plugin Maintainer: 121212165, License: MIT.