-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
1430 lines (1295 loc) · 67.4 KB
/
Copy pathindex.html
File metadata and controls
1430 lines (1295 loc) · 67.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Orca Mode Studio — design multi-agent orchestration modes (coordinator + Codex/Claude/Grok/Gemini/Hermes workers), export playbooks, install in one command." />
<meta name="theme-color" content="#0b0d12" />
<title>Orca Mode Studio · Multi-agent orchestration modes</title>
<style>
:root {
--bg: #0a0c10;
--bg2: #11151d;
--panel: #151a24;
--panel2: #1a2130;
--line: #2a3344;
--line2: #3a465c;
--text: #eef2fa;
--muted: #93a0b8;
--accent: #7c9cff;
--accent-dim: rgba(124,156,255,.12);
--teal: #5eead4;
--ok: #4ade80;
--warn: #fbbf24;
--radius: 16px;
--font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
--shadow: 0 16px 48px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; }
.bg {
position: fixed; inset: 0; pointer-events: none; z-index: 0;
background:
radial-gradient(ellipse 70% 45% at 15% -5%, rgba(124,156,255,.16), transparent 55%),
radial-gradient(ellipse 50% 35% at 90% 5%, rgba(94,234,212,.08), transparent 50%),
linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
background-size: auto, auto, 44px 44px, 44px 44px;
}
.shell { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 20px 20px 72px; }
/* Top nav */
.topnav {
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
gap: 12px; padding: 10px 0 18px; border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
width: 34px; height: 34px; border-radius: 10px;
background: linear-gradient(145deg, #7c9cff, #5eead4);
display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #0b0d12;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text strong { font-size: 15px; letter-spacing: -.02em; }
.brand-text span { font-size: 11px; color: var(--muted); font-weight: 600; }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-link {
color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
padding: 8px 10px; border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: var(--panel); }
/* Hero */
.hero { padding: 36px 0 8px; }
.eyebrow {
display: inline-flex; align-items: center; gap: 8px;
font-size: 12px; font-weight: 700; color: var(--accent);
background: var(--accent-dim); border: 1px solid rgba(124,156,255,.28);
padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 {
font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.2;
letter-spacing: -.03em; margin: 0 0 14px; max-width: 18em;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-lead {
color: var(--muted); font-size: 1.05rem; line-height: 1.65;
max-width: 52ch; margin: 0 0 20px;
}
.hero-lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn {
border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700;
font-size: 14px; cursor: pointer; background: var(--accent); color: #0b0d12;
text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary {
background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.metrics {
display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 24px;
}
@media (max-width: 800px) { .metrics { grid-template-columns: 1fr 1fr; } }
.metric {
background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px;
}
.metric b { display: block; font-size: 15px; margin-bottom: 4px; }
.metric span { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* Persona / jobs */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 840px) { .grid-3 { grid-template-columns: 1fr; } }
.job {
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
padding: 18px 18px; min-height: 140px;
}
.job .tag {
font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
color: var(--teal); margin-bottom: 8px;
}
.job h3 { margin: 0 0 8px; font-size: 1rem; }
.job p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
/* Mode bar */
.mode-bar {
display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
padding: 12px 14px; margin: 18px 0 8px; border-radius: 14px;
border: 1px solid rgba(124,156,255,.3); background: rgba(124,156,255,.07);
font-size: 13px; color: var(--muted);
}
.mode-bar strong { color: var(--text); }
/* Tabs */
nav.tabs {
display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px;
position: sticky; top: 0; z-index: 20; padding: 10px 0;
background: linear-gradient(var(--bg) 75%, transparent);
}
.tab {
border: 1px solid var(--line); background: var(--panel); color: var(--muted);
border-radius: 999px; padding: 10px 14px; cursor: pointer; font: inherit;
font-weight: 700; font-size: 13px;
}
.tab:hover { color: var(--text); }
.tab.active { color: #0b0d12; background: var(--accent); border-color: var(--accent); }
.panel { display: none; animation: fade .18s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card {
background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
padding: 20px 22px; margin-bottom: 12px; box-shadow: 0 1px 0 rgba(255,255,255,.02);
}
.card h2 { margin: 0 0 10px; font-size: 1.12rem; letter-spacing: -.02em; }
.card h3 { margin: 0 0 8px; font-size: 0.98rem; }
.card p, .card li { color: var(--muted); line-height: 1.65; }
.card strong { color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.box {
border-radius: 12px; border: 1px solid var(--line); padding: 14px 16px; background: var(--bg2);
}
.box.ok { border-color: rgba(74,222,128,.35); }
.box.warn { border-color: rgba(251,191,36,.35); }
.box .title { font-weight: 700; margin-bottom: 6px; color: var(--text); font-size: 14px; }
.flow {
display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
padding: 10px 0 4px;
}
.node {
min-width: 108px; text-align: center; padding: 12px 10px; border-radius: 12px;
border: 1px solid var(--line); background: var(--bg2); font-weight: 700; font-size: 12.5px;
}
.node small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); font-size: 11px; }
.node.coord { border-color: rgba(167,139,250,.55); }
.node.worker { border-color: rgba(56,189,248,.5); }
.node.final { border-color: rgba(94,234,212,.5); }
.arrow { color: var(--muted); font-size: 16px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
label.field .hint { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; line-height: 1.45; }
input[type=text], input[type=number], select, textarea {
width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px;
}
textarea { min-height: 88px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(124,156,255,.35); border-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.preview-title {
font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
color: var(--muted); margin: 16px 0 8px; font-weight: 700;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
display: flex; gap: 10px; align-items: flex-start; padding: 12px 0;
border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.55;
}
.checklist li:last-child { border-bottom: 0; }
.stepnum {
flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--accent-dim);
color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.toast {
position: fixed; bottom: 22px; right: 22px; z-index: 50;
background: #10241a; border: 1px solid rgba(74,222,128,.4); color: var(--ok);
padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
code.inline, .dyn {
font-family: var(--mono); font-size: 12.5px; background: var(--bg);
border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--teal);
}
pre.box {
overflow: auto; color: var(--text); margin: 0; white-space: pre-wrap;
font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
border-radius: 12px; border: 1px solid var(--line); padding: 14px 16px; background: var(--bg2);
}
.callout {
border-left: 3px solid var(--accent); padding: 10px 14px; margin: 12px 0 0;
background: var(--accent-dim); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px;
}
.callout strong { color: var(--text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pill {
font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
}
.pill.hi { color: var(--text); border-color: rgba(124,156,255,.45); background: var(--accent-dim); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; color: var(--text); font-weight: 600; word-break: break-all; }
.section-label {
font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
color: var(--muted); margin: 0 0 10px;
}
#workerPool .box { transition: border-color .15s ease; }
#workerPool .box:has(.w-enable:checked) { border-color: rgba(124,156,255,.45); }
footer {
margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
color: var(--muted); font-size: 12.5px; line-height: 1.55;
display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.link-btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 700;
text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
</style>
</head>
<body>
<div class="bg" aria-hidden="true"></div>
<div class="shell">
<div class="topnav">
<a class="brand" href="#">
<div class="brand-mark">OM</div>
<div class="brand-text">
<strong>Orca Mode Studio</strong>
<span>Multi-agent orchestration modes</span>
</div>
</a>
<div class="top-actions">
<a class="nav-link" href="https://github.com/reallygood83/orca" target="_blank" rel="noopener">GitHub</a>
<a class="nav-link" href="https://github.com/reallygood83/orca/blob/main/%EC%82%AC%EC%9A%A9%EB%B0%A9%EB%B2%95.md" target="_blank" rel="noopener">Docs</a>
<button class="btn secondary" type="button" id="btnCopySite" style="padding:9px 12px;font-size:13px">Copy link</button>
<button class="btn" type="button" id="btnStartBuild" style="padding:9px 14px;font-size:13px">Create mode</button>
</div>
</div>
<header class="hero">
<div class="eyebrow">Product · Local-first · Orca compatible</div>
<h1>여러 AI를 <em>팀</em>으로 운영하는<br/>조율 모드를 설계하세요</h1>
<p class="hero-lead">
<strong>Orca Mode Studio</strong>는 누구나 자신의 multi-agent 워크플로를 정의하고,
플레이북·Quick Command·에이전트 스킬로 내보낼 수 있는 <strong>범용 설계 도구</strong>입니다.
팀장(coordinator) + 실무 풀(Codex / Claude / Grok / Gemini / Hermes 등)을 조합하세요.
설정은 서버에 저장되지 않으며, <strong>사용자 기기 로컬</strong>에 설치됩니다.
</p>
<div class="hero-cta">
<button class="btn" type="button" id="btnHeroBuild">모드 만들기</button>
<button class="btn secondary" type="button" id="btnHeroHow">동작 방식 보기</button>
<button class="btn ghost" type="button" id="btnGoSkill">에이전트 스킬 설치</button>
</div>
</header>
<div class="metrics" aria-label="Product highlights">
<div class="metric"><b>Coordinator + Workers</b><span>역할 분리된 multi-agent 루프</span></div>
<div class="metric"><b>Multi-model pool</b><span>Codex · Claude · Grok · Gemini · Hermes 동시 구성</span></div>
<div class="metric"><b>Local-first</b><span>모드 설정은 사용자 PC에만 저장</span></div>
<div class="metric"><b>Export ready</b><span>Playbook · Quick Command · Skill</span></div>
</div>
<p class="section-label">Who it’s for</p>
<div class="grid-3" style="margin-bottom:8px">
<div class="job">
<div class="tag">Builders</div>
<h3>개인 개발자</h3>
<p>구현·리뷰·조사 에이전트를 나눠 병렬로 돌리고, 결과를 한곳에서 합칩니다.</p>
</div>
<div class="job">
<div class="tag">Teams</div>
<h3>팀 / 조직</h3>
<p>표준 조율 모드를 정의해 온보딩하고, 모델·역할 정책을 공유 가능한 문서로 남깁니다.</p>
</div>
<div class="job">
<div class="tag">Educators</div>
<h3>교육·커뮤니티</h3>
<p>학습자에게 “금지/방치”가 아닌 통제 가능한 AI 협업 루프를 가르칠 때 사용합니다.</p>
</div>
</div>
<div class="mode-bar" id="modeBar" aria-live="polite">
Draft mode:
<span class="pill hi" id="barDisplay">MyMode</span>
<span>Coordinator <strong id="barCoord">Grok</strong></span>
<span>· Workers <strong id="barWorker">—</strong></span>
<span>· Concurrency <strong id="barMax">3</strong></span>
<span>· Path <code class="inline" id="barPath">~/.orca/my-mode/</code></span>
</div>
<nav class="tabs" role="tablist" aria-label="Studio sections">
<button class="tab active" data-tab="concept" type="button">1. Overview</button>
<button class="tab" data-tab="flow" type="button">2. How it works</button>
<button class="tab" data-tab="wizard" type="button">3. Build mode</button>
<button class="tab" data-tab="install" type="button">4. Install pack</button>
<button class="tab" data-tab="skill" type="button">5. Agent skill</button>
</nav>
<!-- 1 Overview -->
<section id="panel-concept" class="panel active">
<div class="card">
<h2>제품이 해결하는 문제</h2>
<p>
AI CLI(Codex, Claude Code, Grok 등)는 강력하지만, 여러 에이전트를 동시에 쓰면
<strong>역할·모델·완료 신호·결과 합치기</strong>가 제각각입니다.
Mode Studio는 Orca orchestration 엔진 위에 올릴 <strong>운영 모드(OS 레이어)</strong>를 설계하게 합니다.
</p>
<div class="pill-row">
<span class="pill">설계 (이 사이트)</span>
<span class="pill">로컬 설치</span>
<span class="pill">Orca에서 실행</span>
</div>
</div>
<div class="compare">
<div class="box ok">
<div class="title">Supervised mode (기본)</div>
<p style="margin:0;color:var(--muted);font-size:14px;line-height:1.55">
Coordinator가 task를 만들고, worker에 <code class="inline">dispatch --inject</code> 한 뒤
<code class="inline">worker_done</code>까지 기다린 다음 FINAL을 작성합니다.
</p>
</div>
<div class="box warn">
<div class="title">Handoff (선택)</div>
<p style="margin:0;color:var(--muted);font-size:14px;line-height:1.55">
다른 에이전트에 소유권을 넘기고 감시를 끊습니다. lifecycle inject를 쓰지 않습니다.
</p>
</div>
</div>
<div class="card" style="margin-top:12px">
<h2>프라이버시 & 배포 모델</h2>
<ul class="checklist">
<li><span class="stepnum">1</span><div><strong>로컬 우선:</strong> 생성한 모드 설정은 각 사용자 기기(<code class="inline">~/.orca/</code>)에 저장됩니다.</div></li>
<li><span class="stepnum">2</span><div><strong>서버 비저장:</strong> 이 사이트는 설정을 업로드하지 않는 정적 스튜디오입니다.</div></li>
<li><span class="stepnum">3</span><div><strong>공유 방식:</strong> 스튜디오 URL 또는 export된 playbook/skill을 공유합니다.</div></li>
</ul>
</div>
</section>
<!-- 2 How -->
<section id="panel-flow" class="panel">
<div class="card">
<h2>실행 루프</h2>
<div class="flow">
<div class="node coord" id="flow-coord">Coordinator<small>계획 · 배정</small></div>
<div class="arrow">→</div>
<div class="node worker" id="flow-worker">Workers<small id="flow-cmd">multi-model pool</small></div>
<div class="arrow">→</div>
<div class="node final" id="flow-final">FINAL<small>합성 · 보고</small></div>
</div>
<p style="margin:12px 0 0">
동시 실행: <strong id="flow-max">3</strong> · Worktree: <strong id="flow-wt">auto</strong>
</p>
</div>
<div class="card">
<h2>예시 명령 (현재 드래프트 반영)</h2>
<pre class="box" id="flowCmdBlock"># Build a mode in tab 3 to preview commands</pre>
<div class="callout">
<strong>핵심:</strong> <code class="inline">dispatch --inject</code> 가 worker에게 완료 보고 규약(preamble)을 전달합니다.
모델은 <code class="inline">dispatch</code>가 아니라 각 worker의 <code class="inline">--command</code>에 지정합니다.
</div>
</div>
</section>
<!-- 3 Build -->
<section id="panel-wizard" class="panel">
<div class="card">
<h2>Build orchestration mode</h2>
<p style="margin-top:0">모드 이름 · coordinator · worker pool · 정책을 정하면 Playbook과 Quick Command가 즉시 생성됩니다.</p>
<div class="callout" style="margin-bottom:14px">
<strong>Worker는 여러 명 가능합니다.</strong>
Codex + Claude + Grok + Gemini + Hermes를 동시에 구성하세요. 각 agent는 별도 터미널로 실행됩니다.
</div>
<div class="row">
<label class="field">
<span>Mode id (folder name)</span>
<input id="modeName" type="text" value="my-mode" autocomplete="off" />
<span class="hint">저장 경로: ~/.orca/<id>/ · 영문 소문자·하이픈</span>
</label>
<label class="field">
<span>Display name</span>
<input id="displayName" type="text" value="MyMode" autocomplete="off" />
<span class="hint">Orca Quick Command 라벨</span>
</label>
</div>
<div class="row">
<label class="field">
<span>Coordination type</span>
<select id="coordination">
<option value="supervised" selected>supervised — wait for worker_done (recommended)</option>
<option value="handoff">handoff — transfer ownership, no inject wait</option>
</select>
</label>
<label class="field">
<span>Coordinator agent</span>
<select id="coord">
<option value="grok" selected>Grok — plan & synthesize</option>
<option value="claude">Claude</option>
<option value="codex">Codex</option>
<option value="gemini">Gemini — multimodal & long context</option>
<option value="hermes">Hermes — persistent agent</option>
<option value="opencode">OpenCode</option>
</select>
</label>
</div>
<div class="row">
<label class="field" style="grid-column:1/-1">
<span>Worker pool (multi-select)</span>
<span class="hint">체크한 에이전트마다 역할·모델 command를 지정합니다. 최소 1명.</span>
</label>
</div>
<div id="workerPool" style="display:flex;flex-direction:column;gap:10px;margin-bottom:14px">
<div class="box" style="padding:12px 14px" data-agent="codex">
<div style="display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:8px">
<label style="display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);cursor:pointer">
<input type="checkbox" class="w-enable" data-agent="codex" checked /> Codex
</label>
<select class="w-role" data-agent="codex" style="width:auto;min-width:160px">
<option value="implement" selected>implement · 코딩</option>
<option value="design">design · UI/UX</option>
<option value="backend-design">backend-design · API/스키마</option>
<option value="fullstack">fullstack · E2E</option>
<option value="review">review · 리뷰만</option>
<option value="research">research · 조사</option>
<option value="test">test · 테스트</option>
<option value="docs">docs · 문서</option>
</select>
<select class="w-preset" data-agent="codex" style="flex:1;min-width:180px">
<option value="codex-sol-xhigh" data-cmd='codex -m gpt-5.6-sol -c model_reasoning_effort="xhigh"' selected>gpt-5.6-sol · xhigh</option>
<option value="codex-56-xhigh" data-cmd='codex -m gpt-5.6 -c model_reasoning_effort="xhigh"'>gpt-5.6 · xhigh</option>
<option value="codex-56-high" data-cmd='codex -m gpt-5.6 -c model_reasoning_effort="high"'>gpt-5.6 · high</option>
<option value="codex-55-xhigh" data-cmd='codex -m gpt-5.5 -c model_reasoning_effort="xhigh"'>gpt-5.5 · xhigh</option>
<option value="codex-default" data-cmd="codex">CLI default</option>
<option value="custom" data-cmd="">Custom</option>
</select>
</div>
<input class="w-cmd" data-agent="codex" type="text" value='codex -m gpt-5.6-sol -c model_reasoning_effort="xhigh"' />
</div>
<div class="box" style="padding:12px 14px" data-agent="claude">
<div style="display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:8px">
<label style="display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);cursor:pointer">
<input type="checkbox" class="w-enable" data-agent="claude" /> Claude
</label>
<select class="w-role" data-agent="claude" style="width:auto;min-width:160px">
<option value="implement">implement · 코딩</option>
<option value="design" selected>design · UI/UX</option>
<option value="backend-design">backend-design · API/스키마</option>
<option value="fullstack">fullstack · E2E</option>
<option value="review">review · 리뷰만</option>
<option value="research">research · 조사</option>
<option value="test">test · 테스트</option>
<option value="docs">docs · 문서</option>
</select>
<select class="w-preset" data-agent="claude" style="flex:1;min-width:180px">
<option value="claude-sonnet-5" data-cmd="claude --model claude-sonnet-5" selected>claude-sonnet-5</option>
<option value="claude-fable-5" data-cmd="claude --model claude-fable-5">claude-fable-5</option>
<option value="claude-opus-48" data-cmd="claude --model claude-opus-4-8">claude-opus-4-8</option>
<option value="claude-sonnet-alias" data-cmd="claude --model sonnet">sonnet alias</option>
<option value="claude-opus-alias" data-cmd="claude --model opus">opus alias</option>
<option value="claude-haiku-45" data-cmd="claude --model claude-haiku-4-5">claude-haiku-4-5</option>
<option value="claude-default" data-cmd="claude">CLI default</option>
<option value="custom" data-cmd="">Custom</option>
</select>
</div>
<input class="w-cmd" data-agent="claude" type="text" value="claude --model claude-sonnet-5" />
</div>
<div class="box" style="padding:12px 14px" data-agent="grok">
<div style="display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:8px">
<label style="display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);cursor:pointer">
<input type="checkbox" class="w-enable" data-agent="grok" /> Grok
</label>
<select class="w-role" data-agent="grok" style="width:auto;min-width:160px">
<option value="implement">implement · 코딩</option>
<option value="design">design · UI/UX</option>
<option value="backend-design" selected>backend-design · API/스키마</option>
<option value="fullstack">fullstack · E2E</option>
<option value="review">review · 리뷰만</option>
<option value="research">research · 조사</option>
<option value="test">test · 테스트</option>
<option value="docs">docs · 문서</option>
</select>
<select class="w-preset" data-agent="grok" style="flex:1;min-width:180px">
<option value="grok-45-xhigh" data-cmd="grok -m grok-4.5 --reasoning-effort xhigh" selected>grok-4.5 · xhigh</option>
<option value="grok-45-high" data-cmd="grok -m grok-4.5 --reasoning-effort high">grok-4.5 · high</option>
<option value="grok-build-xhigh" data-cmd="grok -m grok-build --reasoning-effort xhigh">grok-build · xhigh</option>
<option value="grok-default" data-cmd="grok">CLI default</option>
<option value="custom" data-cmd="">Custom</option>
</select>
</div>
<input class="w-cmd" data-agent="grok" type="text" value="grok -m grok-4.5 --reasoning-effort xhigh" />
</div>
<div class="box" style="padding:12px 14px" data-agent="gemini">
<div style="display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:8px">
<label style="display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);cursor:pointer">
<input type="checkbox" class="w-enable" data-agent="gemini" /> Gemini
</label>
<select class="w-role" data-agent="gemini" style="width:auto;min-width:160px">
<option value="implement">implement · 코딩</option>
<option value="design" selected>design · UI/UX</option>
<option value="backend-design">backend-design · API/스키마</option>
<option value="fullstack">fullstack · E2E</option>
<option value="review">review · 리뷰만</option>
<option value="research">research · 조사</option>
<option value="test">test · 테스트</option>
<option value="docs">docs · 문서</option>
</select>
<select class="w-preset" data-agent="gemini" style="flex:1;min-width:180px">
<option value="gemini-35-flash" data-cmd="gemini -m gemini-3.5-flash" selected>gemini-3.5-flash (GA)</option>
<option value="gemini-31-pro" data-cmd="gemini -m gemini-3.1-pro-preview">gemini-3.1-pro-preview</option>
<option value="gemini-3-flash" data-cmd="gemini -m gemini-3-flash-preview">gemini-3-flash-preview</option>
<option value="gemini-31-flash-lite" data-cmd="gemini -m gemini-3.1-flash-lite-preview">gemini-3.1-flash-lite-preview</option>
<option value="gemini-yolo-35" data-cmd="gemini -m gemini-3.5-flash -y">gemini-3.5-flash · yolo</option>
<option value="gemini-default" data-cmd="gemini">CLI default</option>
<option value="custom" data-cmd="">Custom</option>
</select>
</div>
<input class="w-cmd" data-agent="gemini" type="text" value="gemini -m gemini-3.5-flash" />
</div>
<div class="box" style="padding:12px 14px" data-agent="hermes">
<div style="display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:8px">
<label style="display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text);cursor:pointer">
<input type="checkbox" class="w-enable" data-agent="hermes" /> Hermes
</label>
<select class="w-role" data-agent="hermes" style="width:auto;min-width:160px">
<option value="implement">implement · 코딩</option>
<option value="design">design · UI/UX</option>
<option value="backend-design">backend-design · API/스키마</option>
<option value="fullstack">fullstack · E2E</option>
<option value="review">review · 리뷰만</option>
<option value="research" selected>research · 조사</option>
<option value="test">test · 테스트</option>
<option value="docs">docs · 문서</option>
</select>
<select class="w-preset" data-agent="hermes" style="flex:1;min-width:180px">
<option value="hermes-chat-tui" data-cmd="hermes chat --tui" selected>chat · tui</option>
<option value="hermes-chat-yolo" data-cmd="hermes chat --tui --yolo">chat · tui · yolo</option>
<option value="hermes-chat-cli" data-cmd="hermes chat --cli">chat · cli</option>
<option value="hermes-default" data-cmd="hermes">CLI default</option>
<option value="custom" data-cmd="">Custom</option>
</select>
</div>
<input class="w-cmd" data-agent="hermes" type="text" value="hermes chat --tui" />
</div>
</div>
<div class="row">
<label class="field">
<span>Max concurrent workers</span>
<input id="maxWorkers" type="number" min="1" max="6" value="3" />
</label>
<label class="field">
<span>CLI equivalent (copy)</span>
<input id="cliHint" type="text" readonly value="" />
</label>
</div>
<div class="row" style="display:none" aria-hidden="true">
<input id="workerPreset" type="hidden" value="multi" />
<input id="workerCmd" type="hidden" value="" />
<input id="reviewCmd" type="hidden" value="" />
</div>
<div class="row">
<label class="field">
<span>Worktree policy</span>
<select id="wtPolicy">
<option value="active">Same worktree (active branch)</option>
<option value="isolated">Isolated worktree</option>
<option value="auto" selected>Auto</option>
</select>
</label>
<label class="field">
<span>Triggers (comma-separated)</span>
<input id="triggers" type="text" value="orchestrate, mode, 조율" />
</label>
</div>
<label class="field">
<span>FINAL report sections</span>
<input id="finalSections" type="text" value="Summary, Per-task results, Decisions, Files changed, Risks & next steps" />
</label>
<div class="actions">
<button class="btn" type="button" id="btnDownload">Download pack (.md)</button>
<button class="btn secondary" type="button" id="btnCopyQuick">Copy Quick Command</button>
<button class="btn secondary" type="button" id="btnCopyPlaybook">Copy Playbook</button>
</div>
<div class="preview-title">Quick Command preview</div>
<textarea id="outQuick" readonly></textarea>
<div class="preview-title">Playbook preview</div>
<textarea id="outPlaybook" readonly style="min-height:220px"></textarea>
</div>
</section>
<!-- 4 Install pack -->
<section id="panel-install" class="panel">
<div class="card">
<h2 id="installTitle">Install mode pack</h2>
<p id="installLead"></p>
<dl class="kv" id="installKv"></dl>
<div class="callout" style="margin-top:14px">
<strong>Note:</strong> Downloaded markdown is a guided pack, not a silent one-click OS installer.
Save files under <code class="inline">~/.orca/<mode-id>/</code> and register the Quick Command in Orca.
</div>
</div>
<div class="card">
<h2>Steps</h2>
<ol class="checklist" id="installSteps"></ol>
</div>
<div class="card">
<h2>Shell hints</h2>
<pre class="box" id="installShell"></pre>
<div class="actions" style="margin-top:12px">
<button class="btn secondary" type="button" id="btnCopyShell">Copy shell</button>
</div>
</div>
<div class="card">
<h2>Agent install prompt</h2>
<p style="margin-top:0">Paste into any coding agent to install this draft mode on the local machine.</p>
<pre class="box" id="installAiPrompt" style="min-height:180px"></pre>
<div class="actions" style="margin-top:12px">
<button class="btn secondary" type="button" id="btnCopyAi">Copy agent prompt</button>
</div>
</div>
<div class="card">
<h2>Requirements</h2>
<ul id="installReqs"></ul>
</div>
</section>
<!-- 5 Skill -->
<section id="panel-skill" class="panel">
<div class="card">
<h2>Agent skill: orca-mode-pack</h2>
<p>
브라우저 스튜디오와 같은 목표를 <strong>코딩 에이전트 채팅</strong>에서도 수행하기 위한 스킬입니다.
설치 후 <code class="inline">/orchestration-mode</code> 로 모드를 생성·실행할 수 있습니다.
</p>
<div class="compare" style="margin-top:12px">
<div class="box ok">
<div class="title">Web studio</div>
<p style="margin:0;color:var(--muted);font-size:14px">Visual builder · export · Quick Command</p>
</div>
<div class="box ok">
<div class="title">Agent skill</div>
<p style="margin:0;color:var(--muted);font-size:14px">Chat-driven create/run with REQUEST schema</p>
</div>
</div>
</div>
<div class="card" style="border-color:rgba(124,156,255,.45)">
<h2>One-line install (Mac / Linux / WSL)</h2>
<pre class="box" id="skillOneLiner">curl -fsSL https://orca.teaboard.link/setup-mode-pack.sh | bash</pre>
<div class="actions" style="margin-top:12px">
<button class="btn" type="button" id="btnCopySkillOne">Copy install command</button>
<button class="btn secondary" type="button" id="btnDlSkillMd">Download SKILL.md</button>
<button class="btn secondary" type="button" id="btnDlRequest">Download REQUEST template</button>
</div>
<p style="margin:12px 0 0;color:var(--muted);font-size:13px">
Installs to <code class="inline">~/.agents/skills/orca-mode-pack/</code>
and <code class="inline">~/.orca/studio/generate-pack.sh</code>
</p>
</div>
<div class="card">
<h2>Engine skills (once per machine)</h2>
<pre class="box" id="skillEngine">npx skills add https://github.com/stablyai/orca --skill orchestration
npx skills add https://github.com/stablyai/orca --skill orca-cli</pre>
<div class="actions" style="margin-top:12px">
<button class="btn secondary" type="button" id="btnCopySkillEngine">Copy engine commands</button>
</div>
</div>
<div class="card">
<h2>After install</h2>
<ol class="checklist">
<li><span class="stepnum">1</span><div>Orca → Settings → Experimental → <strong>Orchestration ON</strong></div></li>
<li><span class="stepnum">2</span><div>In an agent session: <code class="inline">/orchestration-mode</code></div></li>
<li><span class="stepnum">3</span><div>Provide coordinator + worker pool (multi-model OK) → generate pack → register Quick Command</div></li>
</ol>
</div>
<div class="card">
<h2>Shareable blurb</h2>
<pre class="box" id="skillShareBlurb">Orca Mode Studio
https://orca.teaboard.link
Create multi-agent modes (Codex + Claude + Grok + Gemini + Hermes).
Optional skill install:
curl -fsSL https://orca.teaboard.link/setup-mode-pack.sh | bash
Then: /orchestration-mode</pre>
<div class="actions" style="margin-top:12px">
<button class="btn secondary" type="button" id="btnCopySkillShare">Copy share text</button>
<button class="btn secondary" type="button" id="btnCopyShare">Copy share text</button>
<button class="btn secondary" type="button" id="btnCopyInstall">Copy skill install</button>
<button class="btn secondary" type="button" id="btnCopyInstallEngine">Copy skill + engine</button>
</div>
</div>
</section>
<footer>
<div>
<strong style="color:var(--text)">Orca Mode Studio</strong><br/>
Local-first mode designer for Orca multi-agent orchestration.<br/>
Not affiliated with Orca trademark owners beyond compatibility.
</div>
<div style="display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start">
<a href="https://github.com/reallygood83/orca" target="_blank" rel="noopener">GitHub</a>
<a href="https://github.com/reallygood83/orca/blob/main/README.md" target="_blank" rel="noopener">README</a>
<a href="https://orca.teaboard.link/setup-mode-pack.sh" target="_blank" rel="noopener">setup-mode-pack.sh</a>
</div>
</footer>
</div>
<span id="conceptModeName" style="display:none"></span>
<div class="toast" id="toast" role="status">Copied</div>
<script>
const $ = (id) => document.getElementById(id);
const labels = { grok: "Grok", claude: "Claude", codex: "Codex", gemini: "Gemini", hermes: "Hermes", opencode: "OpenCode", custom: "Custom" };
const wtLabels = {
active: "지금 폴더에서 (같은 브랜치)",
isolated: "새 worktree에서 독립 작업",
auto: "상황에 맞게 자동",
};
const FIELD_IDS = ["modeName","displayName","coordination","coord","maxWorkers","wtPolicy","triggers","finalSections"];
const ROLE_META = {
implement: {
title: "구현 · 코딩",
duty: "코드 작성·수정, 가능하면 테스트 후 worker_done",
deliverables: "코드, 테스트 결과, filesModified",
constraints: "범위 밖 리팩터 최소화 · 시크릿 금지",
},
design: {
title: "디자인 · UI/UX",
duty: "화면/플로우/컴포넌트·토큰 설계. 시각 계층·접근성·반응형 원칙 문서화. 구현보다 스펙 우선",
deliverables: "와이어/레이아웃 스펙, 컬러·타이포·컴포넌트 목록, 상태(빈/로딩/에러), reportPath",
constraints: "대규모 프로덕션 코드는 명시 요청 시에만 · 브랜드/접근성 존중",
},
"backend-design": {
title: "백엔드 설계 · API/스키마",
duty: "API 계약, 데이터 모델, 인증/권한, 서비스 경계, 시퀀스·에러 모델 설계. 구현보다 설계 산출 우선",
deliverables: "엔드포인트 표/OpenAPI 초안, 스키마, 인증 흐름, 트레이드오프, reportPath",
constraints: "합의 전 대규모 구현 금지 · 기존 스키마 충돌 시 ask",
},
fullstack: {
title: "풀스택 구현",
duty: "프론트+백엔드 E2E 기능 구현. API 계약과 UI를 맞춤",
deliverables: "E2E 동작, API+UI 변경, 테스트, filesModified",
constraints: "계약 변경 시 문서/클라이언트 동시 갱신",
},
review: {
title: "리뷰 전용",
duty: "findings만 보고. 수정 패치 적용 권한 없음",
deliverables: "심각도별 findings, 재현 경로, 권장 조치",
constraints: "파일 수정 금지(명시 제외)",
},
research: {
title: "조사 · 리서치",
duty: "옵션 비교, 근거 수집, 권고안 정리",
deliverables: "조사 요약, 출처, 추천안, reportPath",
constraints: "불필요한 코드 변경 금지",
},
test: {
title: "테스트",
duty: "테스트 작성·실행, 실패 분석, 커버리지 갭 보고",
deliverables: "테스트 결과, 실패 로그 요약, filesModified",
constraints: "프로덕션 로직 무단 변경 금지",
},
docs: {
title: "문서 · 스펙",
duty: "README/설계 노트/가이드 작성",
deliverables: "문서 경로, 목차, 변경 요약",
constraints: "불필요한 코드 리팩터 금지",
},
};
function roleMeta(role) {
return ROLE_META[role] || ROLE_META.implement;
}
function collectWorkers() {
const agents = ["codex", "claude", "grok", "gemini", "hermes"];
const out = [];
agents.forEach((agent) => {
const en = document.querySelector(`.w-enable[data-agent="${agent}"]`);
if (!en || !en.checked) return;
const roleEl = document.querySelector(`.w-role[data-agent="${agent}"]`);
const cmdEl = document.querySelector(`.w-cmd[data-agent="${agent}"]`);
const role = (roleEl && roleEl.value) || "implement";
const command = (cmdEl && cmdEl.value.trim()) || agent;
const meta = roleMeta(role);
out.push({
role,
agent,
command,
ownership: role === "review" ? "review-only" : "edit",
label: (labels[agent] || agent) + " · " + role,
roleTitle: meta.title,
duty: meta.duty,
deliverables: meta.deliverables,
constraints: meta.constraints,
});
});
return out;
}
function wireWorkerPool() {
document.querySelectorAll(".w-preset").forEach((sel) => {
sel.addEventListener("change", () => {
const agent = sel.dataset.agent;
const opt = sel.options[sel.selectedIndex];
if (opt && opt.value !== "custom" && opt.dataset.cmd) {
const cmd = document.querySelector(`.w-cmd[data-agent="${agent}"]`);
if (cmd) cmd.value = opt.dataset.cmd;
}
refresh();
});
});
document.querySelectorAll(".w-enable, .w-role, .w-cmd").forEach((el) => {
el.addEventListener("change", refresh);
el.addEventListener("input", refresh);
});
}
function workerSummary(workers) {
if (!workers.length) return "실무 없음";
return workers.map((w) => (labels[w.agent] || w.agent) + "/" + w.role).join(" + ");
}
function primaryWorker(workers) {
return workers.find((w) => w.role === "implement") || workers[0] || {
agent: "codex",
command: "codex",
role: "implement",
ownership: "edit",
label: "Codex",
};
}
function vals() {
const workers = collectWorkers();
const primary = primaryWorker(workers);
const review = workers.find((w) => w.role === "review");
return {
modeName: ($("modeName").value.trim().toLowerCase().replace(/[^a-z0-9-]/g, "-")) || "my-mode",
displayName: $("displayName").value.trim() || "MyMode",
coordination: ($("coordination") && $("coordination").value) || "supervised",
coord: $("coord").value,
workers,
worker: primary.agent,
workerLabel: workerSummary(workers),
workerCmd: primary.command,
reviewCmd: review ? review.command : "",
maxWorkers: Math.min(6, Math.max(1, Number($("maxWorkers").value) || 3)),
wtPolicy: $("wtPolicy").value,
triggers: $("triggers").value.trim() || "orchestrate",
finalSections: $("finalSections").value.trim() || "요약, 다음 액션",
};
}
function buildCliHint(v) {
let s = `bash "$HOME/.orca/studio/generate-pack.sh" --name ${v.modeName} --display "${v.displayName}" --coord ${v.coord} --max ${v.maxWorkers} --wt ${v.wtPolicy} --coordination ${v.coordination} --triggers '${v.triggers}'`;
v.workers.forEach((w) => {
const cmd = w.command.replace(/'/g, `'\\''`);
s += ` --worker-entry 'role=${w.role}|agent=${w.agent}|cmd=${cmd}'`;
});
return s;
}
function escCmd(cmd) {
return cmd.replace(/'/g, `'\\''`);
}
function wtBlock(v) {
const list = (v.workers && v.workers.length)
? v.workers
: [{ agent: "worker", role: "implement", command: v.workerCmd }];
const examples = list.map((w) =>
`orca terminal create --worktree active --title "${w.agent}-${w.role}" \\
--command '${escCmd(w.command)}' --json
orca terminal wait --terminal <handle> --for tui-idle --timeout-ms 60000 --json
orca orchestration dispatch --task <task_id> --to <handle> --inject --json`
).join("\n\n");
const policy =
v.wtPolicy === "isolated"
? "**기본: 새 worktree** (`--no-parent`) 후 아래처럼 에이전트별 터미널"
: v.wtPolicy === "auto"
? "**자동**: 독립 작업 → 새 worktree / 미커밋·현재 브랜치 → `--worktree active`"
: "**기본: 지금 폴더**에서 실무 AI를 **에이전트마다** 실행";
return `${policy}
실무 팀 (${list.length}명): ${list.map((w) => w.agent + "/" + w.role).join(", ")}
\`\`\`bash
${examples}
\`\`\``;
}
function buildQuick(v) {
const overlay = `.orca/${v.modeName}.md`;
const team = (v.workers || []).map((w) => `${w.agent}/${w.role}:{${w.command}}`).join(" ; ") || v.workerCmd;
const coordBit = v.coordination === "handoff"
? "Coordination=handoff: do NOT inject lifecycle; use terminal/worktree prompt and stop monitoring."
: "Coordination=supervised: task-create + dispatch --inject → check --wait for worker_done. Never full handoff.";
return `${v.displayName} mode (user mode). Read and follow $HOME/.orca/${v.modeName}/PLAYBOOK.md and the orchestration skill. If this project has ${overlay} or .orca/PLAYBOOK.md, also follow it as project overlay. You are ${labels[v.coord]} coordinator: decompose → dispatch a multi-agent worker pool (${v.workerLabel || team}). ${coordBit} Max concurrent: ${v.maxWorkers}. Workers: ${team}. Goal:`;
}
function buildPlaybook(v) {
const trig = v.triggers.split(",").map(s => s.trim()).filter(Boolean).map(s => `\`${s}\``).join(", ");
const wName = v.workerLabel || labels[v.worker] || v.worker;
return `# ${v.displayName} Orchestration Mode (Orca) — Global
${labels[v.coord]} = **coordinator**. Workers = **${wName}**.
When workers finish, the coordinator produces a **FINAL** synthesis.
Mode type: **supervised orchestration** (coordinator waits for worker_done). Not a fire-and-forget handoff.
- 엔진: orchestration 스킬 (\`orca orchestration …\`)
- 이 파일: 그 엔진 위에 얹는 **MyMode 규칙**
- 홈 경로: \`$HOME/.orca/${v.modeName}/\`
---
## 언제 쓰나
사용자가 이렇게 말하면 이 파일을 따릅니다: ${trig}.
---
## 시작 전 확인
\`\`\`bash
orca status --json
orca orchestration task-list --json
command -v ${v.coord} || true
command -v ${v.worker} || true
\`\`\`
Orca 설정 → Experimental → Orchestration 이 켜져 있어야 합니다.
---
## 역할
| 역할 | 에이전트 | 할 일 |
|------|----------|--------|
| **팀장** | ${labels[v.coord]} | 역할별 일 쪼개기, 배정, 대기, FINAL 정리 |
${(v.workers || []).map((w) => {
const m = roleMeta(w.role);
return `| **${m.title} (\`${w.role}\`)** | ${labels[w.agent] || w.agent}<br/>\`${w.command}\`<br/>ownership: ${w.ownership} | ${m.duty}<br/>**산출:** ${m.deliverables}<br/>**제약:** ${m.constraints} |`;
}).join("\n") || `| **실무** | \`${v.workerCmd}\` | worker_done |`}
**실무는 여러 명 가능** (예: Codex=implement + Claude=design + Grok=backend-design). 각 역할마다 별도 터미널·dispatch.
**모델 규칙:** 모델은 worker \`command\` 에만 넣습니다. \`dispatch\` 에 \`--model\` 없음.
**조율 유형:** ${v.coordination}
### 역할 키 안내
- \`implement\` — 코딩 구현
- \`design\` — UI/UX·화면·컴포넌트 설계
- \`backend-design\` — API·스키마·서비스 경계 설계
- \`fullstack\` — E2E 구현