The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.
Inside a session
Slash commands you type into an open session.
| Task | Claude Codechecked at 2.1.296 |
|---|---|
| Set up | |
| Configure | Set up usage credits, or request them from an admin, when a limit is hit. 1 notePreviously /extra-usage. |
| Use | |
| Show details | also /cost, /stats Show session cost, plan usage limits and activity stats. 1 note/stats opens on the Stats tab. |
Programmatic retrieval
Quota, activity and spend have different units and account scopes. These findings describe source or documentation; account retrieval has not been runtime verified.
Claude Code: Subscription quota snapshot
statusLine.command receives rate_limits
Status-line command stdin JSON · quota · documented-output · documentation, checked 2026-10-22
Documented for claude.ai Pro/Max after the first API response; gateway spend limits have a separate window.
rate_limits.five_hour.used_percentage— percent consumed, 0–100rate_limits.seven_day.used_percentage— percent consumed, 0–100rate_limits.*.resets_at— Unix seconds
Capture JSON delivered to a configured status-line command. This is session-driven output, not an independent pull API. Each window may be absent; expired windows are dropped.
Gateway spend_limit is separate; optional USD amounts can lag its percentage. Gateway percentage/reset fields require 2.1.251+, dollar fields require client and gateway 2.1.284+.
No status-line settings were changed and no authenticated response was captured.
Claude Code: Rate-limit event
SDKRateLimitEvent (type: rate_limit_event)
Agent SDK stream · quota · documented-output · documentation, checked 2026-10-22
Uses the SDK session authentication; subscription-specific credit rejection fields are conditional.
rate_limit_info.status— allowed | allowed_warning | rejectedrate_limit_info.resetsAt— optional number; unit not specified in checked typerate_limit_info.utilization— optional number; scale not specified in checked type
An event when the session encounters a rate limit; not a complete on-demand multi-window quota snapshot.
Do not equate utilization with status-line percentage without verifying its scale. No SDK session was run.
Notes and sources
Claude Code
- Some plugin authoring and evaluation commands are newer than the public reference, so each command keeps its live help evidence.
- Plugin installs that run a marketplace-declared command need --accept-command <sha256> without a TTY.
- Interactive commands are recorded separately from their shell equivalents.
- 2.1.304 adds /auto-mode-setup across Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions; help output was corrected for several flags, and plugin validate no longer predicts where mod hooks run. Existing command help observations retain their versions.
- claude plugin can also be written claude plugins.
- claude-cli-2.1.296 help observation, live observation, checked 2026-10-14
- Claude Code MCP, Documentation, checked 2026-10-15
- Claude Code plugin CLI reference, Documentation, checked 2026-10-14
- Claude Code: Manage multiple agents with agent view, Documentation, checked 2026-10-15
- Claude Code commands, Documentation, checked 2026-10-15
- Claude Code CLI reference, Documentation, checked 2026-10-15
- Claude Code sessions, Documentation, checked 2026-10-15
- Claude Code costs and usage, Documentation, checked 2026-10-15
- Claude Code 2.1.304 published changes; no runtime probe, Documentation, checked 2026-10-21
- claude worktree documentation, reviewed 2026-10-27, Documentation, checked 2026-10-27
- Claude Code status-line quota fields, Documentation, checked 2026-10-22
- Claude Agent SDK rate-limit events, Documentation, checked 2026-10-22