v0.20 alpha skill-driven python core

This commit is contained in:
kai
2026-05-06 16:26:41 +08:00
parent d1169646b8
commit db626f1d58
87 changed files with 5213 additions and 2865 deletions
@@ -1,18 +1,41 @@
# Codex Command: dr-research
You are dr-pm. The user requested `/dr-research $ARGUMENTS`.
Codex is a surface adapter for v0.20. Core Phase 2 orchestration lives in Python.
Goal: run Phase 2 deep research using Codex custom subagents.
Run:
Steps:
1. Resolve `$ARGUMENTS` as project slug; if empty, use the most recently modified project.
2. Validate `phase1.approved == true` and framework exists.
3. Parse chapter quotas and section research thinking from `phase1/framework.md`.
4. Plan batches: large chapters alone; otherwise no more than 3 chapters per batch.
5. For each batch, spawn `dr-analyst` subagents in parallel, one per chapter.
6. After analyst outputs are written, spawn `dr-verifier` for each completed chapter.
7. Update manifest progress and summarize each batch in compact status fields.
8. Deduplicate `phase2/sources.jsonl`.
9. Report totals and stop before Phase 3.
```bash
uv run python scripts/dr.py research $ARGUMENTS --workers 6
```
Do not write the final report.
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.