pantheon-opencode 2.0.0-beta.6 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.global.md +6 -1
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +45 -0
- package/README.md +169 -510
- package/README.pt-BR.md +177 -149
- package/bin/pantheon-init.mjs +1 -1
- package/commands/pantheon-deepwork.md +6 -1
- package/commands/pantheon.md +10 -5
- package/package.json +1 -1
- package/plugin.json +2 -2
- package/prompts/orchestrate-with-zeus.prompt.md +82 -290
- package/prompts/subtask.prompt.md +1 -1
- package/pyproject.toml +1 -1
- package/scripts/doctor.mjs +27 -11
- package/scripts/hooks/format-multi-language.sh +30 -48
- package/scripts/jev-live-probe.mjs +1 -1
- package/scripts/release-gates.mjs +19 -5
- package/scripts/skill-search.mjs +27 -3
- package/scripts/test-opencode-sandbox.sh +44 -15
- package/scripts/update.mjs +9 -2
- package/skills-lock.json +5 -3
- package/src/agents/aphrodite.md +2 -0
- package/src/agents/apollo.md +8 -206
- package/src/agents/athena.md +25 -29
- package/src/agents/hermes.md +3 -1
- package/src/agents/mnemosyne.md +1 -1
- package/src/agents/nyx.md +1 -1
- package/src/agents/prometheus.md +0 -203
- package/src/agents/talos.md +2 -0
- package/src/agents/themis.md +8 -3
- package/src/agents/zeus.md +18 -12
- package/src/instructions/memory-protocol.instructions.md +4 -0
- package/src/instructions/test-economy.instructions.md +1 -0
- package/src/instructions/zeus-council-synthesis.instructions.md +13 -1
- package/src/pantheon/pantheon-decision-catalog.ts +8 -0
- package/src/pantheon/skill-search-tool.ts +193 -0
- package/src/pantheon/tools.ts +2 -0
- package/src/plugins/tui/dist/tui.d.ts +12 -2
- package/src/plugins/tui/dist/tui.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui.js +980 -358
- package/src/plugins/tui/dist/tui.js.map +1 -1
- package/src/plugins/tui/package-lock.json +2 -2
- package/src/plugins/tui/package.json +1 -1
- package/src/plugins/tui/src/autonomy-state.ts +1 -1
- package/src/plugins/tui/src/context-gauge.ts +64 -5
- package/src/plugins/tui/src/decision-router-state.ts +49 -2
- package/src/plugins/tui/src/index.tsx +25 -3
- package/src/plugins/tui/src/pantheon-settings-state.ts +99 -0
- package/src/plugins/tui/src/pantheon-settings.tsx +391 -101
- package/src/plugins/tui/src/tui-prefs.ts +161 -9
- package/src/plugins/tui/src/update-status.ts +27 -8
- package/src/routing.yml +9 -0
- package/src/skills/README.md +35 -25
- package/src/skills/fast-path-execution/SKILL.md +54 -0
- package/src/skills/prompt-refinery/SKILL.md +51 -65
- package/src/skills/tdd-with-agents/SKILL.md +22 -10
- package/src/skills/test-slicing/SKILL.md +56 -0
- package/src/skills/verification-planning/SKILL.md +4 -3
|
@@ -37,6 +37,14 @@ export function initTuiPrefs(context: Context): void {
|
|
|
37
37
|
| undefined
|
|
38
38
|
if (handle !== undefined) {
|
|
39
39
|
;(globalThis as unknown as Record<PropertyKey, unknown>)[PREFS_SYMBOL] = handle
|
|
40
|
+
// Self-heal: if store was persisted before layout existed, backfill missing top-level defaults
|
|
41
|
+
if (!handle[0]?.layout) {
|
|
42
|
+
handle[1]((draft: any) => {
|
|
43
|
+
if (!draft.layout) {
|
|
44
|
+
draft.layout = { ...DEFAULT_TUI_PREFS.layout }
|
|
45
|
+
}
|
|
46
|
+
}).catch(() => {})
|
|
47
|
+
}
|
|
40
48
|
}
|
|
41
49
|
} catch {
|
|
42
50
|
/* no host storage — defaults stay read-only */
|
|
@@ -45,7 +53,15 @@ export function initTuiPrefs(context: Context): void {
|
|
|
45
53
|
|
|
46
54
|
/** The live reactive prefs (read properties inside memos/JSX — tracked). */
|
|
47
55
|
export function tuiPrefs(): TuiPrefs {
|
|
48
|
-
|
|
56
|
+
const s = stash()?.[0]
|
|
57
|
+
if (!s) return DEFAULT_TUI_PREFS
|
|
58
|
+
if (!s.layout) {
|
|
59
|
+
return {
|
|
60
|
+
...s,
|
|
61
|
+
layout: DEFAULT_TUI_PREFS.layout,
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return s
|
|
49
65
|
}
|
|
50
66
|
|
|
51
67
|
/** Stage a mutation against the durable store; resolves when persisted. */
|
|
@@ -58,15 +74,48 @@ export function mutateTuiPrefs(mutation: (draft: TuiPrefs) => void): Promise<voi
|
|
|
58
74
|
export const GAUGE_STYLES: readonly string[] = Object.freeze(['both', 'bar', 'percent', 'off'])
|
|
59
75
|
export const ENABLED_CYCLE: readonly string[] = Object.freeze(['enabled', 'disabled'])
|
|
60
76
|
|
|
77
|
+
export const BAR_SHAPES_CYCLE: readonly string[] = Object.freeze([
|
|
78
|
+
'line',
|
|
79
|
+
'block',
|
|
80
|
+
'smooth',
|
|
81
|
+
'ascii',
|
|
82
|
+
'dots',
|
|
83
|
+
'braille',
|
|
84
|
+
])
|
|
85
|
+
export const BAR_WIDTHS_CYCLE: readonly string[] = Object.freeze([
|
|
86
|
+
'standard',
|
|
87
|
+
'compact',
|
|
88
|
+
'wide',
|
|
89
|
+
'full',
|
|
90
|
+
])
|
|
91
|
+
export const LAYOUT_PRESETS_CYCLE: readonly string[] = Object.freeze(['comfortable', 'compact'])
|
|
92
|
+
export const SEPARATOR_STYLES_CYCLE: readonly string[] = Object.freeze([
|
|
93
|
+
'spaces',
|
|
94
|
+
'pipes',
|
|
95
|
+
'dots',
|
|
96
|
+
'slashes',
|
|
97
|
+
])
|
|
98
|
+
|
|
61
99
|
export type GaugeStyle = 'both' | 'bar' | 'percent' | 'off'
|
|
100
|
+
export type BarShapePref = 'line' | 'block' | 'smooth' | 'ascii' | 'dots' | 'braille'
|
|
101
|
+
export type BarWidthPref = 'standard' | 'compact' | 'wide' | 'full'
|
|
102
|
+
export type LayoutPresetPref = 'comfortable' | 'compact'
|
|
103
|
+
export type SeparatorStylePref = 'spaces' | 'pipes' | 'dots' | 'slashes'
|
|
62
104
|
|
|
63
105
|
export interface TuiPrefs {
|
|
64
106
|
version: 1
|
|
107
|
+
layout: {
|
|
108
|
+
preset: LayoutPresetPref
|
|
109
|
+
separator: SeparatorStylePref
|
|
110
|
+
}
|
|
65
111
|
sidebar: {
|
|
66
112
|
header: { version: boolean; preset: boolean; session: boolean }
|
|
67
113
|
blocks: { context: boolean; git: boolean; todo: boolean; dispatch: boolean }
|
|
68
114
|
context: {
|
|
69
115
|
gauge: GaugeStyle
|
|
116
|
+
barShape: BarShapePref
|
|
117
|
+
barWidth: BarWidthPref
|
|
118
|
+
evenMark: boolean
|
|
70
119
|
tokens: boolean
|
|
71
120
|
spent: boolean
|
|
72
121
|
modelUsage: boolean
|
|
@@ -79,11 +128,18 @@ export interface TuiPrefs {
|
|
|
79
128
|
|
|
80
129
|
export const DEFAULT_TUI_PREFS: TuiPrefs = {
|
|
81
130
|
version: 1,
|
|
131
|
+
layout: {
|
|
132
|
+
preset: 'comfortable',
|
|
133
|
+
separator: 'spaces',
|
|
134
|
+
},
|
|
82
135
|
sidebar: {
|
|
83
136
|
header: { version: true, preset: true, session: true },
|
|
84
137
|
blocks: { context: true, git: true, todo: true, dispatch: true },
|
|
85
138
|
context: {
|
|
86
139
|
gauge: 'both',
|
|
140
|
+
barShape: 'line',
|
|
141
|
+
barWidth: 'standard',
|
|
142
|
+
evenMark: false,
|
|
87
143
|
tokens: true,
|
|
88
144
|
spent: true,
|
|
89
145
|
modelUsage: true,
|
|
@@ -101,6 +157,9 @@ function asBool(value: unknown, fallback: boolean): boolean {
|
|
|
101
157
|
/** Deep-merge stored JSON over the defaults; unknown keys and junk are ignored. */
|
|
102
158
|
export function normalizeTuiPrefs(raw: unknown): TuiPrefs {
|
|
103
159
|
const stored = (typeof raw === 'object' && raw !== null ? raw : {}) as Record<string, any>
|
|
160
|
+
const layout = (
|
|
161
|
+
typeof stored.layout === 'object' && stored.layout !== null ? stored.layout : {}
|
|
162
|
+
) as Record<string, any>
|
|
104
163
|
const sidebar = (
|
|
105
164
|
typeof stored.sidebar === 'object' && stored.sidebar !== null ? stored.sidebar : {}
|
|
106
165
|
) as Record<string, any>
|
|
@@ -116,11 +175,29 @@ export function normalizeTuiPrefs(raw: unknown): TuiPrefs {
|
|
|
116
175
|
const footer = (
|
|
117
176
|
typeof stored.footer === 'object' && stored.footer !== null ? stored.footer : {}
|
|
118
177
|
) as Record<string, any>
|
|
178
|
+
const preset = LAYOUT_PRESETS_CYCLE.includes(layout.preset as string)
|
|
179
|
+
? (layout.preset as LayoutPresetPref)
|
|
180
|
+
: DEFAULT_TUI_PREFS.layout.preset
|
|
181
|
+
const separator = SEPARATOR_STYLES_CYCLE.includes(layout.separator as string)
|
|
182
|
+
? (layout.separator as SeparatorStylePref)
|
|
183
|
+
: DEFAULT_TUI_PREFS.layout.separator
|
|
119
184
|
const gauge = GAUGE_STYLES.includes(context.gauge as string)
|
|
120
185
|
? (context.gauge as GaugeStyle)
|
|
121
186
|
: DEFAULT_TUI_PREFS.sidebar.context.gauge
|
|
187
|
+
const barShape = BAR_SHAPES_CYCLE.includes(context.barShape as string)
|
|
188
|
+
? (context.barShape as BarShapePref)
|
|
189
|
+
: DEFAULT_TUI_PREFS.sidebar.context.barShape
|
|
190
|
+
const barWidth = BAR_WIDTHS_CYCLE.includes(context.barWidth as string)
|
|
191
|
+
? (context.barWidth as BarWidthPref)
|
|
192
|
+
: DEFAULT_TUI_PREFS.sidebar.context.barWidth
|
|
193
|
+
const evenMark = asBool(context.evenMark, DEFAULT_TUI_PREFS.sidebar.context.evenMark)
|
|
194
|
+
|
|
122
195
|
return {
|
|
123
196
|
version: 1,
|
|
197
|
+
layout: {
|
|
198
|
+
preset,
|
|
199
|
+
separator,
|
|
200
|
+
},
|
|
124
201
|
sidebar: {
|
|
125
202
|
header: {
|
|
126
203
|
version: asBool(header.version, true),
|
|
@@ -135,6 +212,9 @@ export function normalizeTuiPrefs(raw: unknown): TuiPrefs {
|
|
|
135
212
|
},
|
|
136
213
|
context: {
|
|
137
214
|
gauge,
|
|
215
|
+
barShape,
|
|
216
|
+
barWidth,
|
|
217
|
+
evenMark,
|
|
138
218
|
tokens: asBool(context.tokens, true),
|
|
139
219
|
spent: asBool(context.spent, true),
|
|
140
220
|
modelUsage: asBool(context.modelUsage, true),
|
|
@@ -165,6 +245,57 @@ export function buildTuiTab(prefs: TuiPrefs): SettingsTab {
|
|
|
165
245
|
id: 'tui',
|
|
166
246
|
title: 'TUI',
|
|
167
247
|
groups: [
|
|
248
|
+
{
|
|
249
|
+
title: 'Preset & Layout',
|
|
250
|
+
rows: [
|
|
251
|
+
{
|
|
252
|
+
id: 'tui.layout.preset',
|
|
253
|
+
name: 'Layout preset',
|
|
254
|
+
value: prefs.layout?.preset ?? DEFAULT_TUI_PREFS.layout.preset,
|
|
255
|
+
cycle: LAYOUT_PRESETS_CYCLE,
|
|
256
|
+
note: 'comfortable | compact — sets spacing & borders',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
id: 'tui.layout.separator',
|
|
260
|
+
name: 'Separator',
|
|
261
|
+
value: prefs.layout?.separator ?? DEFAULT_TUI_PREFS.layout.separator,
|
|
262
|
+
cycle: SEPARATOR_STYLES_CYCLE,
|
|
263
|
+
note: 'spaces | pipes | dots | slashes — status line glyphs',
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
title: 'Bars & Gauges',
|
|
269
|
+
rows: [
|
|
270
|
+
{
|
|
271
|
+
id: 'tui.sidebar.context.barShape',
|
|
272
|
+
name: 'Bar shape',
|
|
273
|
+
value: prefs.sidebar.context.barShape,
|
|
274
|
+
cycle: BAR_SHAPES_CYCLE,
|
|
275
|
+
note: 'line (━─) | block (▰▱) | smooth (█░) | ascii (=) | dots (●○) | braille',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: 'tui.sidebar.context.barWidth',
|
|
279
|
+
name: 'Bar width',
|
|
280
|
+
value: prefs.sidebar.context.barWidth,
|
|
281
|
+
cycle: BAR_WIDTHS_CYCLE,
|
|
282
|
+
note: 'standard (12) | compact (8) | wide (16) | full (20 cells)',
|
|
283
|
+
},
|
|
284
|
+
row(
|
|
285
|
+
'tui.sidebar.context.evenMark',
|
|
286
|
+
'Even-use mark',
|
|
287
|
+
prefs.sidebar.context.evenMark,
|
|
288
|
+
'| indicator at 50% midpoint in gauge bars',
|
|
289
|
+
),
|
|
290
|
+
{
|
|
291
|
+
id: 'tui.sidebar.context.gauge',
|
|
292
|
+
name: 'Gauge style',
|
|
293
|
+
value: prefs.sidebar.context.gauge,
|
|
294
|
+
cycle: GAUGE_STYLES,
|
|
295
|
+
note: 'both | bar | percent | off — `▰▱ 42% of 200k`',
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
},
|
|
168
299
|
{
|
|
169
300
|
title: 'Sidebar header',
|
|
170
301
|
rows: [
|
|
@@ -220,13 +351,6 @@ export function buildTuiTab(prefs: TuiPrefs): SettingsTab {
|
|
|
220
351
|
{
|
|
221
352
|
title: 'Context block detail',
|
|
222
353
|
rows: [
|
|
223
|
-
{
|
|
224
|
-
id: 'tui.sidebar.context.gauge',
|
|
225
|
-
name: 'Gauge style',
|
|
226
|
-
value: prefs.sidebar.context.gauge,
|
|
227
|
-
cycle: GAUGE_STYLES,
|
|
228
|
-
note: 'both | bar | percent | off — `▰▱ 42% of 200k`',
|
|
229
|
-
},
|
|
230
354
|
row(
|
|
231
355
|
'tui.sidebar.context.tokens',
|
|
232
356
|
'Tokens row',
|
|
@@ -287,6 +411,27 @@ export function buildTuiTab(prefs: TuiPrefs): SettingsTab {
|
|
|
287
411
|
export function applyTuiRow(draft: TuiPrefs, id: string, value: string): void {
|
|
288
412
|
const enabled = value === 'enabled'
|
|
289
413
|
switch (id) {
|
|
414
|
+
case 'tui.layout.preset':
|
|
415
|
+
if (LAYOUT_PRESETS_CYCLE.includes(value)) {
|
|
416
|
+
if (!draft.layout) draft.layout = { ...DEFAULT_TUI_PREFS.layout }
|
|
417
|
+
draft.layout.preset = value as LayoutPresetPref
|
|
418
|
+
}
|
|
419
|
+
return
|
|
420
|
+
case 'tui.layout.separator':
|
|
421
|
+
if (SEPARATOR_STYLES_CYCLE.includes(value)) {
|
|
422
|
+
if (!draft.layout) draft.layout = { ...DEFAULT_TUI_PREFS.layout }
|
|
423
|
+
draft.layout.separator = value as SeparatorStylePref
|
|
424
|
+
}
|
|
425
|
+
return
|
|
426
|
+
case 'tui.sidebar.context.barShape':
|
|
427
|
+
if (BAR_SHAPES_CYCLE.includes(value)) draft.sidebar.context.barShape = value as BarShapePref
|
|
428
|
+
return
|
|
429
|
+
case 'tui.sidebar.context.barWidth':
|
|
430
|
+
if (BAR_WIDTHS_CYCLE.includes(value)) draft.sidebar.context.barWidth = value as BarWidthPref
|
|
431
|
+
return
|
|
432
|
+
case 'tui.sidebar.context.evenMark':
|
|
433
|
+
draft.sidebar.context.evenMark = enabled
|
|
434
|
+
return
|
|
290
435
|
case 'tui.sidebar.header.version':
|
|
291
436
|
draft.sidebar.header.version = enabled
|
|
292
437
|
return
|
|
@@ -337,9 +482,16 @@ export function applyTuiRow(draft: TuiPrefs, id: string, value: string): void {
|
|
|
337
482
|
}
|
|
338
483
|
}
|
|
339
484
|
|
|
340
|
-
/** Read the current pref value for a row id ('enabled'/'disabled'/gauge). */
|
|
485
|
+
/** Read the current pref value for a row id ('enabled'/'disabled'/gauge/custom). */
|
|
341
486
|
export function tuiRowValue(prefs: TuiPrefs, id: string): string | undefined {
|
|
487
|
+
if (id === 'tui.layout.preset') return prefs.layout?.preset ?? DEFAULT_TUI_PREFS.layout.preset
|
|
488
|
+
if (id === 'tui.layout.separator')
|
|
489
|
+
return prefs.layout?.separator ?? DEFAULT_TUI_PREFS.layout.separator
|
|
490
|
+
if (id === 'tui.sidebar.context.barShape') return prefs.sidebar.context.barShape
|
|
491
|
+
if (id === 'tui.sidebar.context.barWidth') return prefs.sidebar.context.barWidth
|
|
342
492
|
if (id === 'tui.sidebar.context.gauge') return prefs.sidebar.context.gauge
|
|
493
|
+
if (id === 'tui.sidebar.context.evenMark')
|
|
494
|
+
return prefs.sidebar.context.evenMark ? 'enabled' : 'disabled'
|
|
343
495
|
const enabled = (() => {
|
|
344
496
|
switch (id) {
|
|
345
497
|
case 'tui.sidebar.header.version':
|
|
@@ -36,24 +36,35 @@ function formatAgo(ms: number): string {
|
|
|
36
36
|
export interface UpdatesSectionInput {
|
|
37
37
|
currentVersion: string
|
|
38
38
|
state: UpdateCheckState
|
|
39
|
+
/** Selected channel (defaults to updateChannelFor(currentVersion)). */
|
|
40
|
+
selectedChannel?: UpdateChannel
|
|
39
41
|
/** Latest version seen this session (a check-now inside this window). */
|
|
40
42
|
lastCheckedVersion?: string
|
|
41
43
|
/** A check-now is in flight (this window). */
|
|
42
44
|
checking?: boolean
|
|
45
|
+
/** An update run is in flight (this window). */
|
|
46
|
+
updating?: boolean
|
|
43
47
|
nowMs?: number
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
export function buildUpdatesTab(input: UpdatesSectionInput): SettingsTab {
|
|
47
51
|
const nowMs = input.nowMs ?? Date.now()
|
|
48
|
-
const channel = updateChannelFor(input.currentVersion)
|
|
52
|
+
const channel = input.selectedChannel ?? updateChannelFor(input.currentVersion)
|
|
49
53
|
const lastCheckMs = input.state.lastCheckMs
|
|
50
54
|
const latest = input.lastCheckedVersion ?? input.state.lastNotifiedVersion
|
|
51
55
|
|
|
56
|
+
const stable = (version: string) => !/-beta\.\d+$/.test(version)
|
|
57
|
+
const newer =
|
|
58
|
+
latest !== undefined &&
|
|
59
|
+
comparePantheonVersions(latest, input.currentVersion) > 0 &&
|
|
60
|
+
!(stable(input.currentVersion) && !stable(latest))
|
|
61
|
+
|
|
52
62
|
const rows: SettingsRow[] = [
|
|
53
63
|
{
|
|
54
64
|
id: 'update.channel',
|
|
55
65
|
name: 'Channel',
|
|
56
66
|
value: channel,
|
|
67
|
+
cycle: ['stable', 'beta'] as const,
|
|
57
68
|
note: 'stable tracks npm `latest`; beta tracks npm `beta`',
|
|
58
69
|
},
|
|
59
70
|
{
|
|
@@ -70,23 +81,31 @@ export function buildUpdatesTab(input: UpdatesSectionInput): SettingsTab {
|
|
|
70
81
|
]
|
|
71
82
|
|
|
72
83
|
if (latest) {
|
|
73
|
-
// Same guard as pickUpdateNotice: a stable install is never advertised a
|
|
74
|
-
// beta — the update CLI owns that crossing (explicit opt-in).
|
|
75
|
-
const stable = (version: string) => !/-beta\.\d+$/.test(version)
|
|
76
|
-
const newer =
|
|
77
|
-
comparePantheonVersions(latest, input.currentVersion) > 0 &&
|
|
78
|
-
!(stable(input.currentVersion) && !stable(latest))
|
|
79
84
|
rows.push({
|
|
80
85
|
id: 'update.latest',
|
|
81
86
|
name: 'Registry',
|
|
82
87
|
value: newer ? `v${latest} available` : 'up to date',
|
|
83
88
|
note: newer ? 'adopt with `pantheon-opencode update`' : 'no newer compatible version',
|
|
84
89
|
})
|
|
90
|
+
rows.push({
|
|
91
|
+
id: 'update.run',
|
|
92
|
+
name: 'Update now',
|
|
93
|
+
value: input.updating ? 'updating…' : newer ? `install v${latest}` : 'reinstall / refresh',
|
|
94
|
+
action: 'update-run',
|
|
95
|
+
note: newer ? 'enter runs `pantheon-opencode update`' : 'enter refreshes installed copy',
|
|
96
|
+
})
|
|
85
97
|
}
|
|
86
98
|
|
|
99
|
+
rows.push({
|
|
100
|
+
id: 'update.command',
|
|
101
|
+
name: 'CLI command',
|
|
102
|
+
value: channel === 'beta' ? 'pantheon-opencode update' : 'pantheon-opencode update --stable',
|
|
103
|
+
note: 'run in terminal or OpenCode Desktop terminal',
|
|
104
|
+
})
|
|
105
|
+
|
|
87
106
|
return {
|
|
88
107
|
id: 'updates',
|
|
89
108
|
title: 'Updates',
|
|
90
|
-
groups: [{ title: 'Updates', rows }],
|
|
109
|
+
groups: [{ title: 'Updates & Maintenance', rows }],
|
|
91
110
|
}
|
|
92
111
|
}
|
package/src/routing.yml
CHANGED
|
@@ -181,11 +181,13 @@ agents:
|
|
|
181
181
|
- prompt-refinery
|
|
182
182
|
- instruction-forge
|
|
183
183
|
- context-compression
|
|
184
|
+
- fast-path-execution
|
|
184
185
|
- incremental-implementation
|
|
185
186
|
- loop-engineering
|
|
186
187
|
- reflect
|
|
187
188
|
- session-goal
|
|
188
189
|
- simplify
|
|
190
|
+
- test-slicing
|
|
189
191
|
- verification-planning
|
|
190
192
|
- worktrees
|
|
191
193
|
athena:
|
|
@@ -252,12 +254,14 @@ agents:
|
|
|
252
254
|
- pantheon_code_mode
|
|
253
255
|
skills:
|
|
254
256
|
- clonedeps
|
|
257
|
+
- fast-path-execution
|
|
255
258
|
- git-workflow-and-versioning
|
|
256
259
|
- incremental-implementation
|
|
257
260
|
- loop-engineering
|
|
258
261
|
- reflect
|
|
259
262
|
- simplify
|
|
260
263
|
- tdd-with-agents
|
|
264
|
+
- test-slicing
|
|
261
265
|
- worktrees
|
|
262
266
|
aphrodite:
|
|
263
267
|
role: Frontend specialist
|
|
@@ -276,11 +280,13 @@ agents:
|
|
|
276
280
|
- pantheon_resources_memory_bank
|
|
277
281
|
- pantheon_code_mode
|
|
278
282
|
skills:
|
|
283
|
+
- fast-path-execution
|
|
279
284
|
- incremental-implementation
|
|
280
285
|
- loop-engineering
|
|
281
286
|
- reflect
|
|
282
287
|
- simplify
|
|
283
288
|
- tdd-with-agents
|
|
289
|
+
- test-slicing
|
|
284
290
|
- visual-review-pipeline
|
|
285
291
|
- worktrees
|
|
286
292
|
demeter:
|
|
@@ -329,6 +335,7 @@ agents:
|
|
|
329
335
|
- security-hardening
|
|
330
336
|
- simplify
|
|
331
337
|
- tdd-with-agents
|
|
338
|
+
- test-slicing
|
|
332
339
|
- worktrees
|
|
333
340
|
prometheus:
|
|
334
341
|
role: Infrastructure specialist
|
|
@@ -478,10 +485,12 @@ agents:
|
|
|
478
485
|
- pantheon_code_mode
|
|
479
486
|
subagent_can_delegate_to: []
|
|
480
487
|
skills:
|
|
488
|
+
- fast-path-execution
|
|
481
489
|
- incremental-implementation
|
|
482
490
|
- loop-engineering
|
|
483
491
|
- reflect
|
|
484
492
|
- simplify
|
|
493
|
+
- test-slicing
|
|
485
494
|
- worktrees
|
|
486
495
|
auto_continue:
|
|
487
496
|
checkpoint_script: .pantheon/code-mode/checkpoint-session.sh
|
package/src/skills/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Skills are reference modules loaded on demand by agents. Each skill provides domain-specific knowledge — architecture patterns, security checklists, optimization strategies, and implementation guides. Agents load skills when their task matches the skill's description, keeping context focused and token-efficient.
|
|
6
6
|
|
|
7
|
-
There are **
|
|
7
|
+
There are **25 skills** divided into **6 domains**.
|
|
8
8
|
|
|
9
9
|
## Skills by Domain
|
|
10
10
|
|
|
@@ -14,7 +14,11 @@ There are **23 skills** divided into **6 domains**.
|
|
|
14
14
|
- Multi-agent orchestration with model routing, category delegation, and sprint management.
|
|
15
15
|
- Used by: Zeus
|
|
16
16
|
|
|
17
|
-
2. **
|
|
17
|
+
2. **fast-path-execution** — `fast-path-execution/SKILL.md`
|
|
18
|
+
- Fast-track execution protocol for bounded micro-edits (<= 2 files). Zero council overhead, direct specialist dispatch, inline verification.
|
|
19
|
+
- Used by: Zeus, Talos, Hermes, Aphrodite
|
|
20
|
+
|
|
21
|
+
3. **artifact-management** — `artifact-management/SKILL.md`
|
|
18
22
|
- Structured artifact trail for feature implementations — plans, implementations, reviews, and decisions.
|
|
19
23
|
- Used by: Zeus, Mnemosyne, Iris
|
|
20
24
|
|
|
@@ -74,10 +78,14 @@ There are **23 skills** divided into **6 domains**.
|
|
|
74
78
|
- Security gate — OWASP, SAST, secrets detection, MCP hardening, dependency audit.
|
|
75
79
|
- Used by: Themis, Nyx
|
|
76
80
|
|
|
77
|
-
|
|
81
|
+
17. **tdd-with-agents** — `tdd-with-agents/SKILL.md`
|
|
78
82
|
- TDD enforcement with RED→GREEN→REFACTOR cycle and advanced testing patterns across all layers.
|
|
79
83
|
- Used by: Hermes, Aphrodite, Demeter, Themis, Hephaestus
|
|
80
84
|
|
|
85
|
+
18. **test-slicing** — `test-slicing/SKILL.md`
|
|
86
|
+
- Targeted test execution — map changed files directly to their narrow test slice instead of running full suites.
|
|
87
|
+
- Used by: Talos, Themis, Hermes, Aphrodite, Zeus
|
|
88
|
+
|
|
81
89
|
### Domain 4: Planning
|
|
82
90
|
|
|
83
91
|
17. **codemap** — `codemap/SKILL.md`
|
|
@@ -138,28 +146,30 @@ agent grants, and skill inventory.
|
|
|
138
146
|
| # | Skill Name | Domain | Used By |
|
|
139
147
|
|---|------------|--------|---------|
|
|
140
148
|
| 1 | agent-coordination | Orchestration & Workflow | Zeus |
|
|
141
|
-
| 2 |
|
|
142
|
-
| 3 |
|
|
143
|
-
| 4 |
|
|
144
|
-
| 5 |
|
|
145
|
-
| 6 |
|
|
146
|
-
| 7 |
|
|
147
|
-
| 8 |
|
|
148
|
-
| 9 |
|
|
149
|
-
| 10 |
|
|
150
|
-
| 11 |
|
|
151
|
-
| 12 |
|
|
152
|
-
| 13 |
|
|
153
|
-
| 14 |
|
|
154
|
-
| 15 |
|
|
155
|
-
| 16 |
|
|
156
|
-
| 17 |
|
|
157
|
-
| 18 |
|
|
158
|
-
| 19 |
|
|
159
|
-
| 20 |
|
|
160
|
-
| 21 |
|
|
161
|
-
| 22 |
|
|
162
|
-
| 23 |
|
|
149
|
+
| 2 | fast-path-execution | Orchestration & Workflow | Zeus, Talos, Hermes, Aphrodite |
|
|
150
|
+
| 3 | artifact-management | Orchestration & Workflow | Zeus, Mnemosyne, Iris |
|
|
151
|
+
| 4 | auto-continue | Orchestration & Workflow | Zeus, Apollo, Hephaestus, Nyx, Gaia |
|
|
152
|
+
| 5 | context-compression | Orchestration & Workflow | Zeus, Mnemosyne |
|
|
153
|
+
| 6 | memory-bank | Orchestration & Workflow | Mnemosyne, Athena |
|
|
154
|
+
| 7 | session-goal | Orchestration & Workflow | Zeus, Mnemosyne |
|
|
155
|
+
| 8 | clonedeps | Development Tools | Hermes, Hephaestus |
|
|
156
|
+
| 9 | git-workflow-and-versioning | Development Tools | Hermes, Prometheus, Iris |
|
|
157
|
+
| 10 | incremental-implementation | Development Tools | Zeus, Hermes, Aphrodite, Demeter, Prometheus, Talos |
|
|
158
|
+
| 11 | loop-engineering | Development Tools | All agents |
|
|
159
|
+
| 12 | reflect | Development Tools | All agents |
|
|
160
|
+
| 13 | simplify | Development Tools | All agents |
|
|
161
|
+
| 14 | worktrees | Development Tools | All agents |
|
|
162
|
+
| 15 | code-review-checklist | Quality & Security | Themis |
|
|
163
|
+
| 16 | security-hardening | Quality & Security | Themis, Nyx |
|
|
164
|
+
| 17 | tdd-with-agents | Quality & Security | Hermes, Aphrodite, Demeter, Themis, Hephaestus |
|
|
165
|
+
| 18 | test-slicing | Quality & Security | Talos, Themis, Hermes, Aphrodite, Zeus |
|
|
166
|
+
| 19 | codemap | Planning | Apollo, Zeus |
|
|
167
|
+
| 20 | spec-driven-development | Planning | Athena |
|
|
168
|
+
| 21 | verification-planning | Planning | Athena, Zeus |
|
|
169
|
+
| 22 | visual-review-pipeline | Frontend Development | Aphrodite |
|
|
170
|
+
| 23 | agent-forge | Meta | Zeus |
|
|
171
|
+
| 24 | prompt-refinery | Meta | Zeus |
|
|
172
|
+
| 25 | instruction-forge | Meta | Zeus, Athena |
|
|
163
173
|
|
|
164
174
|
---
|
|
165
175
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fast-path-execution
|
|
3
|
+
description: "Fast-track execution protocol for bounded micro-edits (<= 2 files). Zero council overhead, direct specialist dispatch, inline verification."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fast-Path Execution
|
|
7
|
+
|
|
8
|
+
> **Bounded changes do not require a multi-agent council. Bypass planning, discovery, and review overhead for direct specialist execution with inline verification.**
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Eligibility Criteria (Fast-Track)
|
|
13
|
+
|
|
14
|
+
A task qualifies for the Fast-Path if **ALL** of the following hold:
|
|
15
|
+
- **Scope:** Touches $\le 2$ source files and $\le 50$ lines of diff.
|
|
16
|
+
- **Risk:** Zero database schema migrations, zero auth/credential changes, zero breaking API contract modifications.
|
|
17
|
+
- **Clarity:** The problem and solution are clear (bug fix, typo, CSS adjustment, localized refactor).
|
|
18
|
+
|
|
19
|
+
If ANY condition is violated, route via **Deep-Track** (Athena planning $\to$ Specialist $\to$ Themis gate).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Fast-Path Protocol
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
User Request
|
|
27
|
+
│
|
|
28
|
+
▼
|
|
29
|
+
[Zeus Assessment: <= 2 files?]
|
|
30
|
+
├── YES ──► Dispatch directly to Specialist (@talos / @hermes / @aphrodite)
|
|
31
|
+
│ │
|
|
32
|
+
│ ▼
|
|
33
|
+
│ [Implement change + Targeted Test Slice]
|
|
34
|
+
│ │
|
|
35
|
+
│ ▼
|
|
36
|
+
│ [Test passes?] ── YES ──► Report completion directly to User
|
|
37
|
+
│ │
|
|
38
|
+
│ NO (unexpected regression)
|
|
39
|
+
│ │
|
|
40
|
+
▼ ▼
|
|
41
|
+
[Deep-Track: Council / Athena / Themis Review]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Execution Rules
|
|
47
|
+
|
|
48
|
+
1. **Zero-Council:** Do NOT call `pantheon_jev_decide`, local selector, or Athena planning for an obvious route. Dispatch directly via native `subagent`.
|
|
49
|
+
2. **Dedicated Lane:**
|
|
50
|
+
- Small bug, typo, isolated CSS: dispatch to `@talos` (hotfix express lane).
|
|
51
|
+
- Backend logic, single endpoint: dispatch to `@hermes`.
|
|
52
|
+
- Frontend component, style: dispatch to `@aphrodite`.
|
|
53
|
+
3. **Inline Verification:** The specialist runs the sliced test (`test-slicing`), verifies GREEN, and completes the turn without requesting `@themis` review.
|
|
54
|
+
4. **Hard Escalation Boundary:** If the fix unexpectedly breaks unrelated tests, touches 3+ files, or uncovers architectural debt, abort Fast-Path immediately and escalate to `@zeus` for Deep-Track orchestration.
|