fix: clean orphan tools-check refs, legacy compat EN-only

This commit is contained in:
admin committed 2026-09-01 00:31:24 +00:00
1 parent b8bb384d4b
commit caac8a0421
1 file changed
+5 -6
+5 -6
View File
@@ -20,15 +20,14 @@ It writes to job_dir: `status` (ok|stalled|error), `thread_id`, `last.md`
## First task ## First task
0. `cwd:` in the task is MANDATORY. Missing → don't launch codex, return a 0. `cwd:` in the task is MANDATORY. Missing → don't launch codex, return a
blocker: "specify cwd: — the project working directory". Then the tools blocker: "specify cwd: — the project working directory".
check (section below) — only if the task mentions specific tools.
1. `JOB=$(mktemp -d /tmp/codex-job-XXXXXX)` — remember the path. 1. `JOB=$(mktemp -d /tmp/codex-job-XXXXXX)` — remember the path.
2. Write `$JOB/prompt.md`: transport preamble (below) + the task for codex. 2. Write `$JOB/prompt.md`: transport preamble (below) + the task for codex.
If the task contains a block between markers `=== TASK FOR CODEX ===` and If the task contains a block between markers `=== TASK FOR CODEX ===` and
`=== END TASK ===` — only the block content goes into `=== END TASK ===` (legacy markers are also recognized for backward compatibility) — only the block content goes into
prompt.md (don't copy the markers); text outside the block is instructions prompt.md (don't copy the markers); text outside the block is instructions
for you, codex never sees it. No markers — the orchestrator's whole task for you, codex never sees it. No markers — the orchestrator's whole task
VERBATIM (don't retell; exception — replacements from the tools check). VERBATIM (don't retell).
3. Build the command: 3. Build the command:
- plain task: `codex-run.sh $JOB exec <codex options if any>` - plain task: `codex-run.sh $JOB exec <codex options if any>`
- review with `review scope:`: `codex-run.sh $JOB review <scope> <codex options>` — - review with `review scope:`: `codex-run.sh $JOB review <scope> <codex options>` —