From caffd2b2a679a5e4ba1b8bba6a7c413a2c859541 Mon Sep 17 00:00:00 2001 From: Deep Research System Date: Thu, 7 May 2026 21:14:46 +0800 Subject: [PATCH] v0.20.9 finish root source cleanup --- .../codex/agents/dr-analyst.toml | 15 ----- .../codex/agents/dr-chief-editor.toml | 13 ---- .../codex/agents/dr-editor-in-chief.toml | 13 ---- .../codex/agents/dr-plan.toml | 15 ----- .../codex/agents/dr-pm.toml | 16 ----- .../codex/agents/dr-reporter.toml | 14 ---- .../codex/agents/dr-searcher.toml | 19 ------ .../codex/agents/dr-verifier.toml | 19 ------ .../codex/commands/dr-finalize.md | 17 ----- .../codex/commands/dr-frame.md | 11 --- .../codex/commands/dr-glossary.md | 26 ------- .../codex/commands/dr-init.md | 11 --- .../codex/commands/dr-research.md | 41 ------------ .../codex/commands/dr-review.md | 11 --- .../codex/commands/dr-run.md | 17 ----- .../codex/commands/dr-status.md | 9 --- codex_adapter_templates/codex/config.toml | 67 ------------------- .../regulatory_research.md | 0 .../regulatory_research_cn.md | 0 .../secrets.env.example | 0 20 files changed, 334 deletions(-) delete mode 100644 codex_adapter_templates/codex/agents/dr-analyst.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-chief-editor.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-editor-in-chief.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-plan.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-pm.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-reporter.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-searcher.toml delete mode 100644 codex_adapter_templates/codex/agents/dr-verifier.toml delete mode 100644 codex_adapter_templates/codex/commands/dr-finalize.md delete mode 100644 codex_adapter_templates/codex/commands/dr-frame.md delete mode 100644 codex_adapter_templates/codex/commands/dr-glossary.md delete mode 100644 codex_adapter_templates/codex/commands/dr-init.md delete mode 100644 codex_adapter_templates/codex/commands/dr-research.md delete mode 100644 codex_adapter_templates/codex/commands/dr-review.md delete mode 100644 codex_adapter_templates/codex/commands/dr-run.md delete mode 100644 codex_adapter_templates/codex/commands/dr-status.md delete mode 100644 codex_adapter_templates/codex/config.toml rename regulatory_research.md => src/regulatory_research.md (100%) rename regulatory_research_cn.md => src/regulatory_research_cn.md (100%) rename secrets.env.example => src/secrets.env.example (100%) diff --git a/codex_adapter_templates/codex/agents/dr-analyst.toml b/codex_adapter_templates/codex/agents/dr-analyst.toml deleted file mode 100644 index 7529c38..0000000 --- a/codex_adapter_templates/codex/agents/dr-analyst.toml +++ /dev/null @@ -1,15 +0,0 @@ -name = "dr-analyst" -description = "Compatibility role only. v0.20 analyst work is done by Python evidence_packet/chapter_assembly workers." -model = "zenmux-anthropic/claude-sonnet-4-6" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are a compatibility role only. -Do not write chapter drafts in Codex by default. -Use Python core for analyst work: -- uv run python scripts/dr.py research --execute-packets -- uv run python scripts/dr.py research --build-briefs -- uv run python scripts/dr.py research --assemble-chapters -Formal outputs are Chinese-first; English is allowed only for search/source notes. -""" -nickname_candidates = ["Analyst A", "Analyst B", "Analyst C", "Analyst D"] diff --git a/codex_adapter_templates/codex/agents/dr-chief-editor.toml b/codex_adapter_templates/codex/agents/dr-chief-editor.toml deleted file mode 100644 index 55caac9..0000000 --- a/codex_adapter_templates/codex/agents/dr-chief-editor.toml +++ /dev/null @@ -1,13 +0,0 @@ -name = "dr-chief-editor" -description = "Surface adapter role for optional Phase 3 deep review. Deterministic review lives in Python." -model = "zenmux/google/gemini-3.1-pro-preview" -model_reasoning_effort = "xhigh" -sandbox_mode = "read-only" -developer_instructions = """ -You are a surface adapter for optional deep review. -Default review command: -- uv run python scripts/dr.py review -You may explain or supplement phase3/critique.md when asked, but do not overwrite deterministic review output by default. -Do not enter Phase 4. -""" -nickname_candidates = ["Chief Editor"] diff --git a/codex_adapter_templates/codex/agents/dr-editor-in-chief.toml b/codex_adapter_templates/codex/agents/dr-editor-in-chief.toml deleted file mode 100644 index 93b5b73..0000000 --- a/codex_adapter_templates/codex/agents/dr-editor-in-chief.toml +++ /dev/null @@ -1,13 +0,0 @@ -name = "dr-editor-in-chief" -description = "Surface adapter role for Phase 4. Chinese-native finalization lives in Python." -model = "zenmux-anthropic/claude-opus-4-7" -model_reasoning_effort = "xhigh" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are a surface adapter for Phase 4. -Default finalization command: -- uv run python scripts/dr.py finalize -Do not merge final_en.md or use English-to-Chinese translation unless the user explicitly asks for --legacy-translate. -Do not translate or polish the full report manually in Codex. -""" -nickname_candidates = ["Editor in Chief"] diff --git a/codex_adapter_templates/codex/agents/dr-plan.toml b/codex_adapter_templates/codex/agents/dr-plan.toml deleted file mode 100644 index 240b39d..0000000 --- a/codex_adapter_templates/codex/agents/dr-plan.toml +++ /dev/null @@ -1,15 +0,0 @@ -name = "dr-plan" -description = "Surface adapter role for Phase 1. Core init/frame orchestration lives in Python." -model = "zenmux-anthropic/claude-opus-4-7" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are a surface adapter for Deep Research v0.20. -Do not perform Phase 1 core orchestration in Codex. -Run the Python core: -- uv run python scripts/dr.py init -- uv run python scripts/dr.py frame -You may help interview the user in Chinese before calling init/frame, but generated project files must come from Python core. -Do not spawn subagents for initial scan by default. -""" -nickname_candidates = ["Planner Alpha", "Planner Beta", "Planner Gamma"] diff --git a/codex_adapter_templates/codex/agents/dr-pm.toml b/codex_adapter_templates/codex/agents/dr-pm.toml deleted file mode 100644 index 8cdca84..0000000 --- a/codex_adapter_templates/codex/agents/dr-pm.toml +++ /dev/null @@ -1,16 +0,0 @@ -name = "dr-pm" -description = "Surface adapter role for Phase 2/status. Core batching and concurrency live in Python." -model = "zenmux-anthropic/claude-sonnet-4-6" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are a surface adapter for Deep Research v0.20. -Do not batch chapters or spawn Codex subagents for research. -Run the Python core: -- uv run python scripts/dr.py research --workers 6 -- uv run python scripts/dr.py research --workers 6 --execute-packets -- uv run python scripts/dr.py research --workers 6 --build-briefs -- uv run python scripts/dr.py research --workers 6 --assemble-chapters -Report produced files and error files only. -""" -nickname_candidates = ["PM Alpha", "PM Beta", "PM Gamma"] diff --git a/codex_adapter_templates/codex/agents/dr-reporter.toml b/codex_adapter_templates/codex/agents/dr-reporter.toml deleted file mode 100644 index 4eba862..0000000 --- a/codex_adapter_templates/codex/agents/dr-reporter.toml +++ /dev/null @@ -1,14 +0,0 @@ -name = "dr-reporter" -description = "Report production agent for PDF/DOCX rendering and final output checks." -model = "zenmux-anthropic/claude-sonnet-4-6" -model_reasoning_effort = "medium" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are dr-reporter. -You are an execution-focused report producer. -Use scripts/build_report.py and .opencode/templates/report-template.py to render PDF/DOCX from final_zh_polished.md or the specified Markdown. -Run output hygiene checks and citation checks where available. -Do not change research conclusions. -Do not invent missing references. -""" -nickname_candidates = ["Reporter"] diff --git a/codex_adapter_templates/codex/agents/dr-searcher.toml b/codex_adapter_templates/codex/agents/dr-searcher.toml deleted file mode 100644 index 168cce7..0000000 --- a/codex_adapter_templates/codex/agents/dr-searcher.toml +++ /dev/null @@ -1,19 +0,0 @@ -name = "dr-searcher" -description = "Lightweight source discovery agent for initial scans and targeted source finding." -model = "zenmux-anthropic/claude-haiku-4-5" -model_reasoning_effort = "medium" -sandbox_mode = "read-only" -developer_instructions = """ -You are dr-searcher. -Your job is source discovery only. Do not write project files unless explicitly instructed by the parent. -Load skills: search-strategy and source-quality. -Use the project search gateway before MCP or generic web search: -- literature: uv run python scripts/search.py "" --route scholar --num-results 10 --year-low 2023 -- patents: uv run python scripts/search.py "" --route patents --num-results 10 -- news: uv run python scripts/search.py "" --route news --num-results 10 --time-range m -- general gap-fill: uv run python scripts/search.py "" --route general --num-results 10 -Search English and Chinese keywords, prioritize Tier 1-2 sources, include counter-evidence search terms, report the routes used, and return concise Markdown with URLs/DOIs and source-quality scores. -Do not use Wikipedia as evidence. -Do not fabricate URLs, DOIs, trial IDs, patents, or source ids. -""" -nickname_candidates = ["Searcher A", "Searcher B", "Searcher C", "Searcher D"] diff --git a/codex_adapter_templates/codex/agents/dr-verifier.toml b/codex_adapter_templates/codex/agents/dr-verifier.toml deleted file mode 100644 index 8f1245a..0000000 --- a/codex_adapter_templates/codex/agents/dr-verifier.toml +++ /dev/null @@ -1,19 +0,0 @@ -name = "dr-verifier" -description = "Independent counter-evidence and fact-checking agent for completed chapters." -model = "zenmux/openai/gpt-5.4" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -developer_instructions = """ -You are dr-verifier. -Act as an independent devil's advocate. Do not protect the analyst's conclusion. -Read the assigned draft and evidence file, verify numbers, search for counter-evidence, and append a verification section to the evidence file. -Use the project search gateway before generic web search: -- literature counter-evidence: uv run python scripts/search.py " limitations failed controversy" --route scholar --num-results 10 --year-low 2023 -- patent/IP counter-evidence: uv run python scripts/search.py "" --route patents --num-results 10 -- news/transaction checks: uv run python scripts/search.py "" --route news --num-results 10 --time-range y -Use read-then-rewrite for evidence files. Do not edit chapter drafts. -Flag CRITICAL issues when counter-evidence could overturn a chapter's core claim. -Use Chinese and English searches for China-market claims. -Do not fabricate counter-evidence or sources. -""" -nickname_candidates = ["Verifier A", "Verifier B", "Verifier C"] diff --git a/codex_adapter_templates/codex/commands/dr-finalize.md b/codex_adapter_templates/codex/commands/dr-finalize.md deleted file mode 100644 index 1979767..0000000 --- a/codex_adapter_templates/codex/commands/dr-finalize.md +++ /dev/null @@ -1,17 +0,0 @@ -# Codex Command: dr-finalize - -Codex is a surface adapter for v0.20. Chinese-native finalization is the default. - -Run: - -```bash -uv run python scripts/dr.py finalize $ARGUMENTS -``` - -Legacy English-to-Chinese pipeline is opt-in only: - -```bash -uv run python scripts/dr.py finalize $ARGUMENTS --legacy-translate -``` - -Do not translate or polish the full report manually in one LLM response. diff --git a/codex_adapter_templates/codex/commands/dr-frame.md b/codex_adapter_templates/codex/commands/dr-frame.md deleted file mode 100644 index d78e7dd..0000000 --- a/codex_adapter_templates/codex/commands/dr-frame.md +++ /dev/null @@ -1,11 +0,0 @@ -# Codex Command: dr-frame - -Thin wrapper around the platform-neutral Python core. - -Run: - -```bash -uv run python scripts/dr.py frame $ARGUMENTS -``` - -Stop after writing `phase1/framework.md`; wait for user approval before Phase 2. diff --git a/codex_adapter_templates/codex/commands/dr-glossary.md b/codex_adapter_templates/codex/commands/dr-glossary.md deleted file mode 100644 index d7c7ccc..0000000 --- a/codex_adapter_templates/codex/commands/dr-glossary.md +++ /dev/null @@ -1,26 +0,0 @@ -# Codex Command: dr-glossary - -You are dr-pm. The user requested `/dr-glossary $ARGUMENTS`. - -Goal: run terminology verification in Codex native mode. - -Default command: - -```bash -uv run python scripts/dr.py glossary --workers 4 -``` - -If network or SSL errors occur, rerun with: - -```bash -uv run python scripts/dr.py glossary --workers 3 -``` - -After completion, summarize: -- terms checked -- high/medium/low confidence counts -- spelling errors -- wrong Chinese names -- recommended manual review items - -Do not auto-apply glossary corrections unless the user asks or the pipeline is in Phase 4 finalize. diff --git a/codex_adapter_templates/codex/commands/dr-init.md b/codex_adapter_templates/codex/commands/dr-init.md deleted file mode 100644 index 608040e..0000000 --- a/codex_adapter_templates/codex/commands/dr-init.md +++ /dev/null @@ -1,11 +0,0 @@ -# Codex Command: dr-init - -Thin wrapper around the platform-neutral Python core. - -Run: - -```bash -uv run python scripts/dr.py init $ARGUMENTS -``` - -Stop after initialization. Next step is `dr-frame`. diff --git a/codex_adapter_templates/codex/commands/dr-research.md b/codex_adapter_templates/codex/commands/dr-research.md deleted file mode 100644 index 9452369..0000000 --- a/codex_adapter_templates/codex/commands/dr-research.md +++ /dev/null @@ -1,41 +0,0 @@ -# Codex Command: dr-research - -Codex is a surface adapter for v0.20. Core Phase 2 orchestration lives in Python. - -Run: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 -``` - -Fill packets with model workers: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 --execute-packets -``` - -For low-cost smoke tests where generic fallback is acceptable: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 --execute-packets --allow-search-fallback -``` - -Aggregate packets into chapter briefs: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 --build-briefs -``` - -Assemble Chinese chapter drafts: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 --assemble-chapters -``` - -Preview: - -```bash -uv run python scripts/dr.py research $ARGUMENTS --workers 6 --dry-run -``` - -Do not perform chapter research in the Codex thread. Report the task-card and packet paths created by the CLI. diff --git a/codex_adapter_templates/codex/commands/dr-review.md b/codex_adapter_templates/codex/commands/dr-review.md deleted file mode 100644 index 2dae4b2..0000000 --- a/codex_adapter_templates/codex/commands/dr-review.md +++ /dev/null @@ -1,11 +0,0 @@ -# Codex Command: dr-review - -Thin wrapper around the platform-neutral Python core. - -Run: - -```bash -uv run python scripts/dr.py review $ARGUMENTS -``` - -Stop after writing `phase3/critique.md`; wait for user decision before Phase 4. diff --git a/codex_adapter_templates/codex/commands/dr-run.md b/codex_adapter_templates/codex/commands/dr-run.md deleted file mode 100644 index 8b2c51e..0000000 --- a/codex_adapter_templates/codex/commands/dr-run.md +++ /dev/null @@ -1,17 +0,0 @@ -# Codex Command: dr-run - -Codex is a surface adapter for v0.20. Do not spawn Codex subagents for the core workflow. - -Run the project-owned Python core: - -```bash -uv run python scripts/dr.py run $ARGUMENTS --workers 6 -``` - -For a preview: - -```bash -uv run python scripts/dr.py run $ARGUMENTS --workers 6 --dry-run -``` - -Report only the CLI phase decision, produced files, and next step. diff --git a/codex_adapter_templates/codex/commands/dr-status.md b/codex_adapter_templates/codex/commands/dr-status.md deleted file mode 100644 index e6ea3b1..0000000 --- a/codex_adapter_templates/codex/commands/dr-status.md +++ /dev/null @@ -1,9 +0,0 @@ -# Codex Command: dr-status - -Run the platform-neutral status command: - -```bash -uv run python scripts/dr.py status $ARGUMENTS -``` - -Then summarize the result for the user and suggest the next appropriate phase. diff --git a/codex_adapter_templates/codex/config.toml b/codex_adapter_templates/codex/config.toml deleted file mode 100644 index 46196b0..0000000 --- a/codex_adapter_templates/codex/config.toml +++ /dev/null @@ -1,67 +0,0 @@ -model = "gpt-5.4" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -approval_policy = "never" -project_doc_max_bytes = 65536 -web_search = "live" - -[features] -multi_agent = true - -[agents] -max_threads = 6 -max_depth = 1 - -[profiles.deep-research] -model = "gpt-5.4" -model_reasoning_effort = "high" -sandbox_mode = "workspace-write" -approval_policy = "never" -project_doc_max_bytes = 65536 -web_search = "live" - -[profiles.deep-research-fast] -model = "gpt-5.4-mini" -model_reasoning_effort = "medium" -sandbox_mode = "workspace-write" -approval_policy = "never" -project_doc_max_bytes = 65536 -web_search = "live" - -[profiles.deep-research-review] -model = "gpt-5.4" -model_reasoning_effort = "xhigh" -sandbox_mode = "workspace-write" -approval_policy = "never" -project_doc_max_bytes = 65536 -web_search = "live" - -[mcp_servers.openaiDeveloperDocs] -url = "https://developers.openai.com/mcp" - -[mcp_servers.openaiDeveloperDocs.tools.fetch_openai_doc] -approval_mode = "approve" - -[mcp_servers.tavily] -command = "npx" -args = ["-y", "tavily-mcp@latest"] -env_vars = ["TAVILY_API_KEY"] -enabled = true -required = false - -[mcp_servers.brave_search] -command = "npx" -args = ["-y", "@modelcontextprotocol/server-brave-search"] -env_vars = ["BRAVE_API_KEY"] -enabled = true -required = false - -[mcp_servers.exa] -command = "npx" -args = ["-y", "exa-mcp-server"] -env_vars = ["EXA_API_KEY"] -enabled = true -required = false - -[sandbox_workspace_write] -network_access = true diff --git a/regulatory_research.md b/src/regulatory_research.md similarity index 100% rename from regulatory_research.md rename to src/regulatory_research.md diff --git a/regulatory_research_cn.md b/src/regulatory_research_cn.md similarity index 100% rename from regulatory_research_cn.md rename to src/regulatory_research_cn.md diff --git a/secrets.env.example b/src/secrets.env.example similarity index 100% rename from secrets.env.example rename to src/secrets.env.example