claude-code - 💡(How to fix) Fix C:/Program Files/Git/focus command not recognized (Unknown command) on Windows v2.1.116 [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#51756Fetched 2026-04-22 07:53:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1
RAW_BUFFERClick to expand / collapse

Describe the bug

The /focus slash command returns "Unknown command" in the Claude Code CLI on Windows, even though it was reportedly added in v2.1.110.

To Reproduce

  1. Open Claude Code CLI in a terminal on Windows
  2. Type /focus and press Enter
  3. "Unknown command: /focus" is returned

Expected behavior

/focus should toggle the focus view as described in the changelog for v2.1.110.

Environment

  • OS: Windows 11
  • Claude Code version: 2.1.116
  • Installation method: Windows installer (not via npm)

Additional context

  • Ctrl+O still works for focus view toggling
  • /doctor reports no issues
  • @anthropic-ai/claude-code does not appear in npm list -g (installed via Windows installer, not npm)

extent analysis

TL;DR

The /focus command issue in Claude Code CLI on Windows may be resolved by checking the command's registration or alias in the version 2.1.116.

Guidance

  • Verify that the /focus command is correctly registered or aliased in the Claude Code CLI configuration for version 2.1.116.
  • Check if there are any specific Windows-related configurations or settings that need to be adjusted for the /focus command to work.
  • Compare the behavior of the /focus command with other commands, such as /doctor, to see if there are any patterns or differences.
  • Consider checking the changelog or release notes for version 2.1.110 and 2.1.116 to see if there are any specific instructions or notes about the /focus command.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be specific to the Windows installation method or version 2.1.116, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: The user can use Ctrl+O as an alternative to toggle the focus view until the issue with the /focus command is resolved.

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…

FAQ

Expected behavior

/focus should toggle the focus view as described in the changelog for v2.1.110.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING