返回插件市场

dsh-ponytail

Agent 与工作流

Wenaixi/dsh-ponytail

DietrichGebert/ponytail 的 DSH 完整移植版——懒惰资深工程师模式,hook 注入。提供 7 阶梯子和 6 个中文技能,避免过度工程。

  • agent-skills
  • ai-agents
  • claude-code
  • claude-code-plugin
  • code-review
  • cursor
  • deepseek-harness
  • developer-tools
  • dsh
  • dsh-plugin
  • lazy
  • llm
  • opencode
  • over-engineering
  • ponytail
  • prompt-engineering
  • qoder
  • typescript
  • windsurf
  • yagni
GitHub Stars
17GitHub
浏览量
2DSH Plugin Hub
Forks
2GitHub
开放问题
0GitHub Issues
Manifest 版本
4.9.0-dsh.5@wenaixi/dsh-ponytail
最近推送
2026年10月8日GitHub
许可证
MITTypeScript
插件类型
Host运行于 DSH Host

验证与兼容性

这里展示目录实际采集到的证据;未声明的信息会明确标为未知。

静态检查通过
01精确来源: npm · @wenaixi/dsh-ponytail@4.9.0-dsh.502验证时间: 2026年8月24日03验证版本: 0.1.0-rc.7
当前版本兼容性
已在当前目录版本验证
声明的 Harness 范围
未声明
声明的平台
未声明
适用 Profile
web
构建授权
未知
权限声明
未声明
外部服务
未声明
遥测声明
未知
未发现已知风险标记

这不是安全背书;安装前仍应查看源码、权限和配置。

查看证据与判定范围

验证仅覆盖标出的来源、版本和 Harness 环境,不代表未来版本仍然兼容。

  • @wenaixi/dsh-ponytail@4.9.0-dsh.5
  • 插件通过清单与静态结构检查,尚未完成运行时加载检查。

README

查看源文件

dsh-ponytail

English | 简体中文

npm License: MIT DSH Node pnpm

A DeepSeek Harness (DSH) port of DietrichGebert/ponytail, maintained independently (ADR-0010). Injects the 7-rung ladder directly into system prompts, provides 6 specialized skills, and registers zero tools.

What it is

A counter-weight to LLM boilerplate and over-engineering: deletion over addition, boring over clever, and fewest files possible. Challenge requirements before writing code (YAGNI), prioritize existing functions and standard libraries, and solve in one line when possible.

Features a Zero Cache Miss Architecture (ADR-0012): session baseline is locked permanently, and dynamic intensity switches take effect via turn-end reminders, leaving historical prompt / KV cache 100% untouched across long conversations. Ships as a pure dsh.bundle, writes zero garbage to your home root, uninstalls cleanly, and rebuilds itself through HMR.

Install

Needs the DSH runtime (npm i -g @deepseek-ai/dsh). Node and pnpm floors are in the badges above. Examples use the web profile; substitute your own profile name.

# Install (automatic HMR reload)
dsh plugin --profile web add @wenaixi/dsh-ponytail

# Remove
dsh plugin --profile web remove @wenaixi/dsh-ponytail

# Inspect composed patch tree
dsh --profile web --dump-config | grep -A2 ponytail

Usage

/ponytail            Switch to full mode (all 7 rungs active)
/ponytail lite       Do the bare minimum
/ponytail ultra      Challenge the requirement itself first
/ponytail off        Disable injection
/ponytail default lite   Persist default across sessions
stop ponytail        Equivalent to off (exact match)

Intensity levels reset on each new session according to env > Profile patch > fallback full. Therefore, /ponytail <level> is session-scoped. To persist across restarts and new sessions, use /ponytail default <level>.

Zero Cache Miss Architecture

When switching intensity levels within an ongoing session or updating global default configurations, the top-level SystemPrompt baseline remains strictly byte-identical and static.

Mode transitions take effect dynamically by appending an incremental system notification (<system-reminder>) at the end of the current turn's user message (aligned with the official dsh-tool-skill catalog update pattern, ADR-0012). This 100% protects historical KV Cache / Prompt Cache across all multi-turn conversation history, eliminating costly prefill recalculations and latency spikes.

