Skip to content

feat(flags): allow disabling .claude prompt and skills loading - #7205

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
freespace8:feat/disable-claude-loading
Jan 8, 2026
Merged

rekram1-node merged 2 commits into
anomalyco:devfrom
freespace8:feat/disable-claude-loading

Conversation

@freespace8

Copy link
Copy Markdown
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

github-actions Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

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

No duplicate PRs found

@rekram1-node

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

/review

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

lgtm

@rekram1-node
rekram1-node merged commit 542c9d5 into anomalyco:dev Jan 8, 2026
2 checks passed
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
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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