deepwork-reconcile
Rebuild state.json from events.jsonl — full replay with hash-chain validation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rebuild state.json from events.jsonl — full replay with hash-chain validation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | deepwork-reconcile |
| description | Rebuild state.json from events.jsonl — full replay with hash-chain validation |
| allowed-tools | ["Bash","Read","Glob"] |
Rebuild the active session's state.json from its event log (events.jsonl) using a full hash-chain replay.
When to invoke:
frontmatter-gate emits EVENT_HEAD_MISMATCH or STATE_DIVERGENCEstate.json is suspected corrupt or has been manually editedstate.json and events.jsonl out of syncGlob: ${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/*/state.json
If no file is found, report "No active deepwork session" and stop.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/state-transition.sh" replay \
--state-file "${CLAUDE_PROJECT_DIR:-$(pwd -P)}/.claude/deepwork/<instance-id>/state.json"
The replay subcommand:
events.jsonl from the same directory as state.jsonstate.json with the reduced statestate_integrity_hash and event_headDisplay the reconciliation report verbatim. It includes:
event_head hashIf the command exits non-zero:
state.json was not overwrittenOn a clean reconciliation, report: "Reconcile complete — state.json rebuilt from N events, hash chain valid."
Lightweight single-gate amendment for execute mode — spawns MICRO-TEAM (CRITIC + 1 specialist) for re-verdict without full deepwork re-run
View execute-mode session status — phase, plan_hash, drift, change_log, test results, 3-dimension verdict table, rollback log, discoveries
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