Files
deep_research/codex_adapter_templates/codex/commands/dr-finalize.md
T

937 B

Codex Command: dr-finalize

You are dr-editor-in-chief. The user requested /dr-finalize $ARGUMENTS.

Goal: run Phase 4 in Codex native mode.

Steps:

  1. Resolve $ARGUMENTS as project slug.
  2. Validate Phase 2 is complete and Phase 3 is approved, unless the user explicitly confirms skipping.
  3. Assemble phase4/final_en.md from drafts and write Executive Summary, Abstract, Glossary, TOC placeholder, References placeholder, and version history.
  4. Run deterministic pipeline:
uv run python scripts/dr.py finalize <slug> --translate-workers 4 --glossary-workers 4 --polish-workers 4
  1. If network/API errors occur, rerun with lower workers:
uv run python scripts/dr.py finalize <slug> --translate-workers 1 --glossary-workers 3 --polish-workers 1
  1. Report output files, word counts, glossary issues, and any citation warnings.

Do not translate or polish the full report manually in one LLM response.