You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:Auto-timestamp on user messages for AI time context #47251
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When users interact with AI across multiple sessions or long conversations, the AI has no reliable way to know the current time. This leads to:
AI confusing "yesterday" vs "today"
Inaccurate time-related suggestions
Poor temporal context in multi-session workflows
Describe the solution you'd like
Automatically append a timestamp (e.g., [2026-09-04 16:05]) to each user message in the conversation context, so the AI can accurately perceive time without manual reminders.
Additional context
This is especially useful for long-running projects where time awareness affects decision quality (e.g., financial data analysis, scheduling tasks, version control workflows).
Thanks for the suggestion! You're asking for each user message to carry a timestamp (date and time of day) so the model always knows the current time in long or multi-session work.
For context: OpenCode v2 already tells the model today's date and sends an update when the date changes during a session. It doesn't include the time of day or a timestamp on each message. Maintainers will consider this; I can't promise anything.
In the meantime, a small v2 plugin can do this today. It adds the local time to the start of every prompt you send. It type-checks against the plugin API, but I haven't tested it in a running OpenCode. Save it as ~/.config/opencode/plugins/timestamp.ts to use it everywhere, or as .opencode/plugins/timestamp.ts for a single project:
The timestamp becomes part of the saved message, so you'll also see it in the conversation (e.g. [2026-09-04 16:05 +02:00] your message). Restart the background service with opencode service restart so it picks up the plugin.
Activity
github-actions commentedon Sep 4, 2026
This issue might be a duplicate of an existing issue. Please check:
opencodejr commentedon Oct 28, 2026
Thanks for the suggestion! You're asking for each user message to carry a timestamp (date and time of day) so the model always knows the current time in long or multi-session work.
For context: OpenCode v2 already tells the model today's date and sends an update when the date changes during a session. It doesn't include the time of day or a timestamp on each message. Maintainers will consider this; I can't promise anything.
Related issues:
In the meantime, a small v2 plugin can do this today. It adds the local time to the start of every prompt you send. It type-checks against the plugin API, but I haven't tested it in a running OpenCode. Save it as
~/.config/opencode/plugins/timestamp.tsto use it everywhere, or as.opencode/plugins/timestamp.tsfor a single project:The timestamp becomes part of the saved message, so you'll also see it in the conversation (e.g.
[2026-09-04 16:05 +02:00] your message). Restart the background service withopencode service restartso it picks up the plugin.