What agents send
Every request a coding agent makes starts with the same block of context: its own prompt and
tools, then everything you’ve added, such as skills, MCP tools and rules files like
CLAUDE.md. It’s sent again with every message, and it takes room in the context window before
you’ve typed a word. Skills add up fastest, because every installed skill is listed with its
description whether you use it or not. gglint slim shows how big that block is, what’s in it,
and which of your skills you haven’t used lately.
uvx gglint slim claude # or: uvx gglint slim codexIt works with Claude Code and Codex, using their claude or codex command, or the copy that
comes with the Claude or ChatGPT desktop app. Run it in a repository to include that
repository’s rules files and MCP servers.
How it measures
Section titled “How it measures”gglint starts the agent once with the prompt ok and points the agent’s API address at a
listener on your machine. The listener keeps the request the agent would send to the model and
answers it with an error, so nothing reaches the model and measuring uses none of your
plan. Token counts are estimated as 4 characters per token.
The agent also asks its API a few read-only questions first, such as which models there are,
and decides what to send from the answers. gglint passes those GET requests on to the agent’s
real API (api.anthropic.com, api.openai.com or chatgpt.com) with the agent’s own
headers, so what it measures matches a real request. Claude Code is started with a
placeholder API key and --no-session-persistence, so it needs no sign-in and the run isn’t
saved in your history.
A skill counts as used when the agent called it in a session in the last 30 days (--days N
changes that). gglint reads the agent’s own session logs for this, in ~/.claude/projects/ or
~/.codex/sessions/, and only the lines where the agent called a tool, so a skill being
listed doesn’t count as a use. The logs never leave your machine. Claude Code’s desktop app
adds skills of its own, which a measured run doesn’t have, so for Claude Code gglint takes the
skills list from your latest session’s log.
Turning skills off
Section titled “Turning skills off”uvx gglint slim claude --unused # list them, with what each one costs per requestuvx gglint slim claude --fix # turn them off--fix measures again with the unused skills off and shows the result before it changes
anything:
Nothing is deleted or uninstalled. Each skill is turned off in the agent’s own user settings:
- Claude Code:
~/.claude/settings.jsongets askillOverridesentry set touser-invocable-onlyfor each skill. The model no longer sees the skill, but you can still run it yourself as/name. Your comments and formatting in the file are kept. - Codex:
~/.codex/config.tomlgets a[[skills.config]]entry withenabled = falsefor each skill’sSKILL.md. This also works for skills from a ChatGPT account’s plugins.
New sessions start without them; one that’s already open keeps the list it started with. Later
runs of gglint slim show how much less is sent than before the first --fix.
uvx gglint slim claude --restore--restore undoes every --fix: it removes the entries gglint added and puts back the ones it
changed, and leaves alone anything you’ve changed since. A copy of the file from before each fix
is kept in ~/.gglint/slim/.
Options
Section titled “Options”| Option | What it does |
|---|---|
--unused |
List the unused skills, with each one’s plugin and cost |
--fix |
Measure with the unused skills off, ask, then turn them off |
--yes |
With --fix, don’t ask. Needed when the input isn’t a terminal |
--restore |
Turn back on every skill --fix turned off |
--days N |
Count a skill as used if it was called in the last N days (default 30) |
--set VALUE |
Measure with a setting changed for this run only: Codex’s -c KEY=VALUE, or a JSON object for Claude Code’s --settings |
--save FILE |
Save the request it measured, as JSON |