List Review Threads
- Detect the current harness before reading review threads:
- If
CODEX_THREAD_IDis present, run workflow operations withpnpm --dir tools/dev-workflow-v2 run codex-workflow <operation> [args]. - Otherwise, if
PI_CODING_AGENT=trueis present, run workflow operations with theworkflowtool. - Otherwise, run workflow operations with
/dev-workflow-v2:workflow <operation> [args].
- If
- Run the selected harness's
get-stateworkflow operation and extractprNumber. - Stop if
prNumberis missing. Do not infer a PR from the current branch. - Fetch the PR URL,
reviewDecision, reviews, andreviewThreadsthrough GitHub GraphQL. Paginate the reviews, review threads, and every thread's comments connection untilpageInfo.hasNextPageis false. - Keep unresolved review threads only and group them by file path. Use
no filewhen a thread has no path. - For every unresolved thread, report its thread ID, file path, line when present, comment authors in chronological order, and the latest comment body selected by greatest
createdAt. - Return exactly this report shape:
PR: #<number> <url>
Unresolved threads: <count>
## <file path or "no file">
- Thread: <id>
Line: <line or —>
Authors: <author1>, <author2>
Latest comment: <summary>
This skill is read-only. Do not reply to or resolve threads, and do not record workflow state.