jcesarperez

Claude Desktop Cache And Cost — Development skill for Claude Code

Development community

Unofficial Claude Desktop mod: prompt-cache countdown and session cost in the status line.

How to install Claude Desktop Cache And Cost

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

What Claude Desktop Cache And Cost does

Unofficial Claude Desktop mod: prompt-cache countdown and session cost in the status line.

Alternatives in Development

  • 10 Statusline Setup Agent — Status Line Setup Agent System Prompt 2.3k ★
  • Claude Dashboard — Comprehensive status line plugin for Claude Code with context usage, API rate limits, and cost tracking 258 ★
  • SafeClaw — to make running containerized Claude Code sessions easy 131 ★

README

claude-desktop-cache-and-cost

A status line for the Code tab of Claude Desktop: how long your prompt cache stays warm, and what the session has cost so far.

![Cache countdown: 56 minutes left, $0.55 spent](screenshots/countdown.png)

![Cache expired, $2.26 spent](screenshots/expired.png)

Why

While the cache is warm, your next prompt reuses the conversation cheaply. Once it expires, the next prompt pays to send the whole conversation again. The countdown tells you how long you have; the cost tells you what the session has spent.

Install

In Claude Desktop: click **+** next to the prompt box, then **Plugins**, **Add marketplace** with `jcesarperez/claude-desktop-cache-and-cost`, then **Add plugin**.

Or from a shell:

claude plugin install Cache --marketplace jcesarperez/claude-desktop-cache-and-cost

The line shows in the Desktop Code tab only.

Update

New releases don't install on their own: Claude Code auto-updates only Anthropic's own marketplaces by default. To update now, then start a new session:

claude plugin marketplace update jcesarperez && claude plugin update Cache@jcesarperez

To get releases automatically, run `/plugin` in a `claude` terminal, open **Marketplaces**, pick `jcesarperez` and enable auto-update. Updates install when a session starts.

How long the cache lasts

The countdown runs from the start of the last request that used the cache, as the API counts it. It reads whether that cache lasts 1 hour or 5 minutes from the session's transcript after each turn, and assumes 1 hour until it has seen one.

What the cost counts

The same total as `/cost`: every request of the session, its subagents and workflow agents included. A session you start from another one keeps its own total.

FAQ

Does it work in Chat?

No. Chat caches your prompts too, but it shows neither the cache nor a cost per request, and it doesn't run plugins, so there is nothing for this line to read. The terminal and VS Code have their