deepwork-execute-status
View execute-mode session status — phase, plan_hash, drift, change_log, test results, 3-dimension verdict table, rollback log, discoveries
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
View execute-mode session status — phase, plan_hash, drift, change_log, test results, 3-dimension verdict table, rollback log, discoveries
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Lightweight single-gate amendment for execute mode — spawns MICRO-TEAM (CRITIC + 1 specialist) for re-verdict without full deepwork re-run
Run a deepwork session: research/design convergence (default) or plan execution (--mode execute). Design mode spawns a 5-archetype oppositional team and delivers an approved plan. Execute mode drives faithful implementation of an approved plan via role-asymmetric agents.
View deepwork session status — phase, team, bar verdicts, proposals, guardrails
End an active deepwork session — graceful per-teammate shutdown, archives state, and restores settings. CLI auto-cleans team dirs at session end. Works for both mid-flight abort and post-HALT cleanup.
Karpathy-style recap of deepwork history — reads DEEPWORK_WIKI.md Overview and the last 3 log entries, outputs 30-50 plain-text words
Add, remove, or list written-bar criteria for the active deepwork session
| name | deepwork-execute-status |
| description | View execute-mode session status — phase, plan_hash, drift, change_log, test results, 3-dimension verdict table, rollback log, discoveries |
| allowed-tools | ["Read(${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/**)","Glob","TaskList"] |
Display the current status of the active execute-mode deepwork session.
Glob: ${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/*/state.json
If no files are found, report "no deepwork session is currently active" and stop. If multiple are found, identify the execute-mode instance by state.json.execute.phase being non-null and not "halt". If none has execute mode active, report "no execute-mode session is currently active" and stop.
state.json. Display a header summary:| Instance ID | Goal | Execute Phase | Team |
|---|---|---|---|
<id> | <goal> | <execute.phase> | <team_name> |
Display Execute Core State:
goalexecute.phaseexecute.plan_refexecute.plan_hashexecute.plan_drift_detected — if true, display DRIFT DETECTED — resolve via /deepwork-execute-amend before proceedingstarted_atlast_updatedDisplay Authorization Flags (flat fields under execute):
| Flag | Value |
|---|---|
execute.authorized_push | <value> |
execute.authorized_force_push | <value> |
execute.authorized_prod_deploy | <value> |
execute.authorized_local_destructive | <value> |
execute.secret_scan_waived | <value> |
If all flags are absent, display "(not yet set — SETUP incomplete)".
Display Written Bar (bar[]):
| ID | Criterion | Verdict | Categorical Ban | Evidence Required |
|---|
Or "(not yet populated)" if empty.
Display Change Log (execute.change_log[]). For each entry:
| Entry ID | Plan Section | Files Touched | PA | EG | RA | Critic Verdict |
|---|
Where PA/EG/RA come from critic_dimensions.PA, critic_dimensions.EG, critic_dimensions.RA (show "pending" if absent). Display "(no changes yet)" if empty.
Display Scope Amendments (execute.scope_amendments[]):
| SA ID | Gate ID | Amendment File | Reason | Approved At |
|---|
Or "(none)" if empty.
Display Rollback Log (execute.rollback_log[]):
| Entry ID | Gate ID | Reason | Rolled Back At |
|---|
Or "(none)" if empty.
Display Test Manifest (execute.test_manifest[]). For each entry:
| Source File | Command | Last Result | Last Run At |
|---|
Read test-results.jsonl from the instance directory if present. For each manifest entry, match the most recent test-results.jsonl record whose covering_files[0] equals the entry's source_file. Show the matched record's exit_code (pass/fail) and timestamp in Last Result and Last Run At. Truncate test_command to ~40 chars for display. Display "(not yet populated)" if execute.test_manifest is empty.
Display Environment Attestations (execute.env_attestations[]):
| Env | Status | Attested At | Attested By |
|---|
Or "(not yet attested)" if empty.
Call TaskList to get live task status. Display tasks grouped by status (in_progress, pending, completed) with owner and metadata.bar_id where available.
Display Recent Discoveries (last 5 entries from discoveries.jsonl):
| Discovery ID | Type | Detected By | Proposed Outcome | Resolution |
|---|
Read discoveries.jsonl as newline-delimited JSON. Show "(none)" if file absent or empty. Show resolution as "(open)" if null or absent.
Read the last 50 lines of ${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/<id>/log.md and display as Recent Activity.
If execute.plan_drift_detected is true, close with a highlighted notice:
PLAN DRIFT DETECTED
Plan hash stored in state does not match plan_ref on disk.
Run /deepwork-execute-amend <gate-id> to re-verdict the affected gate before resuming.
Format everything as a clean, readable dashboard. Use markdown tables; keep output scannable.