MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getAutoMemBase

Function getAutoMemBase

source code/memdir/paths.ts:205–207  ·  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

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

Callers 1

paths.tsFile · 0.85

Calls 1

getProjectRootFunction · 0.85

Tested by

no test coverage detected