Versions:
skiagram is a profiler for the token consumption of AI coding agents, written in Rust and distributed as a single binary. It works as a command line tool and also offers a terminal user interface. The program analyses where the tokens of a coding agent actually went and why the context window filled up, and it does this across several agents: Claude Code, Codex, Gemini CLI and Copilot CLI. To produce reliable figures, skiagram deduplicates the token counts that the agents record on disk, attributes thinking tokens, and prices cache reads and cache creation separately instead of treating all tokens alike. The results can be explored through drill-down views, and a flamegraph export is available for a visual breakdown of consumption. The tool follows a local-first approach: the analysis runs entirely on the user's machine and no data leaves it. skiagram belongs to the category of developer tools for work with large language models. Typical use cases are finding out which parts of a coding session were expensive, understanding the cost effect of caching, comparing the usage patterns of different agents, and investigating why a context window was exhausted earlier than expected. It is aimed at developers who use terminal-based AI assistants regularly and want to keep track of usage and cost. The current release is version 0.1.2.
Tags: