Skip to main content

Module paths

Module paths 

Source
Expand description

Socket, PID file, and log directory path resolution.

Sockets and PID files live under /tmp/agent-procs-<uid>/ to stay within the macOS 103-byte Unix socket path limit. Persistent state (logs, state files) goes to $XDG_STATE_HOME/agent-procs/sessions/<session>/.

Functionsยง

log_dir
pid_path
socket_base_dir
Base directory for sockets and PID files: /tmp/agent-procs-/ Short fixed path to avoid macOS 103-byte socket path limit.
socket_path
state_dir
State directory for persistent data (logs, state.json). Uses $XDG_STATE_HOME, defaults to ~/.local/state/.
state_file