From caac8a0421a2ff4d23e32282a75edd84dfaa2520 Mon Sep 17 00:00:00 2001 From: Evgeny Gamov Date: Tue, 1 Sep 2026 00:31:24 +0000 Subject: [PATCH] fix: clean orphan tools-check refs, legacy compat EN-only --- agents/codex.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/agents/codex.md b/agents/codex.md index eb5a974..c19a3cd 100644 --- a/agents/codex.md +++ b/agents/codex.md @@ -20,15 +20,14 @@ It writes to job_dir: `status` (ok|stalled|error), `thread_id`, `last.md` ## First task 0. `cwd:` in the task is MANDATORY. Missing → don't launch codex, return a - blocker: "specify cwd: — the project working directory". Then the tools - check (section below) — only if the task mentions specific tools. + blocker: "specify cwd: — the project working directory". 1. `JOB=$(mktemp -d /tmp/codex-job-XXXXXX)` — remember the path. 2. Write `$JOB/prompt.md`: transport preamble (below) + the task for codex. If the task contains a block between markers `=== TASK FOR CODEX ===` and - `=== END TASK ===` — only the block content goes into - 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 - VERBATIM (don't retell; exception — replacements from the tools check). + `=== 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 + for you, codex never sees it. No markers — the orchestrator's whole task + VERBATIM (don't retell). 3. Build the command: - plain task: `codex-run.sh $JOB exec ` - review with `review scope:`: `codex-run.sh $JOB review ` —