Skip to content

getProcessCwd

getProcessCwd(): string

Defined in: packages/core/src/utils/systemUtils.ts:225

The raw process working directory, ignoring INIT_CWD. getCurrentWorkDir prefers npm’s INIT_CWD (correct for a CLI invoked via an npm bin), but that leaks into long-lived subprocesses (e.g. an ACP agent spawned by an IDE), so server entry points that get their real workspace from the protocol should use this instead.

string