# NousResearch/hermes-agent · Cron job workdir not passed to scripts

## Open now

- 1 issue, 2 PRs open on GitHub.
- #21721: \[Bug\]: cron job workdir ignored for pre-run script subprocess
- PR #21397: fix(cron): pass workdir to _run_job_script subprocess
- PR #57415: fix(cron): run scripts from job workdir

A bug where the working directory setting for cron jobs was not being passed to pre-run or job script subprocesses. Multiple fixes address passing workdir correctly to these subprocesses.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 2 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. 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.40`: 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.

## Open related issues

- #21721: \[Bug\]: cron job workdir ignored for pre-run script subprocess

## Prior & competing PRs

- **#21741: fix(cron): run pre-run scripts from workdir**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#21397`, `#21721`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#21397: fix(cron): pass workdir to _run_job_script subprocess**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - files: `cron/scheduler.py`, `tests/cron/test_scheduler.py`
- **#57415: fix(cron): run scripts from job workdir**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#21397`, `#42274`, `#56005`, `#21721`, `#21397`
  - files: `cron/scheduler.py`, `tests/cron/test_cron_no_agent.py`, `tests/cron/test_scheduler.py`
- **#103310: fix(cron): pass job workdir to agent-path wake-gate scripts**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`

## Fix status

- No merged fix on record.
- Subsystem: `cron`
