Socratic duel run

From rp1-run/rp1 · View interactive version

Socratic duel run is an AI agent skill from the GitHub repository rp1-run/rp1. Run Socratic Duel through two participant subagents while the launcher only coordinates and reports.

How to use this skill

Skill file

Socratic Duel Run

§ROLE: Subagent-only Socratic Duel launcher.

§OBJ

§BOUNDARY

§CTX

STATE-MACHINE

stateDiagram-v2
    [*] --> preparing
    preparing --> invalidated : invalid_input
    preparing --> waiting_for_participant : agents_launched
    waiting_for_participant --> debating : participants_active
    waiting_for_participant --> closing : terminal_seen
    waiting_for_participant --> invalidated : orchestration_failure
    debating --> debating : participant_turn
    debating --> closing : terminal_seen
    debating --> invalidated : orchestration_failure
    closing --> completed : accepted_or_dissent_or_timeout
    closing --> invalidated : validation_failed
    completed --> [*]
    invalidated --> [*]

§EMIT

Launcher state entry:

rp1 agent-tools emit --harness $CURRENT_HOST \
  --workflow socratic-duel-run \
  --type status_change \
  --run-id {RUN_ID} \
  --step {CURRENT_STATE} \
  --data '{"status":"running","target":"{TARGET_PATH}","topic":"{EFFECTIVE_TOPIC}"}'

Launch progress:

rp1 agent-tools emit --harness $CURRENT_HOST \
  --workflow socratic-duel-run \
  --type status_change \
  --run-id {RUN_ID} \
  --step preparing \
  --unit orchestrator:launch \
  --data '{"status":"running","event":"launching_participants","target":"{TARGET_PATH}","topic":"{EFFECTIVE_TOPIC}"}'

Waiting progress:

rp1 agent-tools emit --harness $CURRENT_HOST \
  --workflow socratic-duel-run \
  --type status_change \
  --run-id {RUN_ID} \
  --step waiting_for_participant \
  --unit orchestrator:waiting \
  --data '{"status":"waiting","event":"waiting_for_participant_closure","target":"{TARGET_PATH}","topic":"{EFFECTIVE_TOPIC}"}'

Orchestration failure only:

rp1 agent-tools emit --harness $CURRENT_HOST \
  --workflow socratic-duel-run \
  --type status_change \
  --run-id {RUN_ID} \
  --step invalidated \
  --close-run \
  --unit orchestrator:waiting \
  --data '{"status":"failed","outcome":"INVALIDATED","message":"{failure_reason}","target":"{TARGET_PATH}","topic":"{EFFECTIVE_TOPIC}"}'

§PROC

  1. preparing
  1. launch participants

{% dispatch_agent "rp1-base:socratic-duel-participant", background %}

RUN_ID={RUN_ID}

TARGET_PATH={TARGET_PATH}

TOPIC={EFFECTIVE_TOPIC}

PARTICIPANT_NAME=Socratic Duel Participant A

MODEL_ID={MODEL_ID}

WORK_ROOT={workRoot}

CODE_ROOT={codeRoot}

WORKFLOW=socratic-duel-run

{% enddispatch_agent %}

{% dispatch_agent "rp1-base:socratic-duel-participant", background %}

RUN_ID={RUN_ID}

TARGET_PATH={TARGET_PATH}

TOPIC={EFFECTIVE_TOPIC}

PARTICIPANT_NAME=Socratic Duel Participant B

MODEL_ID={MODEL_ID}

WORK_ROOT={workRoot}

CODE_ROOT={codeRoot}

WORKFLOW=socratic-duel-run

{% enddispatch_agent %}

  1. waiting_for_participant
  1. report

§OUT

## Socratic Duel Run Complete

**Outcome**: {terminal_outcome}
**Debate Artifact**: `{debate_path}`
**Duel ID**: `{duel_id}`
**Participants**: Socratic Duel Participant A, Socratic Duel Participant B
**Closure**: Participant-owned

§DONT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.