** Docs: `/shells` slash command (and `/bashes`) is documented but was removed in #22740 — tutorial and tip tell users to run a command that doesn't exist

Open Beginner friendly
#30,396 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@DZH166 is already working on this.

Since Nov 21, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli, documentation

Research direction

The stale references are in docs/reference/commands.md (the /shells (or /bashes) section), docs/cli/tutorials/shell-commands.md (the "Viewing active shells" scenario), and the string in packages/cli/src/ui/constants/tips.ts. Start by confirming with git grep -nE "/shells|/bashes" and check docs/reference/keyboard-shortcuts.md for the Ctrl+B and Ctrl+L wording to reuse. Done means no /shells or /bashes references remain and the tutorial points to the keybindings.

Written by the indexing model from the issue text.

Description

status/need-triage

Draft issue for root to file BEFORE publishing the PR (issue-first gate: PRs without a linked issue are auto-closed by gemini-cli[bot]; CONTRIBUTING.md "Pull request guidelines → 1. Link to an existing issue")

Title: Docs: /shells slash command (and /bashes) is documented but was removed in #22740 — tutorial and tip tell users to run a command that doesn't exist

Body:

What happened?

docs/cli/tutorials/shell-commands.md ("Scenario: Viewing active shells") instructs:

To see what's running in the background, use the `/shells` command.

**Command:** `/shells`

and docs/reference/commands.md (slash-command reference) still documents:

### `/shells` (or `/bashes`)

- **Description:** Toggle the background shells view. This lets you view and
  manage long-running processes that you've sent to the background.

The in-app tip in packages/cli/src/ui/constants/tips.ts also says: "Toggle background shells with Ctrl+B or /shells".

But the /shells command no longer exists. It was added by #14849 (commit b611f9a5, 2026-01-30, packages/cli/src/ui/commands/shellsCommand.ts, name: 'shells', altNames: ['bashes']) and removed by #22740 (commit 3eebb75b, 2026-03-28, "feat(core): agnostic background task UI with CompletionBehavior"), which deleted shellsCommand.ts and its test but left the docs section, the tutorial scenario, and the tip untouched.

Running /shells (or /bashes) on current main prints "Unknown command". The background shell controls today are keybindings only, already correctly documented in docs/reference/keyboard-shortcuts.md ("Background Shell Controls"): Ctrl+B = background.toggle (toggle current background shell visibility), Ctrl+L = background.toggleList (toggle background shell list), plus Esc/Enter/Ctrl+K for dismiss/select/kill.

What did you expect to happen?

Docs and the tip should match the shipped UX: drop the /shells (or /bashes) section from the commands reference, point the tutorial's "Viewing active shells" scenario at Ctrl+B / Ctrl+L, and drop "or /shells" from the tip — consistent with docs/reference/keyboard-shortcuts.md.

Impact

Three stale references to a removed command: the command reference documents something that doesn't exist, and the tutorial tells readers to run a command that prints "Unknown command". Docs-only in the two docs files; the third reference is one string constant in tips.ts (no behavior change).

Verification

$ git grep -nE "/shells|/bashes" -- docs packages/cli/src
docs/cli/tutorials/shell-commands.md:65:To see what's running in the background, use the `/shells` command.
docs/cli/tutorials/shell-commands.md:67:**Command:** `/shells`
docs/reference/commands.md:410:### `/shells` (or `/bashes`)
packages/cli/src/ui/constants/tips.ts:118:  'Toggle background shells with Ctrl+B or /shells',

$ git grep -n "name: 'shells'" -- packages/cli/src
(no results — the command does not exist in the registry)

$ ls packages/cli/src/ui/commands/shellsCommand.ts
No such file or directory (removed by #22740, commit 3eebb75b)

A documented-vs-registry cross-check over docs/reference/commands.md (37 documented top-level commands vs the built-in command registry in packages/cli/src/ui/commands/) flags exactly one stale entry: /shells.

Related context

  • The open anchor-cleanup PR #30375 covers nine other docs files but not these; open PR #21877 edits docs/reference/commands.md but only its /directory section.
  • I have a small prepared fix (remove the commands-reference section; rewrite the tutorial scenario to reference Ctrl+B/Ctrl+L; drop "or /shells" from the tip) and can open a PR referencing this issue.

Note for root (not part of the issue body): after filing, (1) verify via API that it is an ISSUE (no pull_request key on GET /repos/google-gemini/gemini-cli/issues/<N>), (2) replace #ISSUE_TO_BE_FILED in pr-body.md/pr-request.json with the new issue number and set manifest.issue + claim-comment.json.issue, (3) post claim-comment.json on the new issue — it asks maintainers for the help wanted label, because author PRs are nudged at 7 days and closed at 14 days without it (.github/scripts/gemini-lifecycle-manager.cjs).

I have a small docs fix ready (remove the stale /shells references from commands.md, shell-commands.md and tips.ts) and will link a PR here shortly. If maintainers agree, a help wanted label would help it survive the 14-day PR lifecycle automation — understood if triage decides otherwise. (Prepared with the help of an AI coding assistant; verified against the current command registry.)

Dominant language
TypeScript
Stars
109k
Forks
15k
Avg merge
1d 1h
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google-gemini/gemini-cli

All issues in google-gemini/gemini-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.