Documentation
¶
Overview ¶
Package procscan discovers live `claude` sessions and the account each is bound to, by reading process environments. On macOS 26 `ps -Eww` prints the environment of same-user processes (verified on the target machine), which exposes CLAUDE_CONFIG_DIR.
A claude process with no CLAUDE_CONFIG_DIR in its environment is using the canonical ~/.claude dir, i.e. acct-00 (this is how plain `claude` sessions are attributed).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountByConfigDir ¶
CountByConfigDir counts sessions whose ConfigDir matches configDir. The empty/default account (acct-00) is matched by both an empty ConfigDir and one equal to defaultDir (~/.claude), since launching acct-00 via a mirror sets CLAUDE_CONFIG_DIR=~/.claude while plain `claude` leaves it unset.