waitdeadai

Time Anchor — Productivity skill for Claude Code

Productivity community

Claude Code hook that injects local system clock into every session/prompt.

How to install Time Anchor

This entry records only its repository, not the path inside it, so there is no exact command to give. Open waitdeadai/time-anchor and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Time Anchor does

Claude Code hook that injects local system clock into every session/prompt. Stops 'as of training cutoff' answers. python3-only dep, drop-in.

Alternatives in Productivity

README

time-anchor

[![tests](https://github.com/waitdeadai/time-anchor/actions/workflows/test.yml/badge.svg)](https://github.com/waitdeadai/time-anchor/actions/workflows/test.yml) [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) [![Claude Code](https://img.shields.io/badge/Claude%20Code-hook-orange)](https://code.claude.com/docs/en/hooks)

A Claude Code hook that injects the local system clock into every session and prompt, so the model stops giving "as of my training cutoff" answers and stops getting the year wrong.

`time-anchor` is one bash file (~127 lines, depends only on `python3`) wired into Claude Code's `SessionStart` and `UserPromptSubmit` events. On every session start and every user prompt, it injects an `additionalContext` block containing the local time, UTC time, timezone, date, hour, weekday, and a short set of temporal-reasoning rules.

The result: when you ask "what's the latest version of X?" or "is this product still available?" or anything time-sensitive, the model has the actual current date in its context, knows training-cutoff answers are not the right answer, and is steered toward live source verification.

What it injects

temporal anchor from the local system clock.

local_time: 2026-05-11T02:29:08-03:00
utc_time: 2026-05-11T05:29:08+00:00
timezone: -03 (-0300)
local_date: 2026-05-11
local_hour: 02:29:08
weekday: Monday
source: local system clock via time-anchor.sh

Temporal reasoning rules:
1. Treat local_time as the current present date and hour for this Claude Code prompt.
2. Resolve "today", "yesterday", "tomorrow", "this week", "current", "latest", "recent", and year-specific claims relative to this anchor.
3. For SOTA 2026, current model/provider behavior, pricing, laws, docs, benchmarks, APIs, schedules, or news, do live source verification before making factual claims.
4. Cite source publish/update dates and the access date when research is time-sensitive.
5. If live verification is u