1Install-time AI-agent control hijack evidence:
17* pi-cohort's profile-scoped user dir (userDirOld), so each pi profile
18* gets its own personas instead of sharing the global ~/.agents. Symlinks
19* give live dev-edit and refresh on install; non-symlink files are left.
⋯
21* Migration: pi-cohort discovers BOTH getAgentDir()/agents and the legacy
22* global ~/.agents, and ~/.agents wins on name collisions. Older versions of
23* this package symlinked into ~/.agents, so on a user install we remove any
24* stale ~/.agents/<name>.md symlinks that point into a pi-gauntlet package;
25* otherwise they would shadow the new profile-scoped install.
⋯
31*/
32import { readdirSync, symlinkSync, unlinkSync, mkdirSync, existsSync, lstatSync, copyFileSync, re