Introduction¶
The ecological philosophy of DeepSeek Harness (DSH) is “everything is a plugin”. The upstream tool ponytail (“Lazy Senior Developer Mode”) natively adapts to environments like Claude Code and Codex, but DSH’s agent architecture lacks the UserPromptSubmit lifecycle hook it depends on. dsh-plugin-ponytail rebuilds this layer on DSH’s existing extension points (such as systemPrompt.context), integrating Ponytail’s rules, skills, and commands into DSH without modifying upstream code or injecting files into the repository.
Plugin Overview¶
This plugin is dsh-plugin-ponytail, maintained by BorisLoveDev and licensed under MIT. It translates Ponytail’s “Lazy Senior Developer” mode into native DSH capabilities. Its core value lies in providing a persistent set of rules and a skill list for specific projects, while allowing mode intensity control via a command-line interface.
Core Features¶
The plugin registers three items at DSH’s extension points:
- Always-on Rules: Implemented via
systemPrompt.context(), rules are recalculated and activated for every prompt. - Skill Provider: Registers six
ponytail*skills viaskills.registerProvider(). These skills are only visible when Ponytail mode is enabled. - Command Interface: Registers the
/ponytailcommand to toggle mode status or view the current status.
Installation¶
Install using the official registry:
dsh plugin --profile web add dsh-plugin-ponytail
If installing via a local path:
dsh plugin --profile web add /path/to/dsh-plugin-ponytail
After installation, the plugin is injected as a dsh.bundle.patch and typically takes effect on the next startup. If the host has patchReload: live enabled, it can be loaded without restarting.
Project Configuration¶
The plugin activates based on the existence of a .ponytail/ directory in the project root.
- Create the directory structure:
mkdir -p .ponytail/skills
- Place the rules file (upstream
AGENTS.md):
# rules.md
- Place the skill files (upstream
skills/content):
# skills/*/SKILL.md
- Set the initial mode state:
printf 'full\n' > .ponytail/state
Mode Commands and Usage¶
Control mode intensity or view status via the /ponytail command:
- View Status:
/ponytail status - Switch Mode:
/ponytail lite
/ponytail full
/ponytail ultra
/ponytail off - Persist Default Value:
/ponytail default lite
The state file stores the current mode. After switching modes, it takes effect on the next prompt.
The plugin supports the upstream “stop gesture” mechanism. Entering stop ponytail or normal mode in a message switches the current project to off status. Mentioning the phrase without a complete match will not trigger it.
Differences from Other Plugins¶
There are two other Ponytail plugins in the ecosystem with different functional focuses:
- dsh-ponytail: Injects rules as a global system prompt and registers skills. Suitable for scenarios where rules need to take effect in all sessions.
- dsh-ponytail-skills: Provides only skills without injecting rules. The model must choose to load skills itself, and rules are not enforced.
- dsh-plugin-ponytail: This project. It combines rule injection and skill provision but is only effective for projects containing the
.ponytail/directory. It uses.ponytail/stateon disk to save state, ensuring the mode is not lost after session recovery.
Notes¶
- Mutually Exclusive Installation: Both
dsh-ponytailanddsh-plugin-ponytailregister the/ponytailcommand, so installing the second one will fail. Please choose one based on your needs. - No Extra Artifacts: The plugin does not create
AGENTS.local.mdor symbolic links in.agents/skillswithin the project. The only artifact is the.ponytail/directory under the project directory. - Directory Search Logic: The plugin traverses the file system upwards from the session’s working directory until it finds the
.ponytail/directory. This means sessions in nested repositories will also inherit the rules from this directory. - Source Code Inspection: Since the plugin runs with the current process permissions, it is recommended to review the source code and license before installation.
Conclusion¶
If you need to enforce Ponytail rules in specific projects and maintain persistent state, dsh-plugin-ponytail offers a lightweight filesystem-based solution.
- Directory Page: https://www.skillhub.cn/plugins/BorisLoveDev/dsh-plugin-ponytail
- GitHub: https://github.com/BorisLoveDev/dsh-plugin-ponytail