A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
docs(odd): add the global Engram spec
Alan Buscagliafcd4c646c918
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.mdindex 011e8bb..eda6dfd 100644--- a/odd/tasks/gentle-dot.md+++ b/odd/tasks/gentle-dot.md@@ -70,6 +70,10 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo- **S22 — One continuous chat.** User (L38): "por ahora entonces si es una sola sesion no pongas la capacidad de hacer nuevos chats, dejalo como esta pero ocultalo que sea un solo chat continuo te parece? mi unico miedo es que pasa cuando compacta mucchas veces y asi, si no sera mucho contexto".- Acceptance: the UI hides "New conversation" and the conversations list (the code and protocol stay, behind a flag, so they can return), and the header shows the assistant instead of a conversation title. The chat feels endless: the daemon rotates the underlying session transparently when it grows past a threshold (default 20 MB or 10 compactions), starting a fresh session seeded with a handoff summary, and the UI shows the previous session's recent messages above a subtle "Earlier messages" divider. The UI loads only recent messages, with "Show earlier" for more. Engram stays the durable memory, so compaction detail loss does not lose decisions.+- **S23 — Use the user's global Engram, always in project `gentle-dot`.** User (L39): "y que pasa con engram? veo que no usa el engram total puede ser ? el global qiuero decir, estaria bueno que use el global y que siempre escriba en un proyecto llamado gentle-dots", then "gentle-dot perdon".+ - Acceptance: the engine's memory talks to the user's global Engram (the default server, port 7437, data dir `~/.engram`) instead of a private one, and every memory the assistant saves or searches is scoped to the project `gentle-dot`, whatever the workspace. The rest of the engine's HOME stays isolated (S12). The assistant no longer starts its own Engram server (which also removes the orphaned-server advisory from L31). If the global Engram is not running, the engine's memory plugin may start it as it does for Gentle Shell, with the user's data dir.+ - Mechanism (to verify in the implementation): `ENGRAM_DATA_DIR=<real ~/.engram>` in the child env so the plugin's instance-id check matches the global server; the project forced through the plugin's supported override (Engram has `ENGRAM_PROJECT` / `process_override`; check that gentle-engram honors it), or a workspace whose detected project is `gentle-dot` as the fallback.+## Tasks| ID | Specs | Route | Status | Commit / evidence | Scope |@@ -93,6 +97,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo| T17 | S14–S17, S21 | delegated writer (context backstop) | in progress | — | Queue display, gentlemanprogramming.com style, typing closes options, header icons || T18 | S18–S20 | explore (delegated, read-only) → spec details → implement | in progress | — | Connectors: map the engine's MCP integration and the providers first || T19 | S22 | inline or delegated after T17 (same files) | pending | — | Single continuous chat: hide conversations, transparent session rotation, recent-only history |+| T20 | S23 | delegated writer (parallel with T17; disjoint files: isolation.ts, daemon.ts, config.ts) | in progress | — | Global Engram, project gentle-dot || T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `rustc` is not, so T7 must first install or repair the Rust toolchain (rustup) and asks before installing. Xcode is present.@@ -137,4 +142,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r- **L36 (2026-10-08, user decision):** Slack and Gmail: "Guía paso a paso ahora (Recomendado)" — each user creates their own Slack app or Google Cloud project with an in-app guide; no Gentle Dot-owned OAuth apps for now.- **L37 (2026-10-08, user):** "ah no puede atender mas de una conversacion a la vez?" The assistant answers one conversation at a time (one RPC agent process with one active session). An agent pool (one process per active conversation, capped at 3) was proposed with its costs; user: "dejemos uno solo por ahora". Decision: keep a single active conversation; no spec added.- **L38 (2026-10-08, user):** "por ahora entonces si es una sola sesion no pongas la capacidad de hacer nuevos chats, dejalo como esta pero ocultalo que sea un solo chat continuo te parece? mi unico miedo es que pasa cuando compacta mucchas veces y asi, si no sera mucho contexto". Evidence (pi-coding-agent docs/compaction.md:20-45, session-format.md "Context Building" and "CompactionEntry"): auto-compaction triggers when context > window - reserveTokens (16384) and keeps about 20k recent tokens plus the latest summary, so the model context stays bounded. Detail degrades with repeated summaries (Engram mitigates that), and the session file keeps every entry, so it grows forever on disk. Hence S22 rotation.-- **Next step:** T17 (UI writer running, now including S21); then T19 (continuous chat) and T18 (connectors), both after T17 because they share files; then T14 (Linux).+- **L39 (2026-10-08, user):** "y que pasa con engram? veo que no usa el engram total puede ser ? el global qiuero decir, estaria bueno que use el global y que siempre escriba en un proyecto llamado gentle-dots" then "gentle-dot perdon". The parent found that Engram's Go code reads `ENGRAM_DATA_DIR` and `ENGRAM_PORT` and has `ENGRAM_PROJECT` with a `process_override` project source, and that the Pi plugin reads `ENGRAM_URL`, `ENGRAM_PORT`, and `ENGRAM_BIN`, with project override support unverified. T20 was launched in parallel with T17.+- **Next step:** T17 and T20 (parallel); then T19 (continuous chat) and T18 (connectors), after T17 because they share files; then T14 (Linux).