NousResearch/hermes-agent

Strip PYTHONPATH leak from tool subprocesses

Cluster 74817 · environments. Data as of

Nothing open on GitHub. Fix merged in #84500. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #84500. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #88182. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address a bug where PYTHONPATH leaks into terminal-tool subprocesses on macOS/Linux, potentially crashing unrelated third-party apps. The fixes selectively strip Hermes-venv or all PYTHONPATH entries from subprocess environments to prevent the leak.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #84500 fix(tools): isolate external project environments (salvage #81201)

    merged to main

    files: tests/tools/test_code_execution_modes.py, tools/code_execution_tool.py

  • #88182 fix(tools): selectively strip Hermes-venv PYTHONPATH from subprocess envs (#74817, #78917 salvage)

    merged to main

    files: contributors/emails/[redacted:email], contributors/emails/[redacted:email], tests/tools/test_local_env_blocklist.py, tools/code_execution_tool.py, tools/environments/local.py

2 PRs closed without merging

From the close comments: done elsewhere 1 · merged via another change 1

  • #74951 fix(tools): strip PYTHONPATH from subprocess env to prevent leak (#74817) · done elsewhere → #88182, #74817
  • #78917 fix(tools): selectively strip Hermes-venv PYTHONPATH from subprocesses (#74817) · merged via another change → 7a2ad9a, #88182, #84500, #61028, #82581
Closed issues · 1
  • Closed#74817PYTHONPATH leaks into terminal-tool subprocesses on macOS/Linux, can crash unrelated third-party apps
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.40: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
environments
Merged PRs
#84500, #88182
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
17 Aug 2026

For your agent

The same facts, typed.