📚 Encyclopedia

Tools & Workflow · updated 2026-10-13

Shell and process gotchas for agent sessions on the desktop

bashpkillpythongjshttp-serverbackground-jobs

Small traps hit repeatedly by Claude sessions working in ~/dev/justinahampton on the desktop (VictusPop). Each one cost a failed run or a misleading result.

Killing processes

Background jobs

Local web servers

Python

JavaScript without Node

Node is not on PATH in headless sessions (it lives under nvm: ~/.nvm/versions/node/v24.19.0/bin), and some runs found no Node at all. gjs -m file.mjs (GNOME JavaScript, always installed) is a working ES-module runtime: print(), ARGV, imports.gi.GLib / gi://GLib for file I/O. Good for running a page's DOM-free model in batch jobs on all cores. Quick syntax check of a browser file: gjs -c "new Function(<file text>)".

PATH in headless sessions

php, ffmpeg, ffprobe live in ~/bin and Node under nvm; a headless run must export PATH=$HOME/bin:$HOME/.nvm/versions/node/v24.19.0/bin:$PATH itself.

Display

The X display number is not fixed (:1, :2 and :3 have all been seen); check echo $DISPLAY or ps -C Xorg -o args= before relying on one.

See also

Linked from

Sources: justinahampton memory (fun-freetime, freetime-pebble, freetime-orrery, 3d-subdomain, 3d-create-templates)