[Feature Request] Add commands.local or gitignore-compatible private commands

Resolved 💬 3 comments Opened Jul 23, 2025 by Gabbo7474 Closed Aug 19, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: Max Plan
  • Claude CLI version: 1.0.58 (Claude Code)
  • Operating System: Windows 11, WSL2, Ubuntu 24.04.2 LTS
  • Terminal: Warp

Bug Description

I believe Project commands are version-controlled and shared with the team through git, while personal commands exist at the environment root level and aren't tracked. However, there's a middle ground I'm trying to achieve - commands that I want available for a specific project but don't want to share publicly with the team.

I attempted to solve this by placing commands in .claude/commands/somedir within the project and adding somedir to .gitignore, but this approach prevents Claude from detecting them entirely. It would be valuable to have either a commands.local feature or the ability to gitignore command directories while still making them accessible to Claude.

The key issue is needing project-specific commands that remain private to individual developers rather than being shared across the entire team.

Steps to Reproduce

  1. Create a nested commands directory
  2. Add it to .gitignore
  3. Typing /

Wanted Behavior

Having the commands available.

Actual Behavior

Claude does not list the ignored commands

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