[FEATURE] Allow Claude Code to display messages from startup hooks before first user turn
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I have a startup hook whose results I want displayed to me whenever I open Claude Code, before my first user turn. At present, this is not possible; log messages from startup hooks are hidden from the user, and output is part of context that can only show up as user-visible after the user's first turn.
Proposed Solution
If an instruction in CLAUDE.md or a startup hook asks for the agent to show some output to the user before their first turn, then it does so.
If you're concerned about polluting sessions in an annoying way by accident, you could bound the length of such messages, or provide an easy way for the user to disable this functionality. Or even locate the instruction that led to the output so the user can remove it. I don't think these precautions are necessary but would understand if you do.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