Keep orchestrator guidance aligned over long turns by prepending a phase reminder to the latest user message text before the next LLM request.
PHASE_REMINDER constant is composed from PHASE_REMINDER_TEXT (config/constants.ts).createPhaseReminderHook() returns a single experimental.chat.messages.transform handler.'user' role in output.messages,agent === 'orchestrator',SLIM_INTERNAL_INITIATOR_MARKER.text part in that message; replacement is an in-place prefix.SLIM_INTERNAL_INITIATOR_MARKER from ../../utils to avoid feedback loops.messages for last info.role === 'user'.type === 'text'.part.text with PHASE_REMINDER + '\n\n---\n\n'.src/hooks/index.ts and plugin-level hook wiring in src/index.ts.experimental.chat.messages.transform and mutates the outgoing messages payload only.