restart

Pass

Audited by Gen Agent Trust Hub on Oct 6, 2026

Risk Level: SAFEPERSISTENCECOMMAND_EXECUTION
Full Analysis
  • [PERSISTENCE]: The scripts/setup-wrapper.sh script modifies shell initialization files (~/.zshrc, ~/.bashrc, or ~/.bash_profile) to include a source command. This installs a claude() shell function wrapper that facilitates automatic session restarts by checking for a marker file in the temporary directory.
  • [COMMAND_EXECUTION]: The scripts/restart.sh script triggers a background process using nohup that executes kill -TERM and kill -KILL commands to terminate the process identified by the CLAUDE_PID environment variable.
  • [DATA_EXPOSURE]: The scripts/restart.sh script copies the session ID and resume command to the system clipboard using the pbcopy utility (on macOS) if the shell wrapper is not detected. This exposes the session identifier to the local system clipboard.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 6, 2026, 08:59 AM