Skip to content

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.

Terminal window
uvx gglint slim claude # or: uvx gglint slim codex
$ uvx gglint slim claude
Claude Code sends 42.2K tokens before your prompt, 21% of its context window.
■Your skills4.3K30 of 42 unused
■Your rules files798
■Claude Code37.1Kbuilt in
30 skills weren’t used in 30 days, mostly no plugin (12), anthropic-skills (10), superpowers (8).
lists them.
turns them off and saves about 2.7K tokens per request.
Hover over or tap any part of the output to see what it is.

It 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.

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.

Terminal window
uvx gglint slim claude --unused # list them, with what each one costs per request
uvx gglint slim claude --fix # turn them off

--fix measures again with the unused skills off and shows the result before it changes anything:

$ uvx gglint slim claude --fix
With 30 unused skills off: 42.2K → 39.0K tokens (-8%).
■Your skills1.6K
■Your rules files798
■Claude Code36.6Kbuilt in
░Saved3.2K
Turn them off? Nothing is deleted. You can still run each as /name. [y/N]
Hover over or tap any part of the output to see what it is.

Nothing is deleted or uninstalled. Each skill is turned off in the agent’s own user settings:

  • Claude Code: ~/.claude/settings.json gets a skillOverrides entry set to user-invocable-only for 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.toml gets a [[skills.config]] entry with enabled = false for each skill’s SKILL.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.

Terminal window
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/.

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