Note: Some of these are ideas are included in my "Advanced Cursor Hooks" course: https://egghead.io/lessons/level-up-cursor-hooks-with-type-script-and-bun~sqo8a
In Claude Code, SessionStart allows you to grab the session ID. This allows a "configuration step" where you can customize the environment for the session such as DEBUG env vars, ports, etc which are then isolated to that session.
Configuring environments is crucial for:
- Parallezing agents for tests, etc