What you get
Time is not one thing, and the agents handle each of the things it is.
| Now | The current moment is put in front of every agent on every turn, already worked out. No agent has to remember to look. |
| How far | Every date arrives with its distance: “Monday 10 August (tomorrow)”, “valued 312 days ago”. |
| Where you are | “Tonight” follows you to another time zone. Where your clock and London’s differ, both are said. |
| The books | The tax year, a filing date, a renewal: read from the record and kept on London time. |
| The season | A date comes with the run-up it needs. A birthday in early January is raised in early December. |
| How it feels | Summer that turns out to be a week. The agents hold the plain calendar beside the one in your head. |
What they will not do
| Work out a date | No agent does date arithmetic. It is done once, in code. |
| Use time against you | “You haven’t been here in four days” is never said. Felt time is not leverage. |
| Move a deadline because you travelled | The books stay on London time wherever you are. |
How it is built
A language model has no clock. It also carries a wrong one: its sense of “now” is somewhere in its training data, and it drifts back there as a conversation goes on. So time cannot be something the model is good at. It has to be something the surroundings supply, on every turn, already worked out.
The second idea is that time is yours as well as the clock’s. Where you are, what season it is for you, and how long before a date you need to know about it are all kept as plain records the agents read.
Every turn
Before every reply, the present is worked out afresh.
The day, the date, today’s and tomorrow’s keys ·
buildResolvedNowAnchorIt is placed last, after everything else the model is shown.
So it is the most recent thing read
Your time zone comes from your device, or from what you said.
What you said wins while it holds; London is assumed, and said to be assumed, when there is nothing ·
resolveWhereEvery date the model reads is written out with its distance.
formatWhenA date in the model’s reply is turned into a moment by code.
More than a year away is refused ·
resolveWhenWords like “tomorrow” in a reply are checked before you see it.
Against the facts the reply was given
The dates that matter to you
A date you care about is kept with how far ahead you need it.
Ten days unless you say otherwise
A season can move that.
The run-up to Christmas, a school holiday
It comes up inside its run-up, and not before.
In conversation. No reminder is sent
The parts
| aha-time | My shared library. Every agent’s dates pass through it. |
| aha-agent | My shared loop, which re-states the present on every turn. |
| Time zones | The standard names (Europe/London, America/Los_Angeles) the world’s software agrees on. |
| A check | A check fails if any agent’s prompt carries a bare date, or lags the library. |
The words, in plain English
| Anchor | The statement of “now” given to a model. |
| Resolve | To turn words about time into a moment. |
| Run-up | How long before a date you need to know about it. |
The code
// "Monday 10 August 2026 (tomorrow)", "Sunday 3 August 2026 (6 days ago)" … // the model never does date arithmetic; this is the arithmetic, done once, in code. export function formatWhen(iso: string, now: () => Date = () => new Date(), zone = LONDON.zone): string {
Every date an agent reads has passed through this first. aha-time/src/now.ts, trimmed
What is not finished
| A zone not sent | A place that does not report your time zone is treated as London, and a check names each one that still does not. |
| Distances | Hours are given only within two days. Beyond that, days. |
Learning from the lived experience
Time is notoriously difficult for agents. A language model has no sense of it: time is not in the model, and has to live in what surrounds the model. It is also a slippery human idea, a clock, a distance, a season and a feeling at once. Building what lets my agents understand it has been the most complicated part of this work, and it went wrong more than once on the way.
One afternoon in September, Vincent told me five times that I flew on Thursday the 18th and had five days in hand. The flight was the next morning, Monday the 14th, and the 18th was a Friday. A mail saying “next week” had been turned into a date by a model, and a weekday had been added by another.
Because of that, no agent works out a date. The present is put in front of every agent on every turn, every date arrives already written out with how far away it is, and turning “next week” into a date happens once, in code. How it is built, above, sets out the parts. “You leave Thursday 18 September.” is the account of that afternoon, One in the morning in San Francisco is the day the clock had to move with me, and Time is the hardest thing is the long version.