dsh-kilo-prompt: Bringing Kilo Code Prompts into DSH

Introduction

DeepSeek Harness (DSH) controls model behavior by stacking system prompts via plugins. However, many developers prefer more restrained, engineering-oriented prompts—such as Kilo Code’s “talk less, do more, stop when done” style. The hitmargin/dsh-kilo-prompt plugin ports Kilo’s soul and default system prompts into DSH and provides a one-click toggle in the sidebar.

What Is This

hitmargin/dsh-kilo-prompt is a DSH plugin that ports Kilo Code’s built-in system prompts (soul + default) into DSH and adds a toggle in the DSH sidebar to switch model behavior. It is maintained by HitMargin, categorized under “Fun Reskins,” and currently has 0 stars.

What It Does

DSH system prompts are concatenated in order sequence. The plugin registers its own section via ctx.systemPrompt.section({ name, order, text }) and returns a disposer. When the toggle is turned off, the disposer is called, and the next request reverts to the default.

Once enabled, the model’s code of conduct becomes Kilo’s: talk less, do more, stop when done. The plugin maps tool names mentioned in Kilo’s original text to DSH’s actual tools and removes sections irrelevant to DSH (e.g., /help command descriptions, GitHub issues feedback links, and WebFetch instructions for kilo.ai/docs). All rules, tone, few-shot examples, and prohibitions are preserved verbatim.

Prompt Sources and Modifications

The prompts are sourced from Kilo-Org/kilocode:

  • Persona layer: packages/opencode/src/kilocode/soul.txt
  • Body layer: packages/opencode/src/session/prompt/default.txt

Kilo’s actual assembly order is [soul, provider(model), environment, user.system]. Here we take the soul + default pair—which is what it actually sends when no specific model is selected.

Modifications relative to the original:

Original Modified
Bash pwsh
Task subagent
WebFetch web_fetch
ls tool glob / pwsh
question ask_user_question

Additionally, three items irrelevant to DSH are removed: the /help command description, the GitHub issues feedback link, and the instruction to “WebFetch kilo.ai/docs when the user asks whether Kilo can do something.”

Behavior Changes (Expected)

  • Responses are kept to 4 lines or fewer; if one word suffices, use one word
  • Prohibits starting with “Great / Certainly / Okay / Sure”
  • Prohibits ending with questions or invitations to continue the conversation
  • Stops after completing file work; no “here’s what I did” summaries
  • No code comments added unless explicitly requested
  • No proactive commits
  • Must run lint and typecheck after completing a task

Usage

An additional button appears at the bottom of the DSH sidebar (to the right of the bell icon):

State Meaning
Gray icon Off (default). Uses DSH’s own prompts
Highlighted + green dot in upper-right corner On. Kilo prompt injected

Click to toggle; takes effect immediately. State is persisted to ~/.dsh/plugin-data/dsh-kilo-prompt/settings.json. Hover over the button to see the current state and the number of characters injected.

Defaults to off. This globally replaces the model’s speech style and code of conduct, making it a strong side-effect toggle—hence the off-by-default. Missing, corrupted, or malformed config files are all treated as off.

Why Not Use @deepseek-ai/dsh-persona

DSH’s built-in dsh-persona is designed for agent presets. The section name it registers collides with the registry’s own persona registration, causing a name conflict and an error when mounted globally (the package’s source code comment explicitly states “mounted globally it collides with the registry’s own registration and fails loud”). Therefore, this plugin uses its own section name kilo:persona and only appends content without touching the deployed persona.

Installation

Desktop / Local

# 1. Let the profile resolve to this package (equivalent to pnpm's link: dependency)
$p = "$env:USERPROFILE\.dsh\profiles\desktop"
$pkg = Join-Path $p 'package.json'
$j = Get-Content $pkg -Raw | ConvertFrom-Json
$j.dependencies | Add-Member -NotePropertyName 'dsh-kilo-prompt' -NotePropertyValue 'link:D:/Projects/dsh-kilo-prompt' -Force
$j.dsh.profile.bundles += 'dsh-kilo-prompt'
$j | ConvertTo-Json -Depth 20 | Set-Content $pkg -Encoding utf8

Then confirm it’s enabled on DSH’s “Plugins” page.

CLI

dsh plugin --profile web add github:HitMargin/dsh-kilo-prompt

Development

node --check index.js && node --check client.js
node test/smoke.mjs     # Client: module shell, slot registration, rendering, HMR self-cleanup
node test/host.test.mjs # Host: section register/revoke, persistence, cross-origin interception, registration-failure fallback

Zero dependencies, zero build. Tests use node:vm to actually execute the client code—no browser required.

One notable test case in host.test.mjs: when registration throws an error, the request still returns 200, and the toggle state honestly reflects the user’s intent—no faking success, no crashing the plugin.

License

MIT

Use Cases and Notes

  • Suitable for DSH users who want a more restrained, engineering-style system prompt.
  • The plugin runs with the current dsh process permissions. Review the source code and license before installing.

In Short

Brings Kilo Code’s prompt style into DSH, with a quick sidebar toggle for switching. Plugin repo: https://github.com/HitMargin/dsh-kilo-prompt

References

  • https://github.com/HitMargin/dsh-kilo-prompt
  • https://www.skillhub.cn/plugins/HitMargin/dsh-kilo-prompt
羽毛球分组比赛记分
小程序二维码

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

Xiaoye