Claude Code Time Awareness — Productivity skill for Claude Code
Time awareness hook for autonomous Claude Code agents — inject current time into agent context via PostToolUse, so long-running autonomous sessions know what time it is.
How to install Claude Code Time Awareness
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open evnchn-agentic/claude-code-time-awareness and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Time Awareness does
Time awareness hook for autonomous Claude Code agents — inject current time into agent context via PostToolUse, so long-running autonomous sessions know what time it is.
Alternatives in Productivity
- Skill Context Detection — Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type 2.8k ★
- Claude Code Hooks Multi Agent Observability — Real-time monitoring for multi-agent Claude Code sessions via hook event tracking 1.3k ★
- Agenfk Pause — Pause work on the current task, saving full context for later resumption 64 ★
README
claude-code-time-awareness
**Time awareness for autonomous Claude Code agents.**
Claude Code agents don't know what time it is during autonomous work. The system prompt date is set once at session start and goes stale immediately. Existing solutions only fire on user messages — useless when the agent is working autonomously for hours.
This hook injects the current time into the agent's context after every Bash command and Playwright browser interaction, so long-running autonomous sessions can pace themselves, stop at deadlines, and log accurate timestamps.
The Problem
Claude Code has no clock. The [system prompt date is set once at session start and never updates](https://github.com/anthropics/claude-code/issues/24182). This isn't hypothetical — the [issue has been raised](https://github.com/anthropics/claude-code/issues/24182) and [written about](https://dev.to/tadmstr/claude-code-doesnt-know-youve-been-gone-heres-the-fix-17ko), but existing solutions only work for interactive sessions.
Anyone running agents autonomously hits this:
- "Work until 9pm" — the agent has no way to know when 9pm arrives. It either asks you (defeats autonomy), guesses wrong (stale time), or ignores time entirely.
- Shared machines — you need the agent to stop before you take the laptop out, but you're away from it.
- Overnight/multi-day jobs — timestamps in logs, commits, and journals are wrong or missing. The agent doesn't know if it's been 5 minutes or 5 hours since the last message.
- Cost control — agent runs indefinitely instead of stopping after a reasonable work period.
Prior Art & Why They Don't Work
| Approach | Mechanism | Interactive | Autonomous |
|---|---|---|---|
| Issue #24182 | Inject timestamp into user messages | Would work (unimplemented) | No — no user messages |
| DEV Community fix | `UserPrompt |
Related Skills
Secretscan
Real-time secret & credential detector for Claude Code — 47 patterns, PostToolUse hook, lossless recovery
Harness Checkpoint
Write a control-flow checkpoint of the current long task into the harness sessions/ so work continues or resum
Claude Code Remote
claude-code-remote is a real-time monitoring system for Claude Code sessions. A lightweight Go server runs on
Claude System Time
Claude Code plugin with a /time command plus a hook that injects the live date/time into context.
Cctmux
Launch Claude Code inside tmux with session management, real-time monitoring, and pane awareness
Claude CLI Session Monitor
Real-time monitoring dashboard for Claude Code CLI sessions — track token usage, session health, and context w
Related Agents
Bully Evaluator
Evaluates a single bully semantic-evaluation payload against a diff and returns a structured violation list. I
🖥️ Multi-Window Context
TL;DR: State persistence across Claude Code sessions. Checkpoint your progress, resume from interruptions. Ess
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize