pub fn resolve_auto_db(
env_project_dir: Option<&OsStr>,
cwd: &Path,
home: &Path,
) -> PathBufExpand description
Where --auto looks for a database, in order.
$CLAUDE_PROJECT_DIR/mushroom-memory— the assistant tells a hook which project it is working in, and that is the most specific answer there is.<working-tree root>/mushroom-memory, but only when the working directory is inside a git checkout. Without that guard a command run from a home directory would quietly create a store there.<home>/.mushroomdb/memory, the user-scope defaultinstallwrites.
The two project-scoped answers match install::default_db,
so a hook with --auto finds the store install --project created.