co-scientist-run
Goal:
- Start one Co-Scientist run from Claude Code and then continue with the canonical pipeline.
Expected input:
- one run directory such as
runs/test1 - or one compatibility config path such as
runs/test1/config.yaml
Execution steps:
-
Resolve the run directory or compatibility config path relative to the repository root when the user gives a relative path.
-
Run:
python -m tools.host.claude_project_cli run <run-target> --skill co-scientist-pipeline -
Read the emitted handoff artifact:
runs/<run_id>/state/HOST_AGENT_HANDOFF.json
-
Read the CLI JSON result and the run-local dashboard receipt artifacts:
runs/<run_id>/dashboard/LINKS.mdruns/<run_id>/dashboard/LINKS.json
-
If the CLI JSON contains
dashboardLinks:- If
dashboard.statusisrunning, returndashboardLinks.dashboardas the primary dashboard URL and include the deep links. - If
dashboard.statusisstarting, immediately run:
python -m tools.host.claude_project_cli dashboard <run-dir>- Read the refreshed CLI JSON result plus
runs/<run_id>/dashboard/LINKS.md. - If
runtime.statusis nowrunning, return the refreshedlinks.dashboardURL as the primary dashboard URL and include the deep links. - If
runtime.statusis stillstarting, tell the user that the dashboard is still booting, point them toruns/<run_id>/dashboard/LINKS.md, and include the retry command:
/co-scientist-dashboard <run-dir> - If
-
Open the canonical workflow and shared contracts:
skills/co-scientist-pipeline/SKILL.mdskills/shared-references/artifact-contract.mdskills/shared-references/state-contract.mdskills/shared-references/integration-contract.mdskills/shared-references/execution-modes.mdskills/shared-references/schema-index.md
-
Continue execution from the canonical repository-local skills tree instead of inventing a parallel flow. If the refreshed routing plan returns
run_configuration, executeresearch-configand validateresearch_plan/RESEARCH_PLAN.jsonbefore any generation work. -
After each major phase write, run:
python -m tools.validation.contract_validation runs/<run_id> --skill co-scientist-pipeline
Rules:
- Read execution semantics from repository-local
SKILL.mdfiles and dynamic context from canonical artifacts. - Use
runs/<run_id>/state/PIPELINE_STATE.jsonandCURRENT_STAGE.jsonas the authoritative resume state. - The first active stage may be
Configurationrather thanGeneration; do not skip it when the routing plan requiresrun_configuration. - If the effective run policy is
iteration_policy = completion_drivenandhuman_checkpoint = auto, do not ask whether to continue after each evolution round. Keep running until a real terminal route, checkpoint boundary, or blocking validator/safety state is reached. - If you must stop before convergence or a terminal route, tell the user the run is paused, current convergence has not been reached, persisted state is resumable, and the next recommended action is continue evolution through resume or an explicit continue request.
- Treat
skills/as canonical and.claude/skills/as the Claude Code entry surface. - Treat
runs/<run_id>/dashboard/LINKS.mdas the human-readable dashboard receipt andruns/<run_id>/dashboard/LINKS.jsonas the machine-readable receipt.
Scan to join WeChat group