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

Claude Code Startup Context Size Measurement is a paid AI agent skill on Agensi by Claude Workflow Lab, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $6 (one-time purchase)
- Creator: [Claude Workflow Lab](https://www.agensi.io/creators/creator-1578)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/claude-code-startup-context-size-measurement
- Tags: llm-ops, prompt-engineering, testing, claude-code, context, tokens, cost, measurement

## 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

## 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 `--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.

## Requires

- Claude Code
- Python 3 (standard library only)

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Claude Code Startup Context Size Measurement skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Claude Code Startup Context Size Measurement do?

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.

### Which AI agents support Claude Code Startup Context Size Measurement?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Claude Code Startup Context Size Measurement?

Connect your AI agent to Agensi through MCP, then ask it to use Claude Code Startup Context Size Measurement on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
