Skip to content

빠른 참조

이 장은 모든 CLI command, variable, YAML option을 한곳에 모읍니다. 긴 설명 없이 필요한 사실만 제공합니다. 무엇이 필요한지 알고 있고 syntax만 빠르게 확인하고 싶을 때 사용하세요.


Command설명
archon workflow list사용 가능한 모든 workflow 나열
archon workflow list --jsonmachine-readable JSON output
archon workflow run <name> "<prompt>"workflow 실행
archon workflow run <name> --branch <name> "<prompt>"명시적 브랜치로 실행
archon workflow run <name> --no-worktree "<prompt>"live checkout에서 실행(isolation 없음)
archon workflow run <name> --cwd /path "<prompt>"특정 디렉터리를 대상으로 실행
archon workflow status활성 workflow run 상태 표시
archon workflow resume <run-id>실패한 workflow run 재개
archon workflow abandon <run-id>terminal 상태가 아닌 workflow run 포기
archon workflow cleanup [days]오래된 workflow run record 삭제(기본: 7일)
Command설명
archon isolation list모든 활성 worktree 나열
archon isolation cleanup오래된 worktree 제거(7일 초과)
archon isolation cleanup <days>N일보다 오래된 worktree 제거
archon isolation cleanup --mergedmain에 merge된 branch의 worktree 제거
archon isolation cleanup --merged --include-closed닫힌(abandoned) PR의 worktree도 제거
Command설명
archon complete <branch>worktree, local branch, remote branch 제거
archon complete <branch> --forceuncommitted-change check 건너뛰기
Command설명
archon validate workflows모든 workflow definition 검증
archon validate workflows <name>단일 workflow 검증
archon validate workflows <name> --jsonmachine-readable validation output
archon validate commands모든 command file 검증
archon validate commands <name>단일 command 검증
Terminal window
archon version

variable은 command body와 workflow prompt: field에서 runtime에 치환됩니다.

Variable사용 위치포함하는 값
$ARGUMENTSCommands, promptscommand에 전달된 모든 argument를 하나의 string으로
$1, $2, $3Commands, prompts첫 번째, 두 번째, 세 번째 positional argument
$ARTIFACTS_DIRCommands, promptsworkflow run의 artifact directory 절대 경로
$WORKFLOW_IDCommands, prompts현재 workflow run ID
$BASE_BRANCHCommands, promptsbase git branch(자동 감지 또는 worktree.baseBranch로 설정)
$DOCS_DIRCommands, prompts문서 디렉터리 경로(기본: docs/)
$<nodeId>.outputDAG when: condition, downstream prompt: field완료된 node의 text output

예시:

Terminal window
# Pass a module name to a command
archon workflow run my-workflow "auth"
# $ARGUMENTS = "auth", $1 = "auth"
# Multi-argument
archon workflow run my-workflow "auth refresh-tokens"
# $ARGUMENTS = "auth refresh-tokens", $1 = "auth", $2 = "refresh-tokens"
# Reference a node's output in a condition
- id: implement
command: implement-changes
when: "$classify.output.type == 'BUG'"

Field필수Type설명
namestringarchon workflow list에서 workflow 식별
descriptionstring목록에 표시되고 router가 사용
nodesarrayDAG node(아래 Node Options 참조)
provider아니요string등록된 provider identifier(예: claude, codex). 기본: claude
model아니요string모든 node의 model(sonnet, opus, haiku 또는 full model ID)
modelReasoningEffort아니요stringCodex only: minimal | low | medium | high | xhigh
webSearchMode아니요stringCodex only: disabled | cached | live
additionalDirectories아니요string[]AI가 접근할 수 있는 추가 디렉터리

모든 node는 다음 base field를 공유합니다.

Field필수Type설명
idstring고유 node identifier. depends_on$nodeId.output에서 사용
command다음 중 하나string.archon/commands/에 있는 command file 이름
prompt다음 중 하나stringinline AI instructions
bash다음 중 하나stringshell script(AI 없이 실행, stdout은 $nodeId.output으로 capture)
loop다음 중 하나objectloop configuration(아래 Loop Options 참조)
depends_on아니요string[]이 node가 실행되기 전 완료되어야 하는 node ID
when아니요stringcondition expression. false면 node skip
trigger_rule아니요stringmultiple upstream이 있을 때 join semantics(Trigger Rules 참조)
provider아니요stringnode별 provider override(등록된 provider)
model아니요stringnode별 model override
context아니요fresh | sharedsession context. fresh는 새 conversation, shared는 이전 node에서 상속
output_format아니요JSON Schema이 node의 structured JSON output 강제
allowed_tools아니요string[]사용 가능한 tool을 이 목록으로 제한(Claude only)
denied_tools아니요string[]이 node context에서 특정 tool 제거(Claude only)
idle_timeout아니요numbernode별 idle timeout, millisecond 단위(기본: 5분)
retry아니요objecttransient failure retry configuration(Retry Options 참조)
hooks아니요objectSDK hook callback(Claude only, Hook Schema 참조)
mcp아니요stringMCP server config JSON file 경로(Claude only)
skills아니요string[]이 node context에 미리 로드할 skill 이름(Claude only)

bash node timeout: bash node의 timeout field는 milliseconds 단위입니다(기본: 120000). 초 단위인 hook timeout과 다릅니다.

