Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.20 ·

Context Usage Markdown Export

Entry
JSON All of v2.0.20
EntryKind: in v2.0.20,
ChangesSection of the release

What: Export detailed context usage statistics as markdown tables for non-interactive sessions

How to use:

# Run context command in non-interactive mode
claude --output text context

# Output includes markdown tables:
# - Categories (with tokens and percentages)
# - MCP Tools
# - Custom Agents
# - Memory Files
# - SlashCommand Tool statistics

Details:

  • Token counts formatted for readability (e.g., "1.5k" instead of "1500")
  • Includes model information and total usage percentage
  • Shows free space and autocompact buffer separately
  • Agent sources identified (Built-in, Project, User, Local, Flag, Policy, Plugin)
  • Evidence: Ma6() at line 301494, rk() token formatter at line 301491

See this entry in the whole of v2.0.20 →

Feedback