artemiroshnichenko/dsh-plugins--packages-dsh-env0

dsh-env

环境事实插件:将日期、平台、系统版本和 DSH 版本注入系统提示词变量

AI 分析

自动获取当前运行环境的元数据,并以变量形式供系统提示词模板引用。适合需要让 Agent 感知当前时间、操作系统及运行环境的自动化任务。

套件
dsh-env
版本
0.1.0
授權
MIT
最近更新
2026年9月9日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

Add to your ~/.dsh/cordis.patch.yml:

- insert:
    - id: env
      name: dsh-env
      config:
        includeToday: true
        includePlatform: true
        includeOsVersion: true
        includeHarnessVersion: true
        customVariables:
          environment: production

Usage in System Prompt Templates

Variables registered by dsh-env can be referenced directly in your persona templates:

Today: {{today}}
Platform: {{platform}}
OS: {{os_version}}
Harness: {{harness_version}}