Skip to main content

Command menu

Jump to a page or search the catalog

AI Tools & Scripts

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

What you get: 1 file · 4.56 KB · ZIP

See purchase options

Product description

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 --compare it 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.

Example request

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

Example result

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

Requirements

  • Claude Code
  • Python 3 (standard library only)

How to install

Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.

What you get

1 file · 4.56 KB

  • startup-context-meter.zipZIP · 4.56 KB
LicenseCommercial use allowed
PublishedDec 3, 2026
File size4.56 KB
File formatZIP
Versionv1.0

Tags

claude codeclaude skillai agentmacosllm ops
C
Claude Workflow Lab

Frequently asked questions

Do I get access instantly?

Yes. This is a digital product - you can download it right after checkout, straight from your library.

Can I use it for commercial projects?

Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.

What's your refund policy?

You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.

What file formats and sizes will I get?

You'll download 1 file - ZIP - 4.56 KB in total.

Do I get free updates?

Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.

Price

$6.00