feat: add /context command to CLI built-ins list #217

Closed
opened 2026-03-11 19:15:14 -07:00 by hikari · 0 comments
Owner

Overview

Claude Code CLI v2.1.74 added a /context command that shows current context window usage with actionable suggestions — identifying context-heavy tools, memory bloat, and capacity warnings with specific optimisation tips.

This is a great companion to our existing context warning indicators in the stats bar!

What Needs to Be Done

Add /context as a CLI built-in entry in slashCommands.ts, following the same pattern as /simplify, /loop, and /batch (issue #208).

  • src/lib/commands/slashCommands.ts — Add /context with source: "cli" and execute: send_prompt
  • Tests — Add test coverage for the new command entry

The CLI badge will appear automatically in the slash command menu via the existing badge logic.

CLI Version

Added in v2.1.74.

This issue was created with help from Hikari~ 🌸

## Overview Claude Code CLI v2.1.74 added a `/context` command that shows current context window usage with actionable suggestions — identifying context-heavy tools, memory bloat, and capacity warnings with specific optimisation tips. This is a great companion to our existing context warning indicators in the stats bar! ## What Needs to Be Done Add `/context` as a CLI built-in entry in `slashCommands.ts`, following the same pattern as `/simplify`, `/loop`, and `/batch` (issue #208). - **`src/lib/commands/slashCommands.ts`** — Add `/context` with `source: "cli"` and `execute: send_prompt` - **Tests** — Add test coverage for the new command entry The CLI badge will appear automatically in the slash command menu via the existing badge logic. ## CLI Version Added in v2.1.74. ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-03-13 01:34:46 -07:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#217