Skip to content

CocoSgt/dsh-inspector

62Last commit Aug 14, 2026

dsh-inspector DSH plugin

dsh-inspector is a third-party plugin for DeepSeek Harness (dsh). It adds an "Instruction Files" panel on the right side of the Web UI that displays the instruction chain in the harness's real load order: from global AGENTS.md through project root to the current working directory, plus the status of the four skill roots. The panel mirrors the official discovery algorithm exactly, so what you see is what the model gets.

How to install the dsh-inspector DSH plugin

dsh plugin --profile web add dsh-inspector

Copying does not run this command. Review the repository and version before installing the dsh-inspector DSH plugin.

dsh-inspector DSH plugin data source

dsh-inspector DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-inspector DSH plugin can do

  • Instruction-chain view: one card per layer (global, project root, current directory) with status chips for duplicate-collapsed, oversized-ignored, and local/not committed files.
  • In-place creation: '+ New' button on each layer pre-seeds a template for missing candidates, writes to disk only on save.
  • Editor dirty guard: unsaved changes trigger a save/discard/keep-editing dialog; unsaved dot shown in title bar.
  • Skill directory status: four skill roots (project-level and user-level) with existence and skill counts; skill files can be viewed and edited in place.
  • Path safety: read/write addresses are validated against a whitelist of candidate names and directory sets, with prefix-check defense in depth.

Where the dsh-inspector DSH plugin fits

  • Review the exact instruction chain that will be injected into the model for the current session.
  • Quickly create missing AGENTS.md or CLAUDE.md files in the project or session directory.
  • Edit existing instruction files and have changes take effect on the next session step.
  • Manage skill directories: view which skills exist, their counts, and edit SKILL.md files.
  • Debug instruction-chain issues such as duplicate files, oversized files, or incorrect load order.

Who the dsh-inspector DSH plugin is for

  • DeepSeek Harness users who want full visibility into the instruction chain.
  • Developers building projects with DSH who need to manage instruction files efficiently.
  • Advanced users who need to inspect and edit skill roots and instruction files directly from the Web UI.

dsh-inspector DSH plugin limitations

  • The panel is a fixed floating right column, not a draggable pane; width is fixed at min(440px, 92vw).
  • The host trusts the session cwd sent by the browser; it is not checked against dsh's workspace list.
  • Byte-budget truncation (64 KB baseline) is not reflected in the panel; 'in effect' is inferred from existence and harness rules.
  • Subdirectory injection state beyond the cwd is not shown; only a footnote explains the on-demand behavior.
  • The editor is a plain textarea with no Markdown preview or syntax highlighting.
  • The panel does not watch the file system; external changes during editing are not synced live.

dsh-inspector DSH plugin: from the repository README

Quoted from the CocoSgt/dsh-inspector README, the upstream source of the dsh-inspector DSH plugin. Copyright remains with the original authors.

npm package: `dsh-inspector` · GitHub repository: [CocoSgt/dsh-inspector](https://github.com/CocoSgt/dsh-inspector) A third-party plugin for DeepSeek Harness (dsh): an "Instruction Files" panel on the right side of the Web UI that shows — and manages — the instruction chain actually in effect for the current session, in the harness's **real load order**: global `$DSH_HOME/AGENTS.md` → project root → … → the session's cwd, one directory level at a time — plus the status of the four skill roots. The information architecture mirrors the official `dsh-agent-instructions` discovery algorithm exactly: what you see is what the model gets. Open a session whose workspace sits in a project directory, then toggle the "Instruction Files" button in the session header; the panel follows the current session's workspace directory automatically. The UI ships in Chinese and English (follows the harness language preference). ## The instruction-chain model (matches the harness exactly) The layers, deduplication, and status flags shown by the panel align with the real behavior of `packages/context/agent-instructions`: 1. **Global layer**: `$DSH_HOME/AGENTS.md` (default `~/.dsh/AGENTS.md`). Only

Read the full READMEThe repository declares no license. Check with the authors before using it.

dsh-inspector DSH plugin questions

How do I install dsh-inspector?

Run the command `dsh plugin --profile web add dsh-inspector` in your terminal. If that fails, use the GitHub fallback: `dsh plugin --profile web add github:CocoSgt/dsh-inspector`. After installing, restart `dsh web` for the plugin to take effect.

What does the instruction chain panel show?

It shows every instruction file that will be loaded for the current session, in the exact order the harness uses: global AGENTS.md first, then files from the project root working down to the session's current working directory. Each layer is displayed as a card with status chips for duplicate files, oversized files, and local-only files.

Can I create new instruction files from the panel?

Yes. Each layer card has a "+ New" button that lets you create missing candidate files like AGENTS.md or CLAUDE.md. The editor is pre-seeded with a template in the current UI language, and the file is written to disk only when you save.

How do I edit skill files using this plugin?

Open the panel and scroll to the skill directory status section. It lists the four skill roots (project-level .dsh/skills and .agents/skills, user-level ~/.dsh/skills and ~/.agents/skills). Click on a skill file (SKILL.md or flat .md) to view or edit it in the built-in textarea editor. Changes are saved to disk and will be reflected on the next session step.

Does the panel support multiple languages?

Yes, the panel supports both English and Chinese. It follows the harness language preference, and the UI automatically switches when you change the language in the harness settings. Dictionary entries are registered into the harness locale service.