restart
Pass
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: SAFEPERSISTENCECOMMAND_EXECUTION
Full Analysis
- [PERSISTENCE]: The
scripts/setup-wrapper.shscript modifies shell initialization files (~/.zshrc,~/.bashrc, or~/.bash_profile) to include asourcecommand. This installs aclaude()shell function wrapper that facilitates automatic session restarts by checking for a marker file in the temporary directory. - [COMMAND_EXECUTION]: The
scripts/restart.shscript triggers a background process usingnohupthat executeskill -TERMandkill -KILLcommands to terminate the process identified by theCLAUDE_PIDenvironment variable. - [DATA_EXPOSURE]: The
scripts/restart.shscript copies the session ID and resume command to the system clipboard using thepbcopyutility (on macOS) if the shell wrapper is not detected. This exposes the session identifier to the local system clipboard.
Audit Metadata