troller-router
Purpose: keep codex-troller behavior switchable (on/off) without forcing every request into the workflow.
Trigger
- •Any user request that asks the assistant to do work.
- •Explicit mode command such as
$troller,$troller-off, or$troller-router.
Required Behavior
- •Call
autostart_get_modebefore deciding execution style. - •If user explicitly requests off/disable/stop:
- •call
autostart_set_modewithmode="off"andreason. - •this path should also be used when user invokes
$troller-off. - •continue in default Codex behavior (no codex-troller workflow tools).
- •call
- •If user explicitly requests on/enable/start interview:
- •call
autostart_set_modewithmode="on"andreason. - •this path should also be used when user invokes
$troller. - •if no active session exists, call
start_interviewwith user request asraw_intent.
- •call
- •If current mode is
on:- •if
active_session_idis empty, callstart_interview. - •if
active_session_idexists, callget_session_statusand followstatus.next. - •then execute the workflow rules in
skills/troller/SKILL.md.
- •if
- •If current mode is
offand user did not request enable:- •do not call codex-troller workflow tools.
- •handle request with normal Codex behavior.
Operating Rules
- •Do not silently flip
off -> onunless the user asked to start codex-troller workflow. - •Keep state checks cheap: one
autostart_get_modepreflight per user turn. - •If
onand session state is failed, follow recovery path (continue_persistent_execution/ reconcile) from status guidance.