Claude Code plugin

Claude Inject Idle Time

Claude Code plugin that injects hidden timing context into every user prompt. 42 tokens, local time with UTC offset, idle seconds since last reply, previous turn duration.

5 stars 1 forksPlugins & marketplaces Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add clankercode/claude-inject-idle-time

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/clankercode/claude-inject-idle-time.git

From the README

Claude Code Idle Timing Plugin

Claude Code plugin that injects hidden timing context alongside each user message.

The plugin adds up to three fields inside a compact [timing] block:

- local_time — local time with explicit UTC offset (only on the first prompt of a session)
- idle_for — seconds idle since the assistant's last stop
- last_turn_dur — seconds the previous assistant turn took to run

Each prompt gets a hidden block Claude reads but you never see in your transcript:

What It Does

The plugin uses official Claude Code hooks:

- UserPromptSubmit injects hidden timing context on every prompt
- UserPromptSubmit also shows a compact TUI note like [after 5m 2s] when the user replies after more than 10 seconds of idle time
- Stop persists per-session timing state for the next turn
- PreCompact resets the idle timer when context compaction runs, so the statusline counts from the compaction event rather than the last pre-compact reply

On a fresh session, unavailable prior-turn fields are omitted.

Install via Marketplace

Statusline integration (optional)

This plugin ships a composable fragment that prints the elapsed time since
the model's last reply. Two implementations are provided:

- scripts/statusline-fragment.sh — POSIX-sh, no node cold-start. Recommended.
  Reads a small per-session file (.lastresponse) that the hooks keep
  updated, so it costs , --drop-seconds-after  (default 900, i.e. 15 minutes).
- .js: --session-id , --model-id , --drop-seconds-after  (default 900).

Statusline state table

The fragment produces the following outputs:

Observability

The plugin keeps all of its runtime state under the directory pointed to by the CLAUDE_PLUGIN_DATA environment variable (Claude Code sets this per session). Two subdirectories are created there:

-…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add clankercode/claude-inject-idle-time, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
JavaScript
Last updated
11 June 2026
Topics
claude-codedevtoolshooksjavascriptnodejsplugintemporal-awarenesstiming

FAQ

What is Claude Inject Idle Time?

Claude Code plugin that injects hidden timing context into every user prompt. 42 tokens, local time with UTC offset, idle seconds since last reply, previous turn duration. It is a plugin for Claude Code, from clankercode/claude-inject-idle-time on GitHub.

How do I install Claude Inject Idle Time?

Run /plugin marketplace add clankercode/claude-inject-idle-time inside Claude Code, then follow the setup in the README.

Is Claude Inject Idle Time popular?

clankercode/claude-inject-idle-time has 5 GitHub stars and 1 forks, and is included in 1 curated Claude Code list. It was last updated on 11 June 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.