liangmianya/dsh-synapse
liangmianya/dsh-synapseDeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
每轮真实时钟注入:在每轮第一步的 prompt 之后追加一条真实的日期、时间与时区读数,长会话跨天也不会按旧日期推理。
English | 中文
Inject the host's current date and time into agent context at the start of every turn.
A model has no clock. It infers "today" from whatever the harness put in its context, which is fine for a short session and wrong for a long one — a conversation left open across midnight keeps reasoning from yesterday's date, and nothing in the transcript contradicts it.
This plugin puts one real wall-clock reading at the top of every turn, so relative reasoning ("due tomorrow", "that was three hours ago") has something true to anchor to.
On the first step of each turn, the plugin appends one durable user-role
message after the claimed prompt:
<system-reminder>当前时间:2026-08-22 周六 01:55:30(UTC+0800,Asia/Shanghai)。这是本轮开始时的真实时刻,每轮自动刷新;请以最近的一条为准,不要根据对话历史推断当前日期或时间。</system-reminder>
Three deliberate choices:
agent/pre-step also fires for every
later step of a tool-call loop. Stamping those would bury the transcript in
near-identical readings that tell the model nothing new.A rejected or empty first step is left untouched — there is no request for the reading to accompany.
Weekday names are written into the plugin rather than read from a locale: DSH
runs on hosts without zh_CN installed, where toLocaleDateString would
silently fall back to English. The timezone label comes from
Intl.DateTimeFormat().resolvedOptions().timeZone; on a host without full ICU
data the reminder still carries the numeric UTC offset.
Install this plugin as its own DSH bundle:
dsh plugin --profile web add @moon16u/dsh-plugin-current-time
Restart dsh web once after installing. No manual
cordis.patch.yml edits needed — the package carries its own patch.
node --test test/*.test.mjs