dsh-ponytail: Adding the 'Write One Line Less' Workflow Constraint to Agents in DSH

Preface

When letting models edit code in DeepSeek Harness (DSH), a common outcome is that a small requirement gets answered with a cache class, a configuration switch, and a factory function, when a single line of standard library or platform capability would have solved it. The DSH community mounts capabilities as plugins; workflow plugins can write “first ask whether it is needed, then follow the ladder to the simplest implementation” into the system prompt and skills without touching the orchestration core. Below is an introduction to dsh-ponytail (Ponytail, lazy senior dev mode) maintained by maci0: six loadable skills, an always-on anti-over-engineering ruleset, and plugin configuration cards with Composer chips.

What is this

dsh-ponytail (npm package @maci0/dsh-ponytail) targets DSH >=0.2.1-rc.2 <0.3.0 and is MIT-licensed. The idea is adapted from DietrichGebert/ponytail (MIT): “He says nothing. He writes one line. It works.” The plugin injects rules into the system prompt through Cordis extension points, and provides the ponytail tool, the /ponytail command, and web-side settings cards, so agents in the current process select solutions along the same ladder at levels such as “lite / full / ultra”.

Community directory page: https://www.skillhub.cn/plugins/maci0/dsh-ponytail. Source and docs: https://github.com/maci0/dsh-ponytail.

Core features

Ladder

Except for off, the ruleset for the current level is added to the system prompt of every request. The ladder order is: question whether the capability is necessary → reuse existing code in the repository → standard library → platform capability → installed dependencies → an implementation that can be written clearly in one line; stop at the first level that holds. The README emphasizes: laziness is not negligence; understanding the problem, trust boundary validation, handling data loss, security, and accessibility are not in scope for cutting.

Six skills

Loaded via DSH’s skill tool and exposed in Composer as commands such as /ponytail-review, /ponytail-audit:

  • ponytail
  • ponytail-review
  • ponytail-audit
  • ponytail-debt
  • ponytail-gain
  • ponytail-help

The authoritative source of the ruleset is skills/ponytail/SKILL.md; the README does not keep a second copy.

Levels and persistence

Level Behavior Persisted?
lite Implement as required, and add a one-line note about a lazier alternative Yes
full Enforce the ladder; default level Yes
ultra YAGNI extreme: challenge the requirement before starting Yes
review Over-engineering review; points to the ponytail-review skill No, current session only
off Do not inject rules, return to the normal paradigm Yes

The four persistable levels write to the ponytail settings namespace; the settings card, Composer chips, ponytail tool, and /ponytail command stay consistent, and changes survive restarts. review is session-only to avoid deployments defaulting into review mode.

How to switch

  1. Enter /ponytail <level> in Composer, for example /ponytail ultra, /ponytail off.
  2. The model calls the ponytail tool; the optional parameter {"mode": "lite"} sets and persists the level, while no parameter reports the current level.
  3. Type stop ponytail or normal mode in a normal message; the effect is the same as /ponytail off; it must be a whole-sentence command from the human, injected context in the same stream cannot switch levels.

Web side

The plugin declares dsh.bundle and mounts a bundled cordis.patch.yml layer after installation. On the browser side it reads GET /ponytail/level on settings changes and every 5 seconds (returning { mode, source }, where source is settings or session), draws a card in the plugin row configuration slot, and draws a chip on the left side of the session input area; the card and chip provide both en and zh texts.

Installation and enabling

DSH must satisfy >=0.2.1-rc.2 <0.3.0. After upgrading the Harness, restart DSH and refresh the browser.

The README requires installing as a bundle: use dsh plugin add to mount the package’s patch layer so the settings editor can write to it; if you use --patch to add an overlay, it will disappear on the next startup, and the Plugins card cannot save to that layer.

Install with a pinned npm version (command from the source material, current package version 0.20.0):

dsh plugin --profile web add --save-exact @maci0/dsh-ponytail@0.20.0

To upgrade, run the same command with the new version number, then restart dsh web (the bundle layer is composed at startup).

Typical usage

Set the level first, then state the requirement. Interaction examples from the README:

/ponytail ultra   -> Ponytail level: ultra (was full).
/ponytail         -> Ponytail level: ultra.
/ponytail off     -> Ponytail off (was ultra). Normal behavior.

Example of the full level inside the skill (adding API response caching):

> Add a cache for these API responses.

`@lru_cache(maxsize=1000)` on the fetch function. Skipped custom cache class,
add when lru_cache measurably falls short.

Configuration

Field Default Meaning
defaultMode full Startup level; must be off, lite, full, or ultra

After the user selects a level on the card or with /ponytail, the user settings namespace overrides the default. Invalid levels fail at plugin load instead of silently misbehaving.

To set the startup level from an environment variable, override the entire config line with the same id in the profile’s cordis.patch.yml (do not use the bundle’s insert to add another line, otherwise it will mount twice):

- id: ponytail
  config:
    defaultMode: !!js process.env.PONYTAIL_DEFAULT_MODE ?? 'full'

Use cases and notes

For whom: teams or individuals who want to systematically suppress “stacking abstraction layers for single-point requirements” in DSH workflows; for review-style sessions, use the review level together with skills like ponytail-review.

Process and permissions: the plugin runs with the permissions of the current dsh process; rules are shared by all agents in the process in the same prompt segment and namespace values. Read the source and the MIT license before installing to confirm it meets your security and compliance requirements.

Known limitations (from the README):

  • The ladder shortens the implementation path, but does not skip reading code and understanding the problem.
  • Out-of-process sub-agents (such as subagent-claude-code, subagent-codex) each start their own CLI and do not inherit this plugin’s rules.
  • Level changes are not session events; when replaying a session, each request still shows the ruleset it carried.
  • Changes on the host side require bun run build and a restart; changes on the browser side require a page refresh.

The DSH ecosystem adopts “everything is a plugin”; community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.

Summary

dsh-ponytail writes Ponytail’s “one line is enough, then one line” ladder into DSH: six skills, always-on rules, tool and command level switching, plus web configuration cards and chips. If you are using DSH for coding workflows, you can pin @maci0/dsh-ponytail@0.20.0 with the installation command above and try a real requirement with /ponytail full or ultra.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye