소크라테스식 자문자답 - ultrathink 심층 분석 후 brainstorm 에이전트와 Q&A로 정제
소크라테스식 자문자답을 통해 문제를 심층 분석하고 정제된 결론을 도출합니다.
/socratic <question_or_problem>
/socratic "인공지능의 윤리적 한계는 어디까지인가?"
| Argument | Required | Description |
|---|---|---|
| question | Yes | 심층 분석할 질문 또는 문제 |
┌─────────────────────────────────────────────────────────────┐
│ SOCRATIC SYSTEM ARCHITECTURE │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ SOCRATIC-ORCHESTRATOR │ │
│ │ (컨텍스트 영속성 & 루프 제어) │ │
│ │ │ │
│ │ ┌─────────────────────────────────────────────────┐ │ │
│ │ │ STATE │ │ │
│ │ │ - qa_history: QAEntry[] │ │ │
│ │ │ - current_answer: Answer │ │ │
│ │ │ - satisfaction_state: Evaluation │ │ │
│ │ │ - score_history: number[] │ │ │
│ │ └─────────────────────────────────────────────────┘ │ │
│ │ │ │ │
│ │ ┌─────────────┴─────────────┐ │ │
│ │ ▼ ▼ │ │
│ │ ┌─────────────────┐ ┌─────────────────┐ │ │
│ │ │ SOCRATIC-THINKER│◄─────►│SOCRATIC-QUESTION│ │ │
│ │ │ (ultrathink) │ Q&A │ (brainstorm) │ │ │
│ │ │ │ Loop │ │ │ │
│ │ │ • 깊은 분석 │ │ • 5차원 평가 │ │ │
│ │ │ • 보완 답변 │ │ • 후속 질문 │ │ │
│ │ └─────────────────┘ └─────────────────┘ │ │
│ │ │ │
│ └───────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ SOCRATIC SELF-REFINING FLOW │
├─────────────────────────────────────────────────────────────┤
│ │
│ Step 1: Orchestrator 실행 │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Task(socratic-orchestrator) │ │
│ │ - 상태 초기화 │ │
│ │ - Q&A 루프 관리 │ │
│ │ - 컨텍스트 브릿징 │ │
│ └──────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ Step 2: Initial Analysis (Orchestrator 내부) │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Thinker: ultrathink 모드 │ │
│ │ - 문제의 본질 파악 │ │
│ │ - 다각도 분석 │ │
│ │ - 잠재적 맹점 식별 │ │
│ │ - 초기 가설 수립 │ │
│ └──────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ Step 3: Q&A Loop (Orchestrator가 조율) │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ while (!satisfied && round <= 10): │ │
│ │ │ │
│ │ Questioner: 답변 평가 (5차원) │ │
│ │ │ │ │
│ │ ├─ satisfied? → 종료 │ │
│ │ ├─ stagnation? → 조기 종료 │ │
│ │ └─ 부족? → 후속 질문 생성 │ │
│ │ │ │ │
│ │ ▼ │ │
│ │ Thinker: 보완 답변 (ultrathink) │ │
│ │ │ │ │
│ │ └─ qa_history에 축적 (컨텍스트 영속) │ │
│ │ │ │
│ └──────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ Step 4: Output Routing │
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Standalone Mode │ │ Invoked Mode │ │
│ │ → Report to │ │ → Return to │ │
│ │ User │ │ Calling Agent │ │
│ └─────────────────┘ └─────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘
/socratic 스킬은 단일 진입점으로 오케스트레이터를 호출합니다:
Task(
subagent_type: "philosopher:socratic-orchestrator",
prompt: """
문제: {question}
소크라테스식 자문자답을 수행합니다.
1. ultrathink로 심층 분석
2. Q&A 루프로 정제
3. 품질 만족 시 종료
4. 최종 결과 반환
"""
)
오케스트레이터가 내부적으로:
socratic-thinker 호출 (초기 분석)socratic-questioner 호출 (평가)Questioner는 다음 기준으로 만족 여부를 판단합니다:
| 차원 | 설명 | 가중치 |
|---|---|---|
| 깊이 (Depth) | 근본 원리까지 도달 | 20% |
| 일관성 (Coherence) | 논리적 모순 없음 | 20% |
| 완전성 (Completeness) | 주요 측면 포괄 | 20% |
| 실용성 (Practicality) | 적용 가능한 통찰 | 20% |
| 겸손 (Humility) | 한계 인정 | 20% |
satisfaction_score = (depth + coherence + completeness + practicality + humility) / 5
if satisfaction_score >= 0.8:
terminate with success
elif round >= 10:
terminate with max_rounds
elif stagnation detected (2연속 개선 < 0.05):
terminate with stagnation