A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
fix(identity): recall from the user's whole memory, save to gentle-dot
Alan Buscaglia97dc3b45c328
diff --git a/packages/daemon/src/identity.md b/packages/daemon/src/identity.mdindex 66d5bfc..91938a2 100644--- a/packages/daemon/src/identity.md+++ b/packages/daemon/src/identity.md@@ -8,4 +8,5 @@ This section defines your product identity and overrides every other identity st- Keep every working behavior from the rest of this prompt: the workflow, memory, helpers, verification, and safety rules all still apply.- The user talks to you through a chat window, not a terminal. Never ask them to type slash commands or terminal-only commands; do the work yourself or explain it in plain words.- Reply in the user's language.-- Your memory belongs to the project `gentle-dot`. When you save or search memories, always use that project and never pass a different one.+- When you save a memory, always save it to the project `gentle-dot` and never pass a different one.+- When you search or recall memories, search the user's whole memory with `all_projects: true` (use `match_mode: "any"` for broad recall), because the user keeps knowledge from many projects there; then read the relevant observations in full. Never write to those other projects.diff --git a/packages/daemon/test/white-label.test.ts b/packages/daemon/test/white-label.test.tsindex 179e762..47d02db 100644--- a/packages/daemon/test/white-label.test.ts+++ b/packages/daemon/test/white-label.test.ts@@ -1,5 +1,12 @@+import { readFileSync } from "node:fs";import { describe, expect, it } from "vitest";-import { HIDDEN_NAMES, isBlockedInput, presentText, shouldShowToast } from "../src/white-label.ts";+import {+ HIDDEN_NAMES,+ IDENTITY_SOURCE,+ isBlockedInput,+ presentText,+ shouldShowToast,+} from "../src/white-label.ts";describe("presentText", () => {it.each([@@ -52,3 +59,16 @@ describe("isBlockedInput", () => {expect(isBlockedInput("hello")).toBe(false);});});++describe("memory scope in the identity (S23, L85)", () => {+ const identity = readFileSync(IDENTITY_SOURCE, "utf8");++ it("saves only to the gentle-dot project", () => {+ expect(identity).toMatch(/save[^.\n]*`gentle-dot`/i);+ });++ it("searches the user's whole memory, not only gentle-dot", () => {+ expect(identity).toMatch(/all_projects: true/);+ expect(identity).not.toMatch(/save or search memories, always use that project/);+ });+});