Claude Code Startup Context Size Measurement
Measure what a fresh Claude Code session loads before your first message, split by component, and prove that a settings or skills change actually shrank it. Python script included; nothing leaves your machine.
$6
What it does
- Measures what a fresh Claude Code session loads before your first message
- Splits it by component: tools, skills, instructions, hooks
- Proves a settings or skills change really shrank it; runs locally, nothing leaves your machine
Claude Code Startup Context Size Measurement
Example session with this skill installed
Measure how big my Claude Code startup context is and tell me what is largest. I already ran a probe session with the marker phrase "probe 2026-03-18".
- Read your context and instructions
- Compiled the claude code startup
Example on a fictional setup; the numbers below are invented to show the output shape.
Ran: python3 scripts/context_meter.py --find "probe 2026-03-18"
First request total: 31,400 tokens (input 120 + cache creation 31,280 + cache read 0).
Per component (characters -> proportional tokens):
- system prompt: 21,000 chars -> 5,300
- tool definitions (46 tools): 52,000 chars -> 13,200
- skills listing (38 entries): 26,000 chars -> 6,600
- CLAUDE.md files (2): 14,500 chars -> 3,700
- hook output and other: 10,000 chars -> 2,600
Largest tools: one browser automation tool 2,100 tokens, a notebook tool 1,400, a task-management tool 1,200.
Skill listing: 38 entries, longest description 1,480 chars, 11 entries over 600 chars.
Reading: the skills listing and the tools are the biggest parts you control. The system prompt is fixed by the client. A reasonable first step is to cap the listing's per-entry length and deny one or two unused tools, then run a second probe with a new marker and compare. Remember to confirm the deny in the second probe's tool list, since a client app may inject its own tools regardless of your config. Plan the second probe now: marker "probe 2026-03-19 after".
Connects securely to your tools. The creator never sees your data.
About this skill
Every Claude Code session pays for its startup context before you type anything: the system prompt, tool definitions, the skills listing, CLAUDE.md files and hook output. Guessing what is big, and whether a change helped, wastes effort. This skill measures it from a real transcript.
What is inside:
- SKILL.md - the measurement loop. Start a probe session in the client you actually use, send a fixed one-word prompt with a unique marker phrase, then run the script on its transcript. Change one thing, probe again, compare. It stresses planning both probes up front so the "after" run is not forgotten, and keeping a baseline history in a notes file.
- scripts/context_meter.py - standard-library Python (about 6 KB) that finds the probe transcript by marker, reads the first API request, and prints the exact total (input plus cache creation plus cache read), characters and proportional tokens per component, the largest tools, and skill-listing statistics. With
--compareit shows tools added or removed and skill entries that grew or shrank. It reads local files only and makes no network calls. - A what really moves the number section from testing: why denying a tool may not remove a client app's own tools, how the skills listing budget refills freed space, what the description cap does, which overrides work for which skills, and that a prompt-injecting hook costs tokens on every message.
It suits anyone with a growing set of skills, hooks and rules who wants evidence before trimming. This skill is also part of the Claude Code Session Discipline: Brief, Notes, Context pack at a lower per-skill price.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Claude Code
Python 3 (standard library only)
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.