gdd-route-omp
Run long OMP print-mode jobs through GDD's shared detached runner. Install both skills. For detachment, timeouts, cleanup, state and artifact formats, see GDD transport. Use its runner, not a bare background job.
Dispatch
- GDD selects OMP by default when no route is configured; pass
--agent ompfor standalone dispatch.OMP_BINoverrides the executable on PATH. Use a native executable on Windows for multiline prompts. Set an explicit model and compatible thinking effort when they must be reproducible. The route forwards--profile, model, thinking, and the explicit resume ID; the prompt is last. Results use prompted JSON, not a native schema flag. - The adapter selects print mode, JSON events and non-interactive approval (
yolo). Launch only with operator authority, an isolated worktree, bounded permissions and independent gates. Agent output is not authorization to publish or alter shared state. - The optional POSIX
scripts/omp-run.shsetsGDD_AGENT=ompand forwards to the shared runner;OMP_RUN_SHcan override it. The legacy runner--backendis ignored with a warning; it does not select a supervisor.
uv run ../gdd/scripts/agent_run.py start --agent omp --name SLUG --prompt FILE --cwd DIR --max-time DURATION
uv run ../gdd/scripts/agent_run.py status SLUG
Only if a script command fails (for example uv is not found), read
the runner troubleshooting reference.
Observe and accept
- Poll runner
statusat turn boundaries; use boundedtailfor event progress, not raw NDJSON or process-name matching. Budget time for all child work; serialize heavy gates on constrained hosts. - Require the last assistant
message_end.stopReasonto be present and noterror,aborted, orlength. Readanswer.mdand the result; exit zero alone cannot prove completion, especially for empty, truncated or still-waiting answers. Require actual gate exit codes; a background verifier may die at runner cleanup. Re-run the repo gate yourself. - On
ECONNREFUSED, check whether operator configuration or logs confirm an endpoint restart. If confirmed, retry once after recovery; if it fails again, report or select an authorized fallback rather than retrying indefinitely. Do not infer a model defect.
Recover
Use runner list or status to distinguish a live run from a stale one and recover its
recorded session_id. Start a new named runner invocation with --agent omp and
--resume <id>; the prompt should state what remains in the same interrupted stage.
Do not use implicit last-session selection or TTY-only restoration for headless recovery.
For interactive steering, use the installed CLI's interactive resume on that ID only after
the headless process has stopped. Never attach two writers to one session.
