-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
484 lines (433 loc) · 12.7 KB
/
Copy pathindex.html
File metadata and controls
484 lines (433 loc) · 12.7 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Parallel Agent Worktree Skill</title>
<style>
:root {
--bg: #f7f9fb;
--panel: #ffffff;
--ink: #101114;
--muted: #53606b;
--line: #d8dee6;
--green: #087f5b;
--blue: #1864ab;
--red: #c92a2a;
--yellow: #b7791f;
--shadow: 0 24px 70px rgba(16, 17, 20, 0.12);
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
background:
linear-gradient(90deg, rgba(16, 17, 20, 0.04) 1px, transparent 1px),
linear-gradient(180deg, rgba(16, 17, 20, 0.04) 1px, transparent 1px),
var(--bg);
background-size: 36px 36px;
color: var(--ink);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
display: grid;
place-items: center;
padding: 24px;
}
.frame {
width: min(100%, 1080px);
aspect-ratio: 1 / 1;
background: var(--panel);
border: 1px solid var(--line);
box-shadow: var(--shadow);
padding: 34px;
display: grid;
grid-template-rows: auto auto 1fr auto;
gap: 18px;
}
.header {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 24px;
align-items: end;
padding-bottom: 16px;
border-bottom: 1px solid var(--line);
}
.eyebrow {
margin: 0 0 10px;
color: var(--green);
font: 700 12px/1.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
letter-spacing: 0.14em;
text-transform: uppercase;
}
h1 {
margin: 0;
font-size: 48px;
line-height: 0.98;
font-weight: 800;
letter-spacing: 0;
}
.subhead {
margin: 12px 0 0;
max-width: 42ch;
color: var(--muted);
font-size: 17px;
line-height: 1.35;
}
.status-card {
border-left: 4px solid var(--blue);
padding: 12px 0 12px 16px;
}
.status-label {
margin: 0 0 8px;
color: var(--muted);
font: 700 12px/1.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.status-value {
margin: 0;
font-size: 28px;
line-height: 1.05;
font-weight: 800;
}
.status-note {
margin: 8px 0 0;
color: var(--muted);
font-size: 14px;
line-height: 1.35;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.chip {
border: 1px solid var(--line);
border-radius: 8px;
padding: 7px 10px;
color: var(--ink);
font: 700 12px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
background: #f9fafb;
}
.content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
min-height: 0;
}
.panel {
border: 1px solid var(--line);
padding: 16px;
display: grid;
gap: 12px;
align-content: start;
min-width: 0;
}
.panel.wide {
grid-column: 1 / -1;
grid-template-columns: 1fr 1fr;
align-items: start;
}
.panel-title {
margin: 0;
font: 800 12px/1.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.panel.wide .panel-title {
grid-column: 1 / -1;
}
.metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.metrics.parallel {
grid-template-columns: repeat(4, 1fr);
}
.metric {
border-top: 3px solid var(--green);
padding-top: 10px;
min-width: 0;
}
.metric:nth-child(2) {
border-color: var(--blue);
}
.metric:nth-child(3) {
border-color: var(--yellow);
}
.metric .label {
display: block;
color: var(--muted);
font: 700 11px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.metric .value {
display: block;
margin-top: 8px;
font-size: 23px;
line-height: 1;
font-weight: 800;
letter-spacing: 0;
}
.metric .detail {
display: block;
margin-top: 6px;
color: var(--muted);
font-size: 12px;
line-height: 1.3;
}
.flow {
display: grid;
gap: 8px;
}
.row {
display: grid;
grid-template-columns: 1fr auto;
gap: 12px;
padding-top: 8px;
border-top: 1px solid var(--line);
align-items: baseline;
}
.row:first-child {
padding-top: 0;
border-top: 0;
}
.row .k {
color: var(--muted);
font-size: 14px;
line-height: 1.3;
}
.row .v {
text-align: right;
font: 800 14px/1.2 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.v.green {
color: var(--green);
}
.v.red {
color: var(--red);
}
.code {
margin: 0;
padding: 11px;
border: 1px solid var(--line);
background: #f9fafb;
font: 700 12px/1.42 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
color: var(--ink);
overflow: hidden;
white-space: pre-wrap;
}
.final-stage {
border-left: 4px solid var(--red);
padding: 10px 0 10px 14px;
color: var(--ink);
font-size: 15px;
line-height: 1.35;
font-weight: 700;
}
.logline {
color: var(--muted);
font-size: 14px;
line-height: 1.35;
}
.footer {
display: flex;
justify-content: space-between;
gap: 12px;
padding-top: 14px;
border-top: 1px solid var(--line);
color: var(--muted);
font: 700 12px/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
text-transform: uppercase;
letter-spacing: 0.06em;
}
@media (max-width: 920px) {
.frame {
aspect-ratio: auto;
}
.header,
.content,
.panel.wide,
.metrics {
grid-template-columns: 1fr;
}
h1 {
font-size: 40px;
}
}
</style>
</head>
<body>
<main class="frame">
<section class="header">
<div>
<p class="eyebrow">Agent Skill</p>
<h1>Parallel Agent Tasks<br>Worktree Orchestrator</h1>
<p class="subhead">
Use any agent harness with a CLI after conversion. Kimi is the bundled
sample; experimental Apache-2.0 workflow for isolated worktrees and reviews.
</p>
</div>
<div class="status-card">
<p class="status-label">Operating Model</p>
<p class="status-value">Plan, fan out, verify, integrate</p>
<p class="status-value">Changelog first, merge back last</p>
<p class="status-note">
Interactive tmux workers for steering. Deterministic Python or Bash loops
when backups, conditions, and logs need repeatable execution.
</p>
<p class="status-note">
Every worker leaves a changelog entry or fragment. Accepted work returns to
the starting branch, or the blocker gets a clear report.
</p>
</div>
</section>
<section class="chips">
<span class="chip">uv</span>
<span class="chip">tmux</span>
<span class="chip">any agent CLI</span>
<span class="chip">Kimi sample plan</span>
<span class="chip">experimental</span>
<span class="chip">Apache-2.0</span>
<span class="chip">convert before other CLIs</span>
<span class="chip">git worktree per task</span>
<span class="chip">backup gates</span>
<span class="chip">changelog required</span>
<span class="chip">merge back to start branch</span>
<span class="chip">harness converter</span>
<span class="chip">final validation stage</span>
</section>
<section class="content">
<article class="panel">
<p class="panel-title">Parallel Path</p>
<div class="metrics parallel">
<div class="metric">
<span class="label">Plan</span>
<span class="value">Scope</span>
<span class="detail">owned files and tests</span>
</div>
<div class="metric">
<span class="label">Spawn</span>
<span class="value">N</span>
<span class="detail">tmux CLI-agent workers</span>
</div>
<div class="metric">
<span class="label">Gate</span>
<span class="value">Diff</span>
<span class="detail">review before merge</span>
</div>
<div class="metric">
<span class="label">Merge</span>
<span class="value">Back</span>
<span class="detail">starting branch or report</span>
</div>
</div>
<div class="flow">
<div class="row">
<div class="k">one branch and worktree per bounded task</div>
<div class="v green">isolate</div>
</div>
<div class="row">
<div class="k">send follow-up prompts to incomplete workers</div>
<div class="v">steer</div>
</div>
<div class="row">
<div class="k">update changelog, then merge back to the starting branch</div>
<div class="v">control</div>
</div>
</div>
<pre class="code">agent_workers.py spawn api-tests \
--base main \
--agent-cli kimi \
--agent-args "--yolo"</pre>
</article>
<article class="panel">
<p class="panel-title">Deterministic Path</p>
<div class="metrics">
<div class="metric">
<span class="label">Preflight</span>
<span class="value">Pass</span>
<span class="detail">tooling and git state</span>
</div>
<div class="metric">
<span class="label">Backups</span>
<span class="value">Gate</span>
<span class="detail">LXC Docker VM DB</span>
</div>
<div class="metric">
<span class="label">Logs</span>
<span class="value">Run ID</span>
<span class="detail">prompts and outputs</span>
</div>
</div>
<div class="flow">
<div class="row">
<div class="k">JSON plan renders Bash or Python loops</div>
<div class="v green">repeat</div>
</div>
<div class="row">
<div class="k">failed backup prevents every worker from starting</div>
<div class="v red">fail</div>
</div>
<div class="row">
<div class="k">rollback commands are recorded, not auto-fired</div>
<div class="v">inspect</div>
</div>
</div>
<pre class="code">render_worker_loop.py \
--config self-hosted-upgrade.json \
--language python \
--output /tmp/run-agent-workers.py</pre>
</article>
<article class="panel wide">
<p class="panel-title">Recursive Harness Converter</p>
<div class="flow">
<div class="row">
<div class="k">parent agent inspects target help, docs, auth, and sandboxing</div>
<div class="v">inspect help</div>
</div>
<div class="row">
<div class="k">map prompt delivery: stdin, argument, file, or wrapper</div>
<div class="v">portable</div>
</div>
<div class="row">
<div class="k">rewrite docs, scripts, examples, tests, and poster copy</div>
<div class="v green">convert</div>
</div>
<div class="row">
<div class="k">write conversion report, changelog status, and merge-back blockers</div>
<div class="v">log</div>
</div>
</div>
<div>
<div
class="final-stage"
data-final-stage="› Let's unit test and integerate test comprehensively and extensively covering any and all things + any and all possible edge cases."
>
› Let's unit test and integerate test comprehensively and extensively covering any
and all things + any and all possible edge cases.
</div>
<p class="logline">
Latest log: directory rename, generic agent schema, recursive converter,
prompt modes, Apache-2.0 license, package tests, self-test, broad-suite
status, and tool-mention rationale.
</p>
</div>
</article>
</section>
<footer class="footer">
<span>parallel-agent-worktree-skill</span>
<span>parallel agents in git worktrees</span>
<span>experimental Apache-2.0</span>
</footer>
</main>
</body>
</html>