Skip to content

fix(DRIVE): portable package-dir resolution (DRIVE_PKG_DIR + __file__)#154

Merged
dancinlife merged 1 commit into
mainfrom
fix/drive-portable-pkgdir
Jun 4, 2026
Merged

fix(DRIVE): portable package-dir resolution (DRIVE_PKG_DIR + __file__)#154
dancinlife merged 1 commit into
mainfrom
fix/drive-portable-pkgdir

Conversation

@dancinlife

Copy link
Copy Markdown
Contributor

Makes DRIVE's RAG grounding install-name agnostic, needed by the standalone dancinlab/drive release (hx install drive installs to ~/.hx/packages/drive, not DRIVE).

  • drive.hexa: KB + retriever path via DRIVE_PKG_DIR env (launcher-set) → fallback ~/.hx/packages/DRIVE
  • rag_retrieve.py: KB/cache relative to __file__

🤖 Generated with Claude Code

drive.hexa resolves the KB + retriever via DRIVE_PKG_DIR (exported by the
released bin/drive launcher), falling back to ~/.hx/packages/DRIVE; rag_retrieve.py
resolves its KB/cache relative to __file__. This makes RAG grounding work
regardless of install name (~/.hx/packages/drive vs DRIVE) — needed by the
standalone dancinlab/drive package.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dancinlife dancinlife merged commit 0855d18 into main Jun 4, 2026
@dancinlife dancinlife deleted the fix/drive-portable-pkgdir branch June 4, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant