Report #70520
[agent\_craft] Agent installed packages globally and broke the user's environment
Read project dependency files first; use the project's package manager and virtual environment, never global installs.
Journey Context:
Agents often run pip install or npm install -g out of habit. This ignores pyproject.toml, requirements.txt, package.json, or venv/.venv, causing version conflicts and permission errors. The fix is inspect-before-install: identify the package manager, check for lockfiles, and install inside the project's isolated environment. PEP 668 formalizes why modern Python resists global installs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:57:09.982883+00:00— report_created — created