-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Description
Problem
Opencode hardcodes ~/.claude as the path for reading Claude Code configuration (CLAUDE.md and skills), but Claude Code v1.0.30+ changed its default config directory to ~/.config/claude and added support for the CLAUDE_CONFIG_DIR environment variable to override this.
This causes issues for users who:
- Use
CLAUDE_CONFIG_DIRto specify a custom config location - Have a file (not directory) at
~/.claude, causingENOTDIRerrors when opencode tries to glob inside it
Expected Behavior
Opencode should check for Claude config in this order:
CLAUDE_CONFIG_DIRenvironment variable (if set and is a valid directory)~/.config/claude(new Claude Code default)~/.claude(legacy path)
Affected Code
packages/opencode/src/session/system.ts- hardcodes~/.claude/CLAUDE.mdpackages/opencode/src/skill/skill.ts- hardcodes~/.claudefor skills
References
- Claude Code configuration docs: https://docs.anthropic.com/en/docs/claude-code/settings
- Claude Code v1.0.30 changed default from
~/.claudeto~/.config/claude
Metadata
Metadata
Assignees
Labels
No labels