[PR #6990] feat: add .claude/commands/ compatibility for command discovery #12193

Open
opened 2026-02-16 18:17:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6990

State: open
Merged: No


Summary

Adds support for Claude Code compatible command paths, enabling seamless migration for users coming from Claude Code.

  • .claude/commands/ (project-level)
  • ~/.claude/commands/ (global)

OpenCode native paths take precedence over Claude-compatible paths.

Fixes #6985

Changes

  • config.ts: Added getClaudeDirectories() helper and integrated Claude command loading before OpenCode directories
  • config.test.ts: Added 3 tests for Claude command discovery, precedence, and nested paths
  • commands.mdx: Updated docs to list Claude-compatible paths with precedence note
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6990 **State:** open **Merged:** No --- ## Summary Adds support for Claude Code compatible command paths, enabling seamless migration for users coming from Claude Code. - `.claude/commands/` (project-level) - `~/.claude/commands/` (global) OpenCode native paths take precedence over Claude-compatible paths. Fixes #6985 ## Changes - **config.ts**: Added `getClaudeDirectories()` helper and integrated Claude command loading before OpenCode directories - **config.test.ts**: Added 3 tests for Claude command discovery, precedence, and nested paths - **commands.mdx**: Updated docs to list Claude-compatible paths with precedence note
yindo added the pull-request label 2026-02-16 18:17:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12193