ADR-013: Venv in the user data dir; OS-native login services¶
- Status: Proposed
- Date: 2026-11-27
Context¶
Install must work from a git clone or a USB stick, and capture must continue after the stick is removed.
Decision¶
start.sh/start.batlocate Python ≥ 3.10, create a venv in the platform data dir (%LOCALAPPDATA%\cvprism,~/Library/Application Support/cvprism,~/.local/share/cvprism) andpip installcvprism from the stick or clone path. A bundled wheelhouse on the USB stick allows offline install. After install, nothing references the stick.- The background service (
cvprism agent) is registered per OS: on Windows the per-userHKCU\...\CurrentVersion\Runregistry value launchingpythonw -m cvprism agent(no admin rights; an "at logon" scheduled task was the first choice but needs elevation on many machines), a macOSlaunchdLaunchAgent, or a Linuxsystemd --userunit with an XDG autostart fallback. - Hooks point at the venv's absolute
cvprismexecutable path. cvprism uninstallremoves services and hooks, restores prior git and Claude Code settings, and keeps data unless--purge-datais given.
Alternatives considered¶
pipx (good, but not guaranteed to be installed; supported as an alternative path), a PyInstaller single binary (large, and antivirus false positives on Windows), Docker (cannot easily hook the host's Claude Code or git).
Consequences¶
No admin rights needed on any OS. Python must already be installed. The start script prints per-OS install instructions if it is missing.