Skills

SkillDescription
/ponytailCore mode: 7-rung ladder, lazy senior dev mindset
/ponytail-reviewOver-engineering code review: hunt for code that can be deleted
/ponytail-auditWhole-repo complexity audit, ranked by deletion yield
/ponytail-debtHarvest ponytail: comments into an actionable debt ledger
/ponytail-gainMinimal metrics dashboard showing code reduction benchmarks
/ponytail-helpQuick reference card for modes, commands, and skills

Skill Bodies and Description Languages

Skill bodies are retrieved directly from upstream DietrichGebert/ponytail v4.10.3 in verbatim English. Two host-incompatible details are tailored for DSH: ponytail-gain data sources point to assets/*.svg (as upstream benchmarks/ is excluded), and ponytail-help configuration and update sections reference profile patches and dsh plugin.

Model catalog views and configuration forms share the exact same description string, governed by skillDescriptionLang (three-state: explicit Chinese zh / explicit English en / unconfigured auto). When unconfigured, it follows the host's locale.preference (English triggers English alignment; others default to Chinese). Explicit selection locks the language. Canonical descriptions reside in skills/descriptions.zh.json and skills/descriptions.en.json, served live via ctx.remote.ponytail.snapshot().

Configuration Panel

The card detail view provides an embedded settings panel: intensity level control, independent toggle switches for all 6 skills, a one-click reset button, and a 3-tier priority diagnostic chain displaying environment variables, profile patches, and built-in fallbacks with their active hit states.

The level segmented control reflects only the actual persisted configuration. When defaultMode is not configured in the patch, the control highlights the appended unset segment. The currently active runtime level is displayed distinctly in the diagnostic header text.

Configuration reads and writes use two official DSH channels:

ChannelScopeTarget
ctx.configForms.get('ponytail')Default level & disabled skills with revision conflict checkingprofiles/<name>/cordis.patch.yml
ctx.remote.ponytail.snapshot()Active runtime level & 3-tier diagnostic chain (read-only)In-memory RPC

Profiles lacking a full UI service bundle (headless, CLI) fall back gracefully to profiles/<name>/ponytail/config.json. Legacy configurations from $DSH_HOME/ponytail/config.json are migrated once into profile patches upon initial boot and renamed to .imported.

Upstream Mapping

The six hooks from upstream hooks/ are consolidated into a single DSH Cordis plugin:

UpstreamDSH Implementation
ponytail-config.jssrc/ponytail-config.ts
ponytail-instructions.jssrc/ponytail-instructions.ts (single entrypoint renderPromptSection)
ponytail-state.jssrc/ponytail-state.ts (flag file I/O, session baseline manager, reload)
ponytail-activate.jssrc/ponytail.ts (agent/created hook)
ponytail-mode-tracker.jssrc/ponytail-commands.ts (createCommandDispatcher)
ponytail-subagent.jssrc/ponytail.ts (agent/created, PONYTAIL_SUBAGENT_MATCHER)

Prompts are injected via systemPrompt.section('ponytail') at order: 50, positioned neatly between persona (0) and tools (100). When switched to off, prompt rendering overhead is zero. Flags and configurations are scoped per profile directory, ensuring full multi-instance isolation.

Development

pnpm typecheck              # tsc --noEmit
pnpm build                  # tsc into lib/, scripts/build-client.mjs generates lib/client.js
node scripts/verify.mjs     # Static contract gates: artifacts, skills, zero tools, slots, locales
node scripts/docs-verify.mjs # Documentation and version consistency gates
node scripts/behavior.test.mjs  # Behavioral test suite (113 tests pass)

dsh --profile web --patch ./cordis.patch.yml --dump-config  # Verify patch parsing
pnpm dsh web --patch ./cordis.patch.yml   # Hot reload dev runner

License

MIT. Full text in LICENSE.

Credits

评论

0
最新优先