elonnzhang/dsh-system-prompt0

dsh-system-prompt

DeepSeek Harness plugin for inspecting live session system prompts and injected context

AI 分析

核心用途是可视化展示当前会话生效的 Prompt 结构、变量、工具和上下文。适合需要调试 Prompt 注入逻辑、分析 Agent 行为的开发者。

パッケージ
dsh-system-prompt
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:elonnzhang/dsh-system-prompt

ドキュメント

README 全文を読む ↗

dsh-system-prompt

dsh-system-prompt is a read-only DeepSeek Harness plugin for inspecting the effective prompt of a live session.

Its only product behavior is session-scoped prompt inspection.

It owns two browser surfaces:

  • conversation.view (order: 30): a session inspection tab showing prompt sections, runtime contexts, variables, tools, and producer-supplied messages.
  • A Section detail tab beside ui-trajectory's system-prompt tabs. It is a bounded DOM bridge because the upstream trajectory package does not expose a detail-tab slot.

The host exposes only session on /dsh-system-prompt. The endpoint accepts { sessionId }, reads the matching live agent, and returns a small JSON projection. It never serializes a live Context, Agent, Session, service, or Cordis object.

Build

This package follows dsh-plugin-template's self-contained package shape:

npm run typecheck
npm run build

The host and declarations are emitted by tsdown. The browser half is then written as the Harness window.__ModuleLoader__ closure bundle.

Install the package into a profile with:

dsh plugin --profile web add github:elonnzhang/dsh-system-prompt

The repository commits its lib/ bundle, so this GitHub install does not need to execute a package build script or modify the profile allowBuilds list. For local source development, run npm run build explicitly before testing.

Provenance boundary

Prompt, context, variable, and tool ownership is reported at global / preset / agent scope. The underlying registries do not retain the registering Fiber, so this plugin does not claim a more precise plugin-level owner.