tlq5l

Afk Timer — Development skill for Claude Code

Development community

Claude Code mod: shows how long you've been AFK and warns when the prompt cache has likely expired, so you can /clear instead of paying to re-read a big session.

How to install Afk Timer

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

What Afk Timer does

Claude Code mod: shows how long you've been AFK and warns when the prompt cache has likely expired, so you can /clear instead of paying to re-read a big session.

Alternatives in Development

  • Projectmem — Open-source coding agent memory 766 ★
  • Product Engineering — Agent skills for shipping real products with coding agents, from the first idea to paying users 279 ★
  • Clear Cache — Clear validation cache for a plugin or entire system (project) 209 ★

README

afk-timer

A small Claude Code mod that tells you, above the prompt, how long you have been away and whether the session's prompt cache has likely expired. When it has, starting fresh with `/clear` is usually cheaper than carrying on in the same session.

AFK for 23 min · cache expires in 37 min
Cache likely expired (last reply 1 h 0 min ago): your next message re-reads ~182k tokens at full price. Same task? Carry on. New task? /clear first, it costs under half as much.

When this warning shows, your next message may make Claude Code read your whole conversation again at full price, which uses up more of your plan. If you are starting something new, type `/clear` first. If you are continuing the same task, just carry on.

Install

In Claude Code running in a terminal, type:

/plugin install afk-timer --marketplace tlq5l/afk-timer

Press `y` to add the marketplace, then Enter to install for your user. If it asks about the one setting, or says an option isn't set, leave it: it uses `auto`. It starts working right away. The desktop app's Code tab doesn't accept that command, but once you install it from a terminal the line shows there too.

It needs a Claude Code version with function-hook mods (early access; built and tested on 2.1.296).

What it shows

  • AFK for 23 min · cache expires in 37 min: you haven't typed, sent or clicked anything for 5 minutes. The two numbers count from different moments: AFK from your last action, the cache from Claude's last reply.
  • You were AFK for 23 min (dim): shown for 10 seconds when you come back.
  • Cache likely expired …: shown once the cache has likely lapsed (dim and calm when the conversation is small), including right after you resume an old session. It stays while you type and goes away when you send your next message, /clear or /compact.
    • It means Claude has likely lost its quick-reuse copy of your conversation, so your next message may cost more than usual. The warni