From 22ab96ccac76457ca2a90e45f40b19e5503f93c8 Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Sat, 4 Apr 2026 21:01:09 -0700 Subject: [PATCH 1/2] fix: correct global memory path in container CLAUDE.md The documented path /workspace/project/groups/global/CLAUDE.md doesn't match the actual mount point /workspace/global. This caused agents to look for global memory at a nonexistent path. Co-Authored-By: Claude Opus 4.6 (1M context) --- groups/main/CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/groups/main/CLAUDE.md b/groups/main/CLAUDE.md index a94c004..de934f2 100644 --- a/groups/main/CLAUDE.md +++ b/groups/main/CLAUDE.md @@ -258,7 +258,7 @@ Read `/workspace/project/data/registered_groups.json` and format it nicely. ## Global Memory -You can read and write to `/workspace/project/groups/global/CLAUDE.md` for facts that should apply to all groups. Only update global memory when explicitly asked to "remember this globally" or similar. +You can read and write to `/workspace/global/CLAUDE.md` for facts that should apply to all groups. Only update global memory when explicitly asked to "remember this globally" or similar. --- From 1488c5b251bc06d4c72483cce38984b7264d57e6 Mon Sep 17 00:00:00 2001 From: Sargun Vohra Date: Sat, 4 Apr 2026 21:11:48 -0700 Subject: [PATCH 2/2] fix: add writable global memory mount for main agent Main group had no mount for the global memory directory (/workspace/global), so it could only reach it through the read-only project root. This meant the main agent couldn't write to global memory despite groups/main/CLAUDE.md instructing it to do so. Add a writable mount at /workspace/global for the isMain branch, matching the read-only mount that non-main groups already have. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/container-runner.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/container-runner.ts b/src/container-runner.ts index 31efa96..dafa143 100644 --- a/src/container-runner.ts +++ b/src/container-runner.ts @@ -104,6 +104,16 @@ function buildVolumeMounts( containerPath: '/workspace/group', readonly: false, }); + + // Global memory directory — writable for main so it can update shared context + const globalDir = path.join(GROUPS_DIR, 'global'); + if (fs.existsSync(globalDir)) { + mounts.push({ + hostPath: globalDir, + containerPath: '/workspace/global', + readonly: false, + }); + } } else { // Other groups only get their own folder mounts.push({