Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
Update dashboard.html
Garm0451585b360e
diff --git a/headroom/dashboard/templates/dashboard.html b/headroom/dashboard/templates/dashboard.htmlindex 203cb4c4f..06dccc98a 100644--- a/headroom/dashboard/templates/dashboard.html+++ b/headroom/dashboard/templates/dashboard.html@@ -534,14 +534,6 @@</div></div><div class="flex flex-col gap-3 sm:flex-row sm:items-center">- <div class="inline-flex rounded-lg border border-border bg-surface p-1">- <template x-for="[label, key] in historyGranularityOptions" :key="key">- <button class="px-3 py-1.5 text-sm rounded-md transition-colors"- :class="historyGranularity === key ? 'bg-accent text-black' : 'text-gray-400 hover:text-gray-200'"- @click="historyGranularity = key"- x-text="label"></button>- </template>- </div><div class="flex items-center gap-2"><button class="px-3 py-1.5 text-sm rounded-md border border-border bg-surface text-gray-300 hover:text-white transition-colors"@click="downloadHistory('json')">@@ -555,7 +547,7 @@</div></div>- <div class="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4 mb-6">+ <div class="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4 mb-6"><div class="bg-surface rounded-lg p-4 border border-border"><div class="text-xs text-gray-500 uppercase tracking-wide mb-1">Lifetime Compression Savings</div><div class="flex items-baseline gap-2">@@ -586,24 +578,6 @@<div class="mt-2 text-xs text-gray-500" x-text="historyWindowLabel"></div></div>- <div class="bg-surface rounded-lg p-4 border border-border">- <div class="text-xs text-gray-500 uppercase tracking-wide mb-1">Active Weeks</div>- <div class="flex items-baseline gap-2">- <span class="text-3xl font-light tabular-nums"- x-text="formatNumber((historyStats.series?.weekly || []).length)"></span>- </div>- <div class="mt-2 text-xs text-gray-500">Weekly UTC rollups</div>- </div>-- <div class="bg-surface rounded-lg p-4 border border-border">- <div class="text-xs text-gray-500 uppercase tracking-wide mb-1">Active Months</div>- <div class="flex items-baseline gap-2">- <span class="text-3xl font-light tabular-nums"- x-text="formatNumber((historyStats.series?.monthly || []).length)"></span>- </div>- <div class="mt-2 text-xs text-gray-500">Monthly UTC rollups</div>- </div>-<div class="bg-surface rounded-lg p-4 border border-border"><div class="text-xs text-gray-500 uppercase tracking-wide mb-1">Average Saved / Day</div><div class="flex items-baseline gap-2">@@ -627,9 +601,19 @@<div><div class="grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6"><div class="bg-surface rounded-lg p-4 border border-border lg:col-span-2">- <div class="flex justify-between items-center mb-4">- <span class="text-sm font-medium text-gray-300">Historical Savings Trend</span>- <span class="text-xs text-gray-500 font-mono" x-text="historyTrendLabel"></span>+ <div class="flex flex-col gap-3 mb-4 lg:flex-row lg:items-center lg:justify-between">+ <div class="flex items-center gap-3">+ <span class="text-sm font-medium text-gray-300">Historical Savings Trend</span>+ <span class="text-xs text-gray-500 font-mono" x-text="historyTrendLabel"></span>+ </div>+ <div class="inline-flex rounded-lg border border-border bg-[#141414] p-1 self-start lg:self-auto">+ <template x-for="[label, key] in historyGranularityOptions" :key="key">+ <button class="px-3 py-1.5 text-sm rounded-md transition-colors"+ :class="historyGranularity === key ? 'bg-accent text-black' : 'text-gray-400 hover:text-gray-200'"+ @click="historyGranularity = key"+ x-text="label"></button>+ </template>+ </div></div><div class="text-xs text-gray-500 mb-4"x-text="'Showing ' + formatNumber(historySelectedPointCount) + ' ' + historySelectedSeriesLabel.toLowerCase() + ' points'"></div>