Skip to content

Commit 3e74f2c

Browse files
kulvirgitclaude
andcommitted
fix: single config flag for skill discovery, default false (opt-in)
Remove env var gate (OPENCODE_DISABLE_EXTERNAL_SKILLS) — only the config flag controls discovery. Default changed from true to false so users must explicitly opt in with auto_skill_discovery: true. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6f0e21e commit 3e74f2c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/opencode/src/config/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,8 +1303,8 @@ export namespace Config {
13031303
// altimate_change start - auto skill/command discovery toggle
13041304
auto_skill_discovery: z
13051305
.boolean()
1306-
.default(true)
1307-
.describe("Auto-discover skills and commands from Claude Code, Codex, and Gemini configs at startup. Set to false to disable."),
1306+
.default(false)
1307+
.describe("Auto-discover skills and commands from Claude Code, Codex, and Gemini configs at startup. Opt-in — set to true to enable."),
13081308
// altimate_change end
13091309
})
13101310
.optional(),

packages/opencode/src/skill/skill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export namespace Skill {
231231
}
232232

233233
// altimate_change start — auto-discover skills/commands from external AI tool configs
234-
if (!Flag.OPENCODE_DISABLE_EXTERNAL_SKILLS && config.experimental?.auto_skill_discovery !== false) {
234+
if (config.experimental?.auto_skill_discovery === true) {
235235
try {
236236
const { discoverExternalSkills, setSkillDiscoveryResult } = await import("./discover-external")
237237
const { skills: externalSkills, sources } = await discoverExternalSkills(Instance.worktree)

0 commit comments

Comments
 (0)