Introduction¶
When using DeepSeek Harness (DSH), if you want every new session to follow the output style rules defined in i-have-adhd, you typically need to manually copy the rule text into the conversation context. For scenarios where you frequently start new sessions, this becomes a repetitive operation. DSH does not have a built-in global style switch; the only way to achieve this is through plugins.
Below is an introduction to a workflow plugin that injects the upstream i-have-adhd rules into DSH sessions and automatically re-injects them after billion-context folding, preventing rule loss.
What Is This¶
- Plugin name: dsh-adhd-mode
- Maintainer: juezhong (GitHub user liyunfeng)
- Category: Workflow
- Version: 0.2.0
- License: Code under MIT; rule text sourced from i-have-adhd, MIT, see NOTICE for details
This plugin does not provide a toggle tool itself. Instead, it modifies DSH’s context injection logic to bring the i-have-adhd output style rules into every new session, and re-injects them at the appropriate moment (after session folding) to maintain style continuity in long conversations.
Core Features¶
- Before the first execution of a new session, the rules are inserted as a context message in the conversation, positioned after the user message.
- Once the rules are injected, they will not be re-injected as long as the session history remains unchanged.
- In sessions with billion-context compression enabled, compression occurs on outgoing requests while the session file remains untouched; the rules may be folded into the summary. The plugin reads the bili log, counts the number of folds for that session, and re-injects the rules before the next model step each time a new fold is detected.
- The plugin does not register any commands, tools, or toggles. Disabling behavior must be controlled through configuration or conversation.
Installation & Activation¶
Installation commands (to be executed in the terminal):
git clone https://github.com/juezhong/dsh-adhd-mode
dsh plugin --profile desktop add .\dsh-adhd-mode
Alternatively, use install_bundle in plugin_manager within DSH, pointing to the cloned directory path. After installation, restart DSH; new sessions will take effect automatically. The currently active session will not be retroactively affected.
Note: This plugin is not published to npm. package.json contains private: true, so installation is only possible via the GitHub repository.
Configuration¶
In the DSH profile’s cordis.patch.yml, override settings by line id:
- id: adhd-mode
config:
enabled: true
| Field | Default | Description |
|---|---|---|
enabled |
true |
When disabled, the plugin will not inject rules into the session |
If you need to point to a different bili log path, set the environment variable DSH_ADHD_BILI_LOG (used for offline integration testing; not required for everyday use).
Typical Usage¶
- Enable: After installing and activating the plugin, simply create a new session and the rules will be injected automatically—no manual copying needed.
- Disable: To return a session to the default style, just talk to the assistant directly and use the exit conditions provided in the rule text, for example saying
stop adhd modeornormal mode. The plugin itself has no command or toggle tool.
Use Cases & Cautions¶
Suitable for developers or users who want to enforce a unified output style across DSH sessions and reduce manual copy operations. Before use, review the plugin source code and license to ensure compliance with your project’s requirements.
The plugin runs with the current DSH process privileges. Before installation, verify the repository source and version.
Conclusion¶
This plugin maintains the continuity of i-have-adhd’s output style in DSH sessions through automatic injection and post-fold re-injection, reducing repetitive operations. For more details, see the directory page and GitHub repository:
- Directory page: https://www.skillhub.cn/plugins/juezhong/dsh-adhd-mode
- GitHub: https://github.com/juezhong/dsh-adhd-mode