Skip to content

Conversation

@freespace8
Copy link
Contributor

This PR adds opt-out flags for users who don't want OpenCode
to load Claude-related local configuration.

  • OPENCODE_DISABLE_CLAUDE_PROMPT=1
    Skips loading ~/.claude/CLAUDE.md.
  • OPENCODE_DISABLE_CLAUDE_SKILLS=1
    Skips discovering skills from:
    • <repo>/.claude/skills/**/SKILL.md
    • ~/.claude/skills/**/SKILL.md

Default behavior is unchanged when flags are not set.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@rekram1-node
Copy link
Collaborator

@freespace8 thanks! can u also add a flag that basically translates to:

Disable reading of anything claude code related

So basically OPENCODE_DISABLE_CLAUDE_PROMPT = truthy(OPENCODE_DISABLE_CLAUDE_PROMPT) || OPENCODE_DISABLE_CLAUDE

I think this is prolly a bad var name: OPENCODE_DISABLE_CLAUDE so if u have better idea im all ears!

@freespace8
Copy link
Contributor Author

Added a single OPENCODE_DISABLE_CLAUDE_CODE switch to disable all .claude reads. Also split the scoped controls into OPENCODE_DISABLE_CLAUDE_CODE_PROMPT (skip CLAUDE.md) and OPENCODE_DISABLE_CLAUDE_CODE_SKILLS (skip .claude/skills scanning). Docs updated with the new env vars.

Add OPENCODE_DISABLE_CLAUDE_CODE with scoped *_PROMPT and *_SKILLS flags and wire them into .claude prompt + skills loading.
@freespace8 freespace8 force-pushed the feat/disable-claude-loading branch from f94ad18 to 542edc9 Compare January 8, 2026 03:35
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

lgtm

@rekram1-node rekram1-node merged commit 542c9d5 into anomalyco:dev Jan 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants