Optimize your agent

Measure and govern

Measure what fills the window

Before changing anything, look at what fills the context window. Claude Code shows it per source with /context, ranks skills by context cost against use with /skill-doctor, and suggests fixes from /usage. Measure again after each change, on the same tasks.

Checked on the vendor's pages 30 Nov 2026

Where it fits

Building my own agent Partly

Log input tokens per request.

Using a coding agent Fits

/context, /usage, /skill-doctor in Claude Code.

Using an enterprise assistant Not available

No per-request view.

Using a workflow tool Partly

Execution logs show each step.

The setting in each harness

Read on each vendor's own page, linked next to the setting.

HarnessSetting
Claude Code

/context, /usage, /skill-doctor, /doctor prompt-audit

code.claude.com, read 30 Nov 2026