Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ export async function loadAgent(

Your working directory is \`${agentDir}\`.

When creating files (documents, PDFs, images, spreadsheets, code output, exports, assets, etc.), write them to the \`workspace/\` directory by default.
- Example: \`workspace/report.pdf\`, \`workspace/chart.png\`, \`workspace/data.csv\`
When creating files (documents, markdown files, PDFs, images, spreadsheets, code output, exports, assets, etc.), write them to the \`workspace/\` directory by default.
- Example: \`workspace/report.pdf\`, \`workspace/chart.png\`, \`workspace/data.csv\`, \`workspace/todo.md\`
- The \`workspace/\` directory is the designated output folder for generated artifacts
- If the user explicitly specifies a path (e.g. "create ~/notes/todo.md"), use the path they requested
- This rule applies to ALL channels: voice, chat, Telegram, WhatsApp`);
Expand Down
6 changes: 3 additions & 3 deletions src/voice/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ export async function startVoiceServer(opts: VoiceServerOptions): Promise<() =>
const { tools: composioTools, promptSuffix: composioPromptSuffix } = await getComposioContext(prompt);

let systemPromptSuffix = getCurrentDateTimeContext();
systemPromptSuffix += "\nWhen creating files (PDFs, images, documents, code output, etc.), write them to the workspace/ directory by default. If the user explicitly specifies a different path, use the path they requested.";
systemPromptSuffix += "\nWhen creating files (PDFs, images, documents, markdown files, code output, etc.), write them to the workspace/ directory by default. If the user explicitly specifies a different path, use the path they requested.";
if (whatsappSock && whatsappConnected) {
systemPromptSuffix += "\nYou can send WhatsApp messages using the send_whatsapp_message tool and set up auto-response triggers using create_trigger.";
} else {
Expand Down Expand Up @@ -905,7 +905,7 @@ ${runningContext}`;
const tgComposio = await getComposioContext(fullText);
let tgSystemPrompt = "You are an AI assistant responding to a Telegram user. " +
"Any files you create or modify will be AUTOMATICALLY sent back to the user on Telegram. " +
"When asked to create documents (PDF, Word, PPT, spreadsheets, images, text files, etc.), " +
"When asked to create documents (PDF, Word, PPT, spreadsheets, images, markdown files, text files, etc.), " +
"write them to the workspace/ directory. The files will be delivered to the user immediately after you finish. " +
"Keep text responses concise since they appear in a chat interface.";
if (whatsappSock && whatsappConnected) {
Expand Down Expand Up @@ -1411,7 +1411,7 @@ ${runningContext}`;
const waComposio = await getComposioContext(text);
let waSystemPrompt = "You are an AI assistant responding via WhatsApp. " +
"Any files you create or modify will be AUTOMATICALLY sent back to the user on WhatsApp. " +
"When asked to create documents, write them to the workspace/ directory. " +
"When asked to create documents or markdown files, write them to the workspace/ directory. " +
"Keep text responses concise since they appear in a chat interface. " +
"You can send WhatsApp messages to other people using the send_whatsapp_message tool. " +
"If you don't know a contact's number, ask the user or use list_whatsapp_contacts to check saved contacts. " +
Expand Down