CNyaotian-Lunar/dsh-time-inject ↗★ 0

dsh-time-inject

中文时间注入(time inject):每个 turn 的第一个 step 往模型上下文追加一条单行中文时间读数,让 agent 永远知道现在几点。 适合需要让Agent感知当前真实时间,以处理与时间相关的任务的用户。

Package
dsh-time-inject
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Sep 25, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CNyaotian-Lunar/dsh-time-inject

配置项 / Configuration

字段类型默认说明
enabledbooleantrue总开关
timeZonestring'Asia/Shanghai'显示时区(IANA 名)。填非法名不会炸,会降级回默认时区
includeSubagentsbooleantrue子代理的轮次是否也注入

English:

FieldTypeDefaultDescription
enabledbooleantruemaster switch
timeZonestring'Asia/Shanghai'display time zone (IANA name). An invalid name will not crash it, it degrades to the default zone
includeSubagentsbooleantruewhether 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