token-savings
Skill0 starsChanged 3 months agoMITView on GitHub
Use when the user wants to regenerate and open the Token Savings dashboard — the local dark dashboard showing how many tokens and dollars claude-mem and Graphify save in their repos. Refreshes data, opens index.html, and reports the headline saved-$ and reduction factor.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- remembervictorchatbot-vip/AI_Token_Savingtheir own version, first seen Aug 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- remembervictorchatbot-vip/AI_Token_Saving★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Safety: read-only except for writing files under data/ (savings.js, savings.json, history JSON).
- Very specific: line 29
If $TOKEN_SAVINGS_DIR is set, use it.
- Very specific: line 31
If you can't find it, ask the user where they cloned the repo.
- Very specific: line 34
Refresh the data: Run the collector from the dashboard directory so its relative paths and config.json resolve correctly:
- Distinctive: line 61
All figures are framed against a "load everything, every time" baseline you'd never actually run — directional, not an invoice.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Token Savings
Refresh and open the Token Savings dashboard: a self-contained dark page that shows how many tokens and dollars two Claude Code context tools save —
- claude-mem: a memory system. Each observation stores the tokens it cost to originally produce that knowledge; summed = "work captured". Recalling it later is nearly free, so saved = work − recall.
- Graphify: a knowledge graph over a repo. Answering a structural question via the graph costs a fraction of reading the whole corpus (e.g. ~79.7× reduction).
The dashboard auto-detects both tools. If one isn't installed or has no data, that panel shows a friendly "not detected" state and the other still renders. No demo or fake data is ever shown.
Safety: read-only except for writing files under data/ (savings.js,
savings.json, history JSON). It shells out to the sqlite3 and graphify CLIs
already on the machine — no npm install, no network, no fetch. Node 18+ required.
Steps
- Locate the dashboard directory (the cloned
claude-token-savings-dashboardrepo, which containscollect-savings.mjsandindex.html). Resolve in order:- If
$TOKEN_SAVINGS_DIRis set, use it. - Else use the path the user gives you, or a known clone location.
- If you can't find it, ask the user where they cloned the repo.
Confirm the directory contains
collect-savings.mjsbefore proceeding.
- If
Refresh the data. Run the collector from the dashboard directory so its relative paths and
config.jsonresolve correctly:node "$TOKEN_SAVINGS_DIR/collect-savings.mjs"This rewrites
data/savings.js(which setswindow.SAVINGS) anddata/savings.json. It is fail-safe — on any error it still writes a partial file and exits 0, so it never blocks.- Open the dashboard. It opens straight from disk (
file://), no server:- macOS:
open "$TOKEN_SAVINGS_DIR/index.html" - Linux:
xdg-open "$TOKEN_SAVINGS_DIR/index.html" - (Windows:
start "" "%TOKEN_SAVINGS_DIR%\index.html")
- macOS:
- Summarize the headline numbers by reading
data/savings.jsonand reporting back to the user, in one or two lines:- Combined:
combined.savedDollars(saved $) andcombined.savedTokens. - claude-mem:
cloudMem.observations,cloudMem.workTokens(work captured),cloudMem.savedDollars,cloudMem.efficiencyPct— or itsnotDetectedreason if the panel is empty. - Graphify:
graphify.reductionFactor(e.g.79.7x/query) andgraphify.savedDollarsPerQuery— or itsnotDetectedreason if empty.
- Combined:
Honesty notes (keep these in the summary if relevant)
- All figures are framed against a "load everything, every time" baseline you'd never actually run — directional, not an invoice.
- claude-mem efficiency is capped at 99.9% (never a fake 100%).
- Any Graphify monthly projection is illustrative — Graphify has no per-query
log, so usage volume is assumed (
graphifyAssumedQueriesPerDay).
Optional: auto-refresh on every session
To regenerate the data automatically each time Claude Code opens in the repo, add
a SessionStart hook to .claude/settings.json (replace the path):
"hooks": {
"SessionStart": [
{ "hooks": [ { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/PATH/TO/collect-savings.mjs\" >/dev/null 2>&1 || true" } ] }
]
}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

