From 676fa14947086320fe93c206e21a28272f0b7c3a Mon Sep 17 00:00:00 2001 From: Muhammad Ahmed Cheema Date: Mon, 13 Apr 2026 15:26:34 -0700 Subject: [PATCH] fix: load user-scope skills from ~/.claude/skills The Claude Agent SDK only scans skill directories for settingSources that are explicitly enabled. Phantom was passing ["project"] which ignored user-scope skills entirely. Flipping this to ["project", "user"] lets the agent load any SKILL.md the operator drops into the mounted phantom_claude volume on the next query() init, with no restart needed. Unblocks the skills editor surface planned for the Dashboard v2 work. Trivial, additive, no test impact. --- src/agent/runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/runtime.ts b/src/agent/runtime.ts index 807efb2..ed50515 100644 --- a/src/agent/runtime.ts +++ b/src/agent/runtime.ts @@ -190,7 +190,7 @@ export class AgentRuntime { model: this.config.model, permissionMode: "bypassPermissions", allowDangerouslySkipPermissions: true, - settingSources: ["project"], + settingSources: ["project", "user"], systemPrompt: { type: "preset" as const, preset: "claude_code" as const,