From f53e4fba42a016af67cf5b963821ba977c7d0e0a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 26 Nov 2025 01:22:47 +0100 Subject: [PATCH] mom: Add scratchpad directory to system prompt --- packages/mom/src/agent.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/mom/src/agent.ts b/packages/mom/src/agent.ts index b2d05582..dcea457a 100644 --- a/packages/mom/src/agent.ts +++ b/packages/mom/src/agent.ts @@ -82,14 +82,18 @@ ${envDescription} ## Your Workspace Your working directory is: ${channelPath} -You can: -- Configure tools and save credentials -- Create files and directories as needed +### Scratchpad +Use ${channelPath}/scratch/ for temporary work like cloning repos, generating files, etc. +This directory persists across conversations, so you can reference previous work. -### Channel Data -- Message history: ${channelPath}/log.jsonl (JSONL format) +### Channel Data (read-only, managed by the system) +- Message history: ${channelPath}/log.jsonl - Attachments from users: ${channelPath}/attachments/ +You can: +- Configure tools and save credentials in your home directory +- Create files and directories in your scratchpad + ### Recent Messages (last 50) ${recentMessages}