-
Notifications
You must be signed in to change notification settings - Fork 971
Description
Summary
The Claude Agent SDK integration in ClaudeAdapter.ts does not pass settingSources to the SDK's query options. As a result, all filesystem-based Claude Code features are silently ignored:
- Skills (
.claude/skills/and~/.claude/skills/) — never discovered - Slash Commands (
.claude/commands/and~/.claude/commands/) — never loaded - CLAUDE.md memory (
CLAUDE.md,.claude/CLAUDE.md) — never read
This means users who have installed Skills (e.g. Impeccable for design review, or any custom Skills) cannot use them through t3code, even though they work perfectly in the Claude Code CLI.
Root Cause
In apps/server/src/provider/Layers/ClaudeAdapter.ts (line ~2561), the queryOptions object is missing the settingSources property:
const queryOptions: ClaudeQueryOptions = {
...(input.cwd ? { cwd: input.cwd } : {}),
...(input.model ? { model: input.model } : {}),
pathToClaudeCodeExecutable: providerOptions?.binaryPath ?? "claude",
// ... other options ...
includePartialMessages: true,
canUseTool,
env: process.env,
...(input.cwd ? { additionalDirectories: [input.cwd] } : {}),
// ⛔ Missing: settingSources
};Per the official Agent SDK documentation:
"By default, the SDK does not load any filesystem settings. To use Skills, you must explicitly configure
settingSources: ['user', 'project']."
Proposed Fix
Add settingSources to the query options:
const queryOptions: ClaudeQueryOptions = {
// ... existing options ...
settingSources: ["user", "project"], // Load Skills, Commands, and CLAUDE.md
};This could also be made configurable via providerOptions so users can control which sources are loaded (e.g. only "project" for shared team setups, or "user" for personal Skills).
Impact
- Any user with installed Claude Code Skills (user-level in
~/.claude/skills/or project-level in.claude/skills/) will find that they are completely ignored in t3code CLAUDE.mdproject memory files are not loaded, so project-specific instructions don't apply- Custom slash commands defined in
.claude/commands/are not available
Steps to Reproduce
- Install a Skill in
~/.claude/skills/(e.g. the Impeccable design review Skill) - Open t3code and start a Claude session
- Ask Claude to use the installed Skill (e.g. "use Impeccable to review the design")
- Expected: Claude invokes the Skill
- Actual: Claude has no knowledge of the Skill and cannot use it
Environment
@anthropic-ai/claude-agent-sdkv0.2.77- Verified against SDK documentation as of 2026-03-21