Vet Session Task
Surface the current session task and evaluate its clarity and completion status.
Phase 1: Resolve Task State
Goal: Locate and read the session state file.
Actions:
- Find the most recent
*.vetted.jsonfile in~/.claude/projects/$(echo "$PWD" | tr '/' '-')/(use the file with the most recent modification time) - If no state file exists, report "No task is being tracked in this session" and stop
- Read the file and extract
task,updated_at, andmodified_files(if present) - Display the tracked task clearly to the user
Phase 2: Clarity Check
Goal: Determine whether the task has unambiguous completion criteria.
Actions:
- Evaluate whether the task is specific enough to define a concrete delivery checklist
- If the task is vague or ambiguous, use the
AskUserQuestiontool to ask the user to clarify before proceeding - Do not continue to Phase 3 until the task is clear
Phase 3: Completion Check
Goal: Assess whether the task is complete based on the conversation so far.
Actions:
- If complete: confirm what was done and append
<verified>Fully Vetted.</verified> - If incomplete: list what remains undone and identify the next step (do not mark verified)
- If indeterminate (discussion or planning only): state that and skip verification