dsh-agent-extension: Integrating Commands, Skills, and Path Rules from Project and User Directories into DSH

Introduction

When building agent workflows in DeepSeek Harness (DSH), a common practice is to hand-write slash commands, maintain skill inventories, or repeatedly paste the same set of conventions into conversations. If conventions are scattered across the repository’s .dsh / .agents directories and the user’s home directory, DSH does not automatically scan and register them by default. The dsh-agent-extension provided by maintainer SugarFatFree is a workflow-style DSH plugin: it discovers reusable Markdown slash commands, skills, and path-scoped rules from project and user configuration directories, deduplicates them according to documented priority rules, and attaches them to DSH.

Below we introduce its positioning, capabilities, installation steps, and typical usage. Facts are based on the GitHub repository README; the community directory page can be found at SkillHub plugin page.

What is this

dsh-agent-extension is a plugin for the DSH web profile (current version 0.1.5, license MIT). In one sentence: DeepSeek Harness plugin for workspace commands, skills, and path-scoped rules.

It solves the problem of “definitions already exist on disk but do not enter the DSH session”: it discovers Markdown files under the commands, skills, and rules directories, registers them as slash commands, exposes skills through the DSH skills provider, and injects path-scoped rules after matching workspace files are read, written, or edited.

Core Features

Verified capabilities are as follows (excerpted from the official README):

  • Scans both project-level and user-level commands, skills, and rules simultaneously.
  • Compatible with both the .dsh and .agents directory conventions.
  • Duplicate definitions are resolved according to documented priority, with predictable behavior.
  • Markdown commands are registered as DSH slash commands; skills go through the DSH skills provider API; matching path-scoped rules are injected after relevant file activity.
  • Supports up to six levels of nested directories under each discovery root.

The project root in a session: walks upward to find the nearest ancestor containing .git; if there is no Git repository, uses the session working directory.

Type Project root User root
Commands <project>/.dsh/commands/**, <project>/.agents/commands/** ~/.dsh/commands/**, ~/.agents/commands/**
Skills <project>/.dsh/skills/**, <project>/.agents/skills/** ~/.dsh/skills/**, ~/.agents/skills/**
Rules <project>/.dsh/rules/**, <project>/.agents/rules/** ~/.dsh/rules/**, ~/.agents/rules/**

On conflicts, first match wins, with the following order:

  1. Project .dsh
  2. Project .agents
  3. User ~/.dsh
  4. User ~/.agents

Commands use the command name, skills use the skill name, and rules use the relative path under the rules directory as the conflict key.

Installation and Activation

Environment requirements:

  • DeepSeek Harness installed, with the web profile enabled.
  • pnpm (DSH uses it to manage profile plugins).

The plugin is currently distributed only from GitHub and has not been published to npm; install it using DSH’s native command, no npm account required:

dsh plugin --profile web add github:SugarFatFree/dsh-agent-extension

DSH recognizes this package via the dsh.bundle.patch declared in its package.json; installation writes to the selected profile and is automatically added to dsh.profile.bundles.

After installation, you need to restart the DSH Web process and refresh the browser; start a new session or resume an existing one to refresh the slash command catalog.

For local development, you can run at the repository root:

dsh plugin --profile web add .

If you modify local file: dependencies, you need to run pnpm install --force in the Web profile directory to refresh node_modules, then restart DSH Web.

Typical Usage

Slash Commands

Each Markdown file under a commands root corresponds to one slash command. Name resolution order: YAML frontmatter name → an H1 like # /release - Release → filename.

---
name: release
description: Prepare a release
---

Read the release checklist and prepare the release notes.

Typing /release optional arguments in a session starts a normal agent turn, with the command body and arguments serving as the task instructions.

The command directory is watched; for example, after adding .agents/commands/aa.md, already-open sessions can get /aa without restarting DSH Web (the command menu updates via DSH’s live command-change event).

Skills

A skill can be a single Markdown file or a directory package containing SKILL.md. Standard frontmatter is required: name (kebab-case), description.

---
name: api-review
description: Review API compatibility
whenToUse: Before publishing a changed API
---

Review the changed API surface.

Optional fields disable-model-invocation, user-invocable, and metadata are passed through to DSH. Skills appear in the DSH Skills directory and in the skill sources of /, not just in command sources; unreadable files within a discovery root are skipped to avoid blocking skills from other roots.

Path-scoped Rules

A rule is a Markdown file under a rules root with a non-empty paths field in its frontmatter; files without paths (including README.md) are ignored.

---
name: frontend-conventions
paths:
  - "code/frontend/**"
  - "web/**"
---

Use the established component and accessibility conventions.

Matching rules are injected once after the agent successfully reads, writes, or edits a matching workspace file, and before the next model step. Patterns are computed relative to the project root.

Verifying Installation

Run the built-in command in an agent session:

/dsh-extension-status

The output includes the current session working directory, along with discovered commands, skills, and rules; project commands are registered in the session command directory and appear in the / menu.

Use Cases and Notes

Who it’s for: Developers who already maintain commands, skills, and team conventions in Markdown within their repositories or ~/.dsh, ~/.agents, and want them to automatically take effect in DSH Web sessions; those who need to mix .dsh and .agents, or layer project and user levels with explicit priorities.

Notes:

  • The plugin runs under DSH process permissions; before installing, review the source code and LICENSE yourself to confirm it meets your security and compliance requirements.
  • Depends on @deepseek-ai/dsh-llm (peer, ^0.1.5-rc.2) and chokidar; behavior is governed by the current DSH and plugin versions.
  • Community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / Hunyuan; installation commands follow the README—do not construct them yourself based on the plugin name.

Conclusion

dsh-agent-extension connects Markdown workflow definitions scattered across project and user directories to DSH: commands go into the / menu, skills go into the Skills directory, and path-scoped rules are automatically injected when relevant files are edited. If you are using Harness’s web profile for team agent workflows, you can install it via the command above and verify the discovery results with /dsh-extension-status.

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

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

Xiaoye