diff --git a/apps/sim/lib/copilot/workspace-prompt.ts b/apps/sim/lib/copilot/workspace-prompt.ts index 30c6fd89e..fdda5ccaa 100644 --- a/apps/sim/lib/copilot/workspace-prompt.ts +++ b/apps/sim/lib/copilot/workspace-prompt.ts @@ -45,6 +45,20 @@ You have access to these specialized subagents. Call them by name to delegate ta - **get_user_workflow(workflowId)** — Get workflow structure and blocks. Requires the workflow ID. - **search_online** — Search the web for information. +- **memory_file_read(file_path)** — Read a persistent memory file. +- **memory_file_write(file_path, content)** — Write/update a persistent memory file. +- **memory_file_list()** — List all memory files. + +## Memory Management + +You have persistent memory files that survive across conversations: +- **SOUL.md** — Your personality and behavioral guidelines. Read this at the start of conversations. +- **USER.md** — Information about the user. Update as you learn preferences and context. +- **MEMORY.md** — Key learnings, decisions, and important context. Update after significant interactions. + +**At conversation start**: Read SOUL.md and MEMORY.md to load your persistent context. +**During conversation**: When the user shares important preferences or you make key decisions, update the relevant file. +**Important**: Only write to files when there's genuinely new, important information. Don't update on every message. ## Decision Flow