Injecting Current Time and Last Message Timestamps into DSH Models

dsh-time-context is a DSH model-inference plugin maintained by JessenReinhart. During each prompt assembly, it automatically injects a runtime-context via the systemPrompt registry, including the current local time (date, time of day, weekday, timezone, period) as well as the timestamp, day relation, and recency gap of the previous user message, and supports ledger persistence across sessions and after restarts. Compared with a Skill-based approach, the facts are delivered directly to the model with each request, making it easier to resolve relative-time expressions like "last night" or "just now". On the installation side, it has been integrated into DSH Desktop's dsh.profile.bundles; a Desktop restart is required after configuration changes. Use /time to view the currently injected block. Please review the source code and the MIT license before use, and note that the plugin runs with the DSH process privileges.

Read More