Agent Skills
Multi Turn Operator Skill
Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.
Canonical source: web/content/agent-skills/agentclash-multi-turn-operator/SKILL.md
Markdown export: /docs-md/agent-skills/agentclash-multi-turn-operator
Use This Skill When
Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.
Full SKILL.md
markdown
1---
2name: agentclash-multi-turn-operator
3description: Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.
4metadata:
5 agentclash.role: multi-turn
6 agentclash.version: "1"
7 agentclash.requires_cli: "true"
8---
9
10# AgentClash Multi-Turn Operator
11
12## Purpose
13Operate human takeover phases in multi-turn challenge packs: detect when a run agent awaits operator input and submit the next user message so the eval can continue.
14Also record human scores for run agent turns (calibration reviews) and votes for arena tasks.
15
16## Use When
17- A multi_turn pack includes a `human` phase in its user simulator manifest.
18- CLI or UI shows a run agent waiting for human input mid-run.
19- An operator must reply as the end user during live eval observation.
20- An operator must score a turn or select the winner of an arena task.
21
22## Do Not Use When
23- The pack is single-turn or fully scripted/LLM-simulated, and the task is a human turn — no human turns exist.
24- The run has not started — use `agentclash-eval-runner` first.
25- The task is authoring multi-turn pack YAML — see `/docs-md/challenge-packs/multi-turn` and challenge-pack skills.
26
27## Inputs Needed
28- Workspace ID and run ID.
29- Run agent ID (from `agentclash run agents <runId> --json`).
30- Human message text for the awaiting turn.
31- Pack must use `execution_mode: multi_turn` with a human phase.
32
33## Environment
34```bash
35export AGENTCLASH_API_URL="https://api.agentclash.dev"
36agentclash workspace use <WORKSPACE_ID>
37agentclash run get <RUN_ID> --json
38agentclash run agents <RUN_ID> --json
39```
40
41## Procedure
421. Confirm the run is `running` and the target run agent exists.
432. Check `agentclash run turn status <runAgentId> --run <runId>`.
443. If `awaiting_human` is true, read `turn_index`, `phase_id`, and optional `prompt_hint`.
454. Submit the operator message with `agentclash run turn submit`.
465. Re-check status or follow run events until the agent completes the turn.
47
48## Commands
49```bash
50agentclash run turn status <RUN_AGENT_ID> --run <RUN_ID>
51agentclash run turn status <RUN_AGENT_ID> --run <RUN_ID> --json
52
53agentclash run turn submit <RUN_AGENT_ID> --run <RUN_ID> --message "I still want a full refund, not store credit."
54agentclash run turn submit <RUN_AGENT_ID> --run <RUN_ID> --message "..." --json
55```
56
57API paths (for debugging):
58- Status: `GET /v1/workspaces/{ws}/runs/{run}/run-agents/{runAgent}/turns/status`
59- Submit: `POST /v1/workspaces/{ws}/runs/{run}/run-agents/{runAgent}/turns` with `{"message":"..."}`
60
61Structured status fields:
62- `awaiting_human` — boolean
63- `turn_index` — current turn number when awaiting
64- `phase_id` — manifest phase identifier
65- `prompt_hint` — optional operator guidance from the pack
66
67## Expected Output
68- Status with no wait: `Awaiting human: no`
69- Status when blocked: `Awaiting human: yes` plus turn index and phase
70- Submit success: `Human turn submitted` (human) or `{"status":"submitted"}` (JSON)
71
72## Failure Modes
73- Missing `--run` → both commands require `--run <RUN_ID>`.
74- Missing `--message` on submit → required non-empty string.
75- Agent not awaiting human → API may reject submit; check status first.
76- Wrong run agent ID → list agents on the run before submitting.
77
78## Calibration Reviews and Arena Votes
79
80Use the workspace of the run agent or arena task. Use a turn index of 0 or more and a score from 1 to 5. The server keeps two decimal places of the score.
81
82```bash
83agentclash calibration create --run-agent <RUN_AGENT_ID> --turn 0 --score 4.5
84agentclash calibration list
85agentclash calibration list --json --query '.items[] | select(.run_agent_id == "<RUN_AGENT_ID>")'
86```
87
88The server returns the 100 most recent reviews at most. The query selects reviews from those results.
89
90List the pending tasks and use one of the two winner flags. You can give one `--rubric-score key=value` flag for each rubric key.
91
92```bash
93agentclash arena tasks
94agentclash arena vote <TASK_ID> --winner left --rubric-score recovery=4.5
95```
96
97The server returns up to 20 tasks. If the task is not in the list, give the run agent UUID of the winner with `--winner-run-agent`.
98
99```bash
100agentclash arena vote <TASK_ID> --winner-run-agent <RUN_AGENT_ID>
101```
102
103If the API returns `arena_task_not_pending`, the CLI exits with code 1. Use `agentclash arena tasks` to see the current list.
104
105- No CLI command deletes a calibration review or an arena vote. Record one only when the operator gives the score or the winner.
106- If `calibration create` exits `75`, run `agentclash calibration list` before a retry. The first request can have recorded the review, and a retry records a second review.
107- One vote completes an arena task. If `arena vote` exits `75`, the server can have recorded the first vote. Then the task is not in the pending list. A retry with `--winner` exits `64`, and a retry with `--winner-run-agent` exits `1` with `arena_task_not_pending`.
108
109## Safety Notes
110- Operator messages become part of the eval transcript — avoid real customer PII.
111- Human turns affect scoring and calibration; confirm message intent with the operator when ambiguous.
112
113## Report Back Format
114```text
115Run: <run_id>
116Run agent: <run_agent_id> (<label>)
117Awaiting human: <yes/no>
118Turn index: <n or n/a>
119Phase: <phase_id or n/a>
120Message submitted: <yes/no>
121Prompt hint: <summary or n/a>
122Next: agentclash run events <run_id>
123```
124
125## Related Skills
126- `agentclash-hub`
127- `agentclash-eval-runner`
128- `agentclash-scorecard-reader`
129- `agentclash-challenge-pack-planner`
130
131## Related Docs
132- `/docs-md/challenge-packs/multi-turn`
133- `/docs-md/getting-started/first-eval`
134- `/docs-md/reference/cli`