pi: change directories mid-session

♠ Today I learned : pi 0.82.1 cannot change its working directory mid-session. The interactive shell syntax looks tempting, but ! and !! run commands in a child process. cd ends with that process; Pi keeps the session&rsquo;s original cwd. There is no built-in /cd either: % pi --version 0.82.1 % docs="$(brew --prefix pi-coding-agent)/libexec/lib/node_modules/@earendil-works/pi-coding-agent/docs" %…