Neplich/dsh_plugin--packages-feature-dsh-config-instructions ↗★ 1

@neplich/dsh-config-instructions

在设置中提供指令文档分区,查看与编辑个人及项目的 AGENTS.md。 适合需要集中管理 AGENTS.md 指令文件的用户;仅适用于 Web 配置,修改后运行中的会话会立即生效。

套件
@neplich/dsh-config-instructions
相容性
待驗證
Harness 依賴範圍
^0.1.2-alpha.3
Cordis 依賴範圍
^4.0.2
版本
0.1.0
授權
MIT
最近更新
2026年9月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Neplich/dsh_plugin#c83599509c2f790ba23c59b19d90e521fa774c1d&path:packages/feature/dsh-config-instructions

@neplich/dsh-config-instructions

中文版 · English

dsh Web GUI plugin: adds an "Instruction Documents" section to the settings panel for viewing and editing the AGENTS.md instruction documents at every level.

Features

  • "Personal / Project" toggle: personal level = ~/.dsh/AGENTS.md + ~/.dsh/AGENTS.local.md; project level = /AGENTS.md + /AGENTS.local.md
  • The project page carries a project-root dropdown (ordered by workspace)
  • Inline editing, save (atomic write), one-click creation when the file does not exist yet
  • CLAUDE.md / CLAUDE.local.md, when present, are shown read-only
  • Changes take effect immediately: running sessions receive an instruction-update notice, new sessions load them directly
  • Subdirectory-level AGENTS.md is not managed here — it loads progressively as the agent explores the directory hierarchy

Internationalization

All UI copy (section title, navigation items, editor hints, buttons) ships in zh and en through the config-instructions locale namespace and adapts live to the language set in dsh settings. Server-returned error messages stay in English (protocol-level neutral copy).

Install

dsh plugin --profile  add @neplich/dsh-config-instructions
dsh web --profile      # plugin-set changes require a restart

Available only in a dsh web profile (depends on ctx.webServer).

Config

FieldDefaultDescription
maxFileBytes524288Read/write size cap for a single instruction file
maxBodyBytes1048576JSON body cap for write requests

Security

All routes accept same-origin requests only; project-level writes verify the root comes from the workspace registry; only AGENTS.md / AGENTS.local.md are writable, with paths derived server-side.