@kelearns/dsh-token-usage: Add a token usage heatmap to the dsh web GUI
# Introduction When running agents with DSH, conversation logs are stored under `$DSH_HOME/sessions`, with token consumption scattered across individual sessions. To answer questions like "How many tokens were used daily this month?" or "Which model was used the most?", you must manually decompress zstd-compressed JSONL files and calculate line by line. While writing a script to do this isn't difficult, you have to re-run it every time you want to view the data. @kelearns/dsh-token-usage brings this functionality into the GUI: a GitHub-style contribution graph displaying daily, weekly, and cumulative token usage. DSH follows the philosophy that "everything is a plugin." This plugin is mounted via the official plugin mechanism and does not require modifying the DSH source code. Below, we introduce its features, installation method, and data interface.
Read More