From 0732fc5efd4cd77df56198219bc2c70f173e2882 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 Sep 2025 12:40:05 -0500 Subject: [PATCH] Add "Your Environment" section to system prompt --- README.md | 4 ++-- src/lib/system.ts | 54 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a18c80b7..ce93bb25 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Shakespeare is an AI chat application that allows users to build custom Nostr we ## Features - **AI-Powered Development**: Chat with an AI assistant to build your Nostr website -- **Project Management**: Create and manage multiple projects in a Google Drive-like interface +- **Project Management**: Create and manage multiple projects with sidebar navigation - **Real-time Editing**: Edit files directly in the browser with syntax highlighting - **File Explorer**: Browse and manage your project files - **Project Preview**: Preview your website as you build it @@ -41,7 +41,7 @@ The AI assistant can: ## Usage -1. **Homepage**: Create new projects and view existing ones +1. **Homepage**: Enter a project description in the textarea to create new projects, with existing projects listed in the sidebar 2. **Project View**: Split-pane interface with AI chat on the left and preview/code on the right 3. **File Explorer**: Navigate your project files in the code view 4. **File Editor**: Edit files with syntax highlighting and save changes diff --git a/src/lib/system.ts b/src/lib/system.ts index b5239143..c3fa9525 100644 --- a/src/lib/system.ts +++ b/src/lib/system.ts @@ -29,6 +29,58 @@ export async function makeSystemPrompt(opts: MakeSystemPromptOpts): Promise tool.type === "function") @@ -36,7 +88,7 @@ export async function makeSystemPrompt(opts: MakeSystemPromptOpts): Promise 0) { system += - "\n\n# Available Tools\n\nYou have access to the following tools:\n"; + "\n\n## Available Tools\n\nYou have access to the following tools:\n"; for (const tool of tools) { if (tool.type === "function") { system += `\n- **${tool.function.name}**: ${