Skip to content

Commit c192d4a

Browse files
authored
Merge pull request #74 from 10play/GuySerfaty/claude-md-sdk-support
fix: enable CLAUDE.md file loading in SDK query
2 parents d594041 + c54cb3d commit c192d4a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cli/server/promptServer.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,15 +936,19 @@ export class PromptServer {
936936
abortController: this.abortController,
937937
includePartialMessages: true,
938938
permissionMode: "bypassPermissions", // YOLO mode - bypass all permission prompts
939-
systemPrompt: `You are Claude, running as part of Expo Flow - an AI-powered development tool that runs on the developer's local machine and developer runs the app on their phone with a widget that help him develop the app on the go.
939+
settingSources: ["project"], // Load CLAUDE.md files from the project
940+
systemPrompt: {
941+
type: "preset",
942+
preset: "claude_code",
943+
append: `You are running as part of Expo Flow - an AI-powered development tool that runs on the developer's local machine. The developer runs the app on their phone with a widget that helps them develop the app on the go.
940944
941945
IMPORTANT CONSTRAINTS:
942946
- This environment uses Expo's Over-The-Air (OTA) updates for rapid iteration
943947
- DO NOT add new npm/yarn packages unless the user EXPLICITLY asks for it
944948
- Adding new packages requires the developer to completely reset and rebuild the native app, which is a slow and disruptive process
945949
- If a feature could be implemented with existing packages or vanilla JavaScript/TypeScript, prefer that approach
946-
- If a new package is truly necessary, clearly warn the user that adding it will require a full app rebuild
947-
`,
950+
- If a new package is truly necessary, clearly warn the user that adding it will require a full app rebuild`,
951+
},
948952
tools: {
949953
type: "preset",
950954
preset: "claude_code",

example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)