Harness Notes

Commands

Updated 2026-11-22,

On this page

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.

TaskClaude Codechecked at 2.1.296
Set up
Configure

/usage-credits

Set up usage credits, or request them from an admin, when a limit is hit.

1 note

Previously /extra-usage.

Use
Show details

/usage

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–100
  • rate_limits.seven_day.used_percentage — percent consumed, 0–100
  • rate_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 | rejected
  • rate_limit_info.resetsAt — optional number; unit not specified in checked type
  • rate_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.