v1.10.0
What's Changed
Auto-detect project name from git remote (#70)
Project names are now resolved from git remote get-url origin instead of basename(cwd). This fixes project name mismatches in monorepos, custom folder names, and worktree setups.
Detection priority:
- Git remote origin → extract repo name (SSH + HTTPS)
- Git root directory name (worktree-safe)
- CWD basename (fallback, previous behavior)
Automatic migration: On first session start, if the new name differs from the old basename, existing memories are migrated in a single atomic transaction. Idempotent — safe to run multiple times.
Affected components:
- Claude Code hooks (
session-start.sh,subagent-stop.sh,post-compaction.sh) - OpenCode plugin (
engram.ts) - New
POST /projects/migrateHTTP endpoint - Shared
_helpers.shwithdetect_project()function
Full Changelog: v1.9.9...v1.10.0