hooks-session-start-hook
Pass
Audited by Gen Agent Trust Hub on Mar 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: Generates a bash script at
scripts/claude-session-start.shor.claude/hooks/session-start.shdesigned to automate project initialization tasks such as dependency installation and test verification. - [EXTERNAL_DOWNLOADS]: Triggers downloads from official package registries by invoking standard, well-known package managers including npm, yarn, pnpm, bun, poetry, pip, cargo, go, bundler, maven, and gradle.
- [COMMAND_EXECUTION]: Modifies the project's
.claude/settings.jsonconfiguration file to register the hook and sets execution permissions on the generated script usingchmod +x. - [COMMAND_EXECUTION]: Performs an automated verification step by executing the newly created script to ensure the environment is correctly configured.
Audit Metadata