> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dureai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI와 자동화

> Provider 하나에 묶이지 않고 작업을 만들고, 배정하고, 구조화된 결과를 수집합니다.

`dure` CLI는 workspace와 같은 app channel을 사용한다. Orchestration command는
terminal 입력 주변에 지속되는 task와 message identity를 더한다. Dispatch, 완료
결과, heartbeat, escalation, 사람의 decision gate를 서로 구분한다.

CLI를 쓰기 전에 대상 app channel에서 Dure를 한 번 실행해 registry를 만든다.
Dure 안에서 연 terminal은 올바른 channel을 자동으로 상속한다.

## 최소 작업 루프

```sh theme={"system"}
dure orch task-create \
  --title "reconnect diff 리뷰" \
  --spec "동작, 테스트, rollback을 확인하고 발견한 내용만 반환한다."

# t7은 위 command가 출력한 ID로 바꾼다.
dure orch dispatch --task t7 --to review-agent --inject

dure orch check --wait \
  --types worker_done,escalation,decision_gate \
  --timeout 900
```

`task-create`는 작업을 기록할 뿐 provider를 시작하지 않는다. `dispatch --inject`는
등록된 로컬 agent pane에 배정 내용을 입력한다. `--inject`가 없으면 task 배정과
message만 저장된다.

## Headless spawn

Dure는 로컬 자동화를 위한 loopback receipt 기반 spawn API도 제공한다. 요청을
journal에 먼저 기록하므로 crash 뒤에도 timeout을 실패로 추측하지 않고 receipt로
결과를 reconcile할 수 있다. Pane pixel이 아니라 app registry와 receipt를 authority로
사용한다.

## 현재 경계

Mailbox는 하나의 Dure app channel 안에서 로컬로 동작한다. Hosted queue가 아니며
SSH 에이전트는 아직 직접 참여하지 않는다. 한 에이전트의 처리가 필요하면 명시적
수신자를 쓴다. `@all`은 수신자별 acknowledgement를 기록하지 않는다.

자세한 패턴은 [멀티 에이전트 오케스트레이션](/ko/orchestration)에서 확인한다.
