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. --- 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({