logoalt Hacker News

simonwyesterday at 2:20 PM1 replyview on HN

Including the date in the system prompt - at the cost of a cache invalidation at midnight - is an entirely reasonable decision. Most other harnesses do the same thing.

Including the full datetime would be irresponsible, but that's not what OpenCode does.


Replies

wren6991yesterday at 3:08 PM

It felt unreasonable when I was using it at midnight and had to wait 10 minutes to refill the KV cache on my local GPU :-)

A simple solution here would be to evaluate the date once per session, or once each time the `opencode` binary is launched (to avoid old, long-running sessions getting stuck in the past).

show 1 reply