Skip to main content

session_start

Function session_start 

Source
pub fn session_start()
Expand description

The SessionStart hook entry point. Reads CC’s JSON from stdin (bounded), prints a fenced project brief to stdout, and ALWAYS returns cleanly (empty output on any error/garbage/no-history). Never returns Err - a non-zero exit or a Rust error on stdout would pollute the agent context at session start.