동작
all_success모든 upstream node가 성공한 경우에만 실행(기본값)
one_successupstream node 중 하나 이상 성공하면 실행
none_failed_min_one_success실패한 upstream이 없고 하나 이상 성공하면 실행
all_done결과와 관계없이 모든 upstream node가 완료된 뒤 실행

node 내부의 loop: 아래에 정의합니다.

Field필수Type설명
promptstring각 iteration에서 실행되는 AI instructions
untilstringcompletion signal string. AI output에 포함되면 loop 종료
max_iterationsnumbernode 실패 전 최대 iteration 수
fresh_context아니요boolean각 iteration마다 새 session 시작(기본: false)
until_bash아니요string각 iteration 후 실행되는 shell script. exit 0이면 완료 signal

예시:

- id: refine
loop:
prompt: "Review the current draft and improve it. Output COMPLETE when done."
until: "COMPLETE"
max_iterations: 5

node 내부의 retry: 아래에 정의합니다.

Field필수기본값설명
max_attempts최초 실패 후 retry 횟수(최대: 5)
delay_ms아니요3000초기 delay, millisecond 단위. attempt마다 두 배(1000-60000)
on_error아니요transienttransient는 rate limit/network error retry. all은 fatal error를 제외한 모든 것 retry

Fatal error는 절대 retry하지 않습니다: auth failure, permission error, credit balance exhausted는 retry config와 관계없이 즉시 실패합니다.


hook은 hooks: 아래에 node별로 정의합니다. 전체 예시는 9장을 보세요.

hooks:
PreToolUse:
- matcher: "Write|Edit" # Regex against tool name. Omit to match all.
timeout: 60 # Seconds. Default: 60.
response:
hookSpecificOutput:
hookEventName: PreToolUse
additionalContext: "Verify the file before writing"
permissionDecision: deny # allow | deny | ask
permissionDecisionReason: "Not allowed in this node"
updatedInput: # Override tool arguments
file_path: "/sandbox/out.ts"
PostToolUse:
- matcher: "Read"
response:
hookSpecificOutput:
hookEventName: PostToolUse
additionalContext: "This file is read-only. Do not modify it."
Hook Event실행 시점
PreToolUsetool 실행 전
PostToolUsetool이 성공적으로 완료된 뒤
PostToolUseFailuretool 실패 후
SessionStart / SessionEndsession lifecycle event 발생 시
Stopagent가 멈출 때

~/.archon/
├── config.yaml # Global configuration (non-secrets)
├── archon.db # SQLite database (default; no DATABASE_URL needed)
└── workspaces/
└── <owner>/
└── <repo>/
├── source/ # Git clone or symlink to local path
├── worktrees/ # Per-task git worktrees
├── artifacts/ # Workflow artifacts (never committed)
└── logs/ # Workflow execution logs (JSONL)
.archon/
├── config.yaml # Repo-specific configuration
├── commands/ # Custom command files (*.md)
│ └── my-command.md
└── workflows/ # Custom workflow files (*.yaml)
└── my-workflow.yaml

Bundled defaults — 내장 command와 workflow는 Archon에 포함되어 자동으로 로드됩니다. 같은 이름의 repo-level file은 bundled version을 override합니다. 기본값을 완전히 비활성화하려면:

.archon/config.yaml
defaults:
loadDefaultCommands: false
loadDefaultWorkflows: false

Error가능성 높은 원인해결
Workflow "X" not foundYAML file이 발견되지 않음파일이 .archon/workflows/에 있고 archon workflow list에 표시되는지 확인
Command "X" not foundCommand file 없음.archon/commands/X.md가 있고 archon validate commands X가 통과하는지 확인
Routing unclear — falling back to archon-assistinput과 match되는 workflow 없음명시적 workflow 이름 사용: archon workflow run my-workflow "..."
Worktree already exists for branch X이전 run이 worktree를 남김archon complete X 또는 archon isolation cleanup 실행
Not a git repositoryrepo 밖에서 실행 중먼저 git repo로 cd. workflow와 isolation command에는 git repo가 필요
Model X is not valid for provider Yprovider/model mismatch각 provider가 받는 model이 다릅니다. provider의 isModelCompatible rule을 확인하세요. Claude는 sonnet, opus, haiku, claude-*를 받고 Codex는 다른 model을 받습니다.
$BASE_BRANCH referenced but could not be detectedbase branch가 설정되지 않았고 auto-detection 실패.archon/config.yamlworktree.baseBranch를 설정하거나 main/master가 있는지 확인
Workflow hangs with no outputnode idle timeout 도달node의 idle_timeout을 늘림(milliseconds)

Archon이 찾은 항목 보기:

Terminal window
archon workflow list # Are your workflows loaded?
archon validate workflows # Any YAML errors?
archon isolation list # Any stale worktrees?

verbose logging 활성화:

Terminal window
archon --verbose workflow run my-workflow "..."

execution log 확인 — 각 run은 JSONL log를 씁니다.

~/.archon/workspaces/<owner>/<repo>/logs/

debugging 단순화를 위해 isolation 없이 실행:

Terminal window
archon workflow run my-workflow --no-worktree "..."

workflow에 넣기 전에 command 직접 테스트:

Terminal window
archon workflow run archon-assist "/command-invoke my-command some-arg"

전체 가이드를 모두 다뤘습니다. mental model부터 hook, 이 reference까지 살펴봤습니다. 무언가를 빠르게 찾아봐야 할 때 이 페이지로 돌아오면 됩니다.