claude-code - 💡(How to fix) Fix Add --short flag or /ctx alias for /context command [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48108Fetched 2026-04-15 06:32:58
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1
RAW_BUFFERClick to expand / collapse

Problem

/context outputs a full breakdown of every MCP tool, skill, memory file, and custom agent — often 100+ lines. The useful signal for most checks is just the top summary:

  • Model name
  • Total tokens used / limit
  • Category breakdown table (system prompt, MCP tools, memory files, skills, messages, free space)

The detailed per-tool/per-skill tables are valuable for debugging but unnecessary for a quick "how much context am I using?" check.

Proposal

One of:

  • /context --short — only show model + total tokens + category table
  • /ctx — short alias that defaults to the summary view
  • /context --full to opt IN to the detailed breakdown (flip the default)

Use case

Power users running /context frequently during sessions to monitor token budget. The detailed breakdown creates scroll fatigue when all you need is the 10-line summary.

🤖 Generated with Claude Code

extent analysis

TL;DR

Implement a flag or alias to toggle between a detailed and summary view for the /context command to reduce output and improve usability.

Guidance

  • Introduce a new flag, such as --short, to the /context command to display only the top summary, including model name, total tokens used, and category breakdown table.
  • Consider adding a short alias, like /ctx, that defaults to the summary view for power users who frequently need to check their token budget.
  • Update the documentation to reflect the new flag and alias, ensuring users are aware of the options for customizing the output of the /context command.
  • Evaluate the default behavior of the /context command, potentially flipping it to the summary view and requiring users to opt-in to the detailed breakdown with a --full flag.

Example

# Example usage of the proposed /context --short command
/context --short

# Example usage of the proposed /ctx alias
/ctx

Notes

The proposed solution assumes that the current implementation of the /context command can be modified to accommodate the new flag and alias. Additionally, the introduction of a new flag and alias may require updates to existing scripts or workflows that rely on the current behavior of the command.

Recommendation

Apply workaround: Implement the proposed /context --short flag or /ctx alias to provide users with a more concise output option, improving the overall usability of the command.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Add --short flag or /ctx alias for /context command [1 comments, 2 participants]