docs: update docs for --lean TUI, --session new-id, and hook agent_name#3136
Merged
Conversation
An explicit --session ID that doesn't exist creates a new session with that ID (refs #3119). Update the --session flag description to reflect this.
Clarify that --lean uses a non-alternate-screen render and when it's useful. Add a callout tip in the cli reference (refs #3127).
pre_tool_use and post_tool_use now populate agent_name in the hook Input, matching every other event type. Update the event extra-fields table and add a note explaining what agent_name refers to in multi-agent setups (refs #3110).
The note added in the PR omitted permission_request even though the table above it already lists agent_name for that event. Extend the note to cover all three (refs #3110).
dgageot
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation updates
This PR brings the
/docsdirectory in sync with three PRs merged tomainin the last 36 hours.Changes
--sessionflag description to document that an explicit unknown ID creates a new session instead of failing--leanflag description; added callout tip explaining the non-alternate-screen renderingagent_nametopre_tool_use,post_tool_use, andpermission_requestin the hook event fields table; added explanatory note for multi-agent setupsPRs reviewed and found up to date