InPlanMode

Matches when the agent is in plan mode.

Usage

Source

InPlanMode()

Reads permission_mode from the current event payload; falls back to counting EnterPlanMode vs ExitPlanMode tool uses in the transcript when the payload omits the field.