CNyaotian-Lunar/dsh-time-inject ↗★ 0
dsh-time-inject
中文时间注入(time inject):每个 turn 的第一个 step 往模型上下文追加一条单行中文时间读数,让 agent 永远知道现在几点。 适合需要让Agent感知当前真实时间,以处理与时间相关的任务的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CNyaotian-Lunar/dsh-time-inject配置项 / Configuration
| 字段 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled | boolean | true | 总开关 |
timeZone | string | 'Asia/Shanghai' | 显示时区(IANA 名)。填非法名不会炸,会降级回默认时区 |
includeSubagents | boolean | true | 子代理的轮次是否也注入 |
English:
| Field | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | master switch |
timeZone | string | 'Asia/Shanghai' | display time zone (IANA name). An invalid name will not crash it, it degrades to the default zone |
includeSubagents | boolean | true | whether subagent turns are injected as well |
改配置 = 改 profile patch 里那一行的 config(整字段替换,不是深合并),或由 cordis 重载插件触发重新 apply。
例:
English: Changing the configuration means editing config on that one line in the profile patch (whole-field replacement, not a deep merge), or letting cordis reload the plugin to trigger a fresh apply.
Example:
- id: time-inject
config:
timeZone: 'Asia/Shanghai'
includeSubagents: false