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

Function getAutoMemBase

src/memdir/paths.ts:203–205  ·  view source on GitHub ↗

* Returns the canonical git repo root if available, otherwise falls back to * the stable project root. Uses findCanonicalGitRoot so all worktrees of the * same repo share one auto-memory directory (anthropics/claude-code#24382).

()

Source from the content-addressed store, hash-verified

201 * same repo share one auto-memory directory (anthropics/claude-code#24382).
202 */
203function getAutoMemBase(): string {
204 return findCanonicalGitRoot(getProjectRoot()) ?? getProjectRoot()
205}
206
207/**
208 * Returns the auto-memory directory path.

Callers 1

paths.tsFile · 0.85

Calls 1

getProjectRootFunction · 0.85

Tested by

no test coverage detected