Skip to main content

How to use dsh-global-rules

Edits the global AGENTS.md rules file from the web settings panel.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Edits the global AGENTS.md rules file from the web settings panel.

— source: plugins.ai_summary

Install & verify

dsh plugin --profile web add dsh-global-rules

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 设置页新增「全局规则」标签:打开即加载 ~/.dsh/AGENTS.md 当前内容
  • 编辑保存,实时生效:新会话立即生效;当前会话在下次文件操作后感知新规则(由 DSH 内置的 dsh-agent-instructions 动态检测机制完成)
  • 文件不存在时保存会自动创建
  • 零构建:Client 端为手写 __ModuleLoader__ bundle,Host 端为纯 Node ESM
  • 新会话:首次步骤直接读取新内容,立即生效

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule