MCPcopy
hub / github.com/codeaashu/claude-code / getAutoMemPathOverride

Function getAutoMemPathOverride

src/memdir/paths.ts:161–166  ·  view source on GitHub ↗

* Direct override for the full auto-memory directory path via env var. * When set, getAutoMemPath()/getAutoMemEntrypoint() return this path directly * instead of computing `{base}/projects/{sanitized-cwd}/memory/`. * * Used by Cowork to redirect memory to a space-scoped mount where the * per-se

()

Source from the content-addressed store, hash-verified

159 * produce a different project-key for every session.
160 */
161function getAutoMemPathOverride(): string | undefined {
162 return validateMemoryPath(
163 process.env.CLAUDE_COWORK_MEMORY_PATH_OVERRIDE,
164 false,
165 )
166}
167
168/**
169 * Settings.json override for the full auto-memory directory path.

Callers 2

hasAutoMemPathOverrideFunction · 0.85
paths.tsFile · 0.85

Calls 1

validateMemoryPathFunction · 0.85

Tested by

no test coverage detected