Skip to content
Back to skills

Gdd Route Omp

ASecurity

Launch a detached oh-my-pi/OMP print-mode job so omp -p survives the dispatching session. For long headless tasks or a turn killed midway, set a timeout, poll runner status, inspect the NDJSON event log and resume from the saved session ID. Not for tmux-agent-control.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
ai-agentsbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add wxxb789/hoa --skill gdd-route-omp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gdd Route Omp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gdd Route Omp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wxxb789-gdd-route-omp/badge)](https://www.skillsdirectory.com/skills/wxxb789-gdd-route-omp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gdd-route-omp
description: >-
  Launch a detached oh-my-pi/OMP print-mode job so omp -p survives the dispatching session. For long
  headless tasks or a turn killed midway, set a timeout, poll runner status, inspect the NDJSON
  event log and resume from the saved session ID. Not for tmux-agent-control.
metadata:
  revision: "7"
  areas: "software-development,work-management"
  targets: "pi"
  summary: "detached runner for long `omp -p` runs; polled completion, session-id recovery (requires skill `gdd`)"
  summary_zh: "脱离会话的 runner 跑 `omp -p` 长任务;轮询完成、按 session id 恢复(需要 skill `gdd`)"
  kind: "entry"
---

# 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](../gdd/references/transport.md). Use its runner, not a bare background job.

## Dispatch

- GDD selects OMP by default when no route is configured; pass `--agent omp` for standalone
  dispatch. `OMP_BIN` overrides 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.sh` sets `GDD_AGENT=omp` and forwards to the shared
  runner; `OMP_RUN_SH` can override it. The legacy runner `--backend` is ignored with a
  warning; it does not select a supervisor.

```text
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](../gdd/references/troubleshooting.md).

## Observe and accept

1. Poll runner `status` at turn boundaries; use bounded `tail` for event progress, not raw
   NDJSON or process-name matching. Budget time for all child work; serialize heavy gates on
   constrained hosts.
2. Require the last assistant `message_end.stopReason` to be present and not `error`,
   `aborted`, or `length`. Read `answer.md` and 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.
3. 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.

Files in this skill

  • SKILL.md3.5 KB
  • scripts/omp-run.sh1.5 KB
  • scripts/route.py533 B
  • scripts/tests/fixtures/omp.fail.ndjson3.9 KB
  • scripts/tests/fixtures/omp.ok.ndjson4.3 KB
  • scripts/tests/test_omp_route.py1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.