feat(flags): allow disabling .claude prompt and skills loading - #7205
Merged
rekram1-node merged 2 commits intoJan 8, 2026
Merged
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
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: |
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
force-pushed
the
feat/disable-claude-loading
branch
from
January 8, 2026 03:35
f94ad18 to
542edc9
Compare
Collaborator
|
/review |
Contributor
|
lgtm |
triklozoid
pushed a commit
to triklozoid/opencode
that referenced
this pull request
Feb 2, 2026
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
May 5, 2026
AIALRA-0
pushed a commit
to AIALRA-0/opencode-turn-engine
that referenced
this pull request
Jun 10, 2026
Rwanbt
pushed a commit
to Rwanbt/unifia
that referenced
this pull request
Jun 14, 2026
MarsQiu007
referenced
this pull request
in MarsQiu007/openNovel
Jul 31, 2026
meSingh
pushed a commit
to meSingh/opencode
that referenced
this pull request
Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds opt-out flags for users who don't want OpenCode
to load Claude-related local configuration.
OPENCODE_DISABLE_CLAUDE_PROMPT=1Skips loading
~/.claude/CLAUDE.md.OPENCODE_DISABLE_CLAUDE_SKILLS=1Skips discovering skills from:
<repo>/.claude/skills/**/SKILL.md~/.claude/skills/**/SKILL.mdDefault behavior is unchanged when flags are not set.