You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hook install hardcodes python3, breaks in Nix/pipx environments #324
In environments where graphify is installed via pipx but the default python3 is managed by Nix/direnv (or any other Python that doesn't have graphify in its site-packages), the hook fails:
ModuleNotFoundError: No module named 'graphify'
Expected behavior
The hook should resolve the correct Python interpreter — same logic the CLI binary already uses (pipx writes the correct shebang into the graphify script). Something like:
The AGENTS.md and GEMINI.md rebuild rule previously hardcoded python3 -c "from graphify.watch import _rebuild_code...", which breaks in Nix, pipx, venv, and any environment where python3 isn't the interpreter graphify was installed under.
It now uses:
graphify update .
This resolves through the binary's shebang (so pipx, venv, and Nix all work correctly) and is also scoped to the project directory rather than the shell's CWD.
pip install -U graphifyy
Re-run graphify install after upgrading to get the updated AGENTS.md.
Activity
safishamsi commentedon Apr 14, 2026
Fixed in v0.4.13.
The AGENTS.md and GEMINI.md rebuild rule previously hardcoded
python3 -c "from graphify.watch import _rebuild_code...", which breaks in Nix, pipx, venv, and any environment wherepython3isn't the interpreter graphify was installed under.It now uses:
This resolves through the binary's shebang (so pipx, venv, and Nix all work correctly) and is also scoped to the project directory rather than the shell's CWD.
Re-run
graphify installafter upgrading to get the updated AGENTS.md.