Hacker News new | ask | show | jobs
by jayd16 330 days ago
I was looking for the calendar app that was built but I guess it's metaphorical.

"We made an API for time so now the AI has the current time in it's context" is the bulk of it, yes?

2 comments

One‑shot timestamps (the kind hard‑coded into Claude’s system prompt or passed once at chat‑start) go stale fast. In a project I did with GPT‑4 and Claude during a two‑week programming contest, our chat gaps ranged from 10 seconds to 3 days. As the deadline loomed I needed the model to shift from “perfect” suggestions to “good‑enough, ship it” advice, but it had no idea how much real time had passed.

With an MCP server the model can call now(), diff it against earlier turns, and notice: "you were away 3 h, shall I recap?" or "deadline is 18 h out, let’s prioritise". That continuous sense of elapsed time simply isn’t possible with a static timestamp stuffed into the initial prompt; you'd have to create a new chat to update the time, and every fresh query would require re‑injecting the entire conversation history. MCP gives the model a live clock instead of a snapshot.

The current time (and location of the user, looking at you google gemini) is injected in most LLM chats now isn't it?
At the start. But then human my perceive the rest of the conversation taking many minutes or hours, but the LLM never gets any signal that latter text is chronologically divided from earlier text. It needs a polling API like this.