Перейти к основному содержимому

Меню команд

Перейти на страницу или искать в каталоге

ИИ-инструменты и скрипты

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

Что вы получите: 1 файл · 4.56 KB · ZIP

Варианты покупки

Описание товара

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.

Что вы получите

1 файл · 4.56 KB

  • startup-context-meter.zipZIP · 4.56 KB
ЛицензияКоммерческое использование разрешено
Опубликовано3 дек. 2026 г.
Размер файла4.56 KB
Формат файлаZIP
Версияv1.0

Теги

claude codeclaude skillai agentmacosllm ops
C
Claude Workflow Lab

Частые вопросы

Доступ открывается сразу?

Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.

Можно ли использовать в коммерческих проектах?

Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.

Какие условия возврата?

Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.

Какие форматы и размеры файлов я получу?

Вы скачаете 1 файл - ZIP - всего 4.56 KB.

Обновления бесплатны?

Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.

Цена

$6.00