# NousResearch/hermes-agent · PM runtime site-packages missing from kernel PYTHONPATH

## Open now

- Nothing open on GitHub.

A bug where package-manager installs strip the runtime site-packages directory from the kernel's PYTHONPATH, causing third-party imports to fail in execute_code. Several fixes attempt to preserve or restore PM runtime dependencies for the bundled kernel.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #126172. Verify it addresses your case.
- **Recommended:** read PR #126172 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-126172`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #124049: \[Bug\]: execute_code has no third-party imports on PM installs — runtime site-packages is stripped from the kernel PYTHONPATH and never restored

## Prior & competing PRs

- **#126172: fix(pm): package-manager installs keep features, deps and diagnostics across updates (salvage #124060, #124246, #124446, #124656)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_bootstrap.py`, `hermes_cli/_early_recovery.py`, `hermes_cli/doctor.py`, `hermes_cli/doctor_platform.py`, `hermes_cli/main_install_repair.py`, `hermes_cli/source_build.py`, `pm/cli.py`, `pm/environment.py`, `pm/environments.py`, `pm/index_config.py`, `tests/e2e/core/upgrade/handoff/_handoff.py`, `tests/e2e/core/upgrade/hosts/test_permissions.py`, `tests/e2e/core/upgrade/network/test_mirrors.py`, `tests/e2e/core/upgrade/pm/test_configured_features.py`, `tests/e2e/core/upgrade/pm/test_interpreter_hygiene.py`, `tests/e2e/core/upgrade/pm/test_stamps_and_doctor.py`, `tests/hermes_cli/test_doctor_web_dashboard_import.py`, `tests/hermes_cli/test_update_missing_configured_deps.py`, `tests/pm/test_environment_build.py`, `tests/pm/test_install_state_permissions.py` (+2 more)
- **#124060: fix(execute-code): preserve PM runtime dependencies for own kernel**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#122954`, `#124049`
- **#124734: fix(tools): re-append PM runtime site-packages to the bundled kernel child's PYTHONPATH (fixes #124049)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#124049`, `#126172`, `#124060`

## Fix status

- Merged to main in PR #126172 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-28`.
- Subsystem: `environments`
