pantheon-opencode 1.6.1 → 1.6.2-beta.10
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 +11 -11
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +179 -0
- package/README.md +268 -20
- package/README.pt-BR.md +34 -11
- package/bin/pantheon-init.mjs +301 -32
- package/package.json +13 -4
- package/plugin.json +1 -1
- package/prompts/README.md +58 -0
- package/prompts/debug-issue.prompt.md +46 -0
- package/prompts/dynamic/agora-generated.txt +38 -0
- package/prompts/dynamic/orchestrate-generated.txt +51 -0
- package/prompts/focus.prompt.md +42 -0
- package/prompts/implement-feature.prompt.md +39 -0
- package/prompts/optimize-database.prompt.md +58 -0
- package/prompts/orchestrate-with-zeus.prompt.md +441 -0
- package/prompts/plan-architecture.prompt.md +59 -0
- package/prompts/quick-discovery-large-codebase.prompt.md +294 -0
- package/prompts/quick-plan-large-feature.prompt.md +197 -0
- package/prompts/semantic-summarize.md +50 -0
- package/prompts/sketch.prompt.md +91 -0
- package/prompts/subtask.prompt.md +131 -0
- package/pyproject.toml +1 -1
- package/scripts/build-agents-md.mjs +1 -1
- package/scripts/decision-router-budget.mjs +780 -0
- package/scripts/decision-router-v2-budget.mjs +218 -0
- package/scripts/decision-router-v2-egress.mjs +272 -0
- package/scripts/decision-router.mjs +758 -0
- package/scripts/docs-check-changelog.mjs +5 -3
- package/scripts/doctor.mjs +213 -45
- package/scripts/install/agents-md.mjs +2 -1
- package/scripts/install/component-selection.mjs +9 -4
- package/scripts/install/config-migration.mjs +344 -393
- package/scripts/install/config-paths.mjs +15 -0
- package/scripts/install/decision-layer-preview.mjs +376 -0
- package/scripts/install/decision-router-config.mjs +560 -0
- package/scripts/install/health-check.mjs +20 -11
- package/scripts/install/interactive.mjs +103 -14
- package/scripts/install/interrupt.mjs +4 -3
- package/scripts/install/mcp-permissions.mjs +164 -0
- package/scripts/install/migrate.mjs +123 -72
- package/scripts/install/opencode-version.mjs +31 -13
- package/scripts/install/opencode-wildcard.mjs +106 -0
- package/scripts/install/opencode.mjs +411 -184
- package/scripts/install/plan-artifact.mjs +12 -1
- package/scripts/install/plan.mjs +8 -1
- package/scripts/install/plugin.mjs +18 -1
- package/scripts/install/state.mjs +12 -0
- package/scripts/install/strings.mjs +22 -0
- package/scripts/install/v2-capabilities.mjs +5 -6
- package/scripts/install/venv.mjs +34 -17
- package/scripts/mcp_resources.py +11 -9
- package/scripts/package-evidence.mjs +1 -0
- package/scripts/release-notes.mjs +30 -7
- package/scripts/restore.mjs +22 -10
- package/scripts/sandbox-env.sh +174 -0
- package/scripts/setup-v2-config.mjs +1703 -0
- package/scripts/setup.mjs +415 -0
- package/scripts/sync-tui.mjs +9 -1
- package/scripts/test-opencode-v2-sandbox.sh +448 -157
- package/scripts/update-skills-lock.mjs +30 -0
- package/scripts/versioning.mjs +41 -5
- package/skills-lock.json +10 -10
- package/src/agents/aphrodite.md +11 -3
- package/src/agents/apollo.md +6 -0
- package/src/agents/athena.md +7 -1
- package/src/agents/demeter.md +6 -2
- package/src/agents/gaia.md +5 -0
- package/src/agents/hephaestus.md +7 -2
- package/src/agents/hermes.md +14 -13
- package/src/agents/iris.md +6 -2
- package/src/agents/mnemosyne.md +21 -50
- package/src/agents/nyx.md +6 -2
- package/src/agents/prometheus.md +5 -1
- package/src/agents/talos.md +10 -1
- package/src/agents/themis.md +5 -1
- package/src/agents/zeus.md +61 -65
- package/src/instructions/agent-return-format.instructions.md +1 -1
- package/src/instructions/memory-protocol.instructions.md +3 -3
- package/src/instructions/test-economy.instructions.md +6 -6
- package/src/mcp/eval_store.py +11 -4
- package/src/mcp/mcp_resources.py +11 -9
- package/src/mcp/memory_mcp.py +293 -150
- package/src/mcp/pantheon_vision.py +37 -36
- package/src/pantheon/cost-command.ts +30 -133
- package/src/pantheon/jev-decision-tool.ts +347 -0
- package/src/pantheon/jev-decisions.ts +625 -0
- package/src/pantheon/local-decision-agents.ts +170 -0
- package/src/pantheon/local-decision-budget.ts +1046 -0
- package/src/pantheon/local-decision-egress-gate.ts +144 -0
- package/src/pantheon/local-decision-prompt.ts +256 -0
- package/src/pantheon/local-decision-provider-matrix.ts +44 -0
- package/src/pantheon/local-decision-router.ts +225 -0
- package/src/pantheon/local-decision-skills.ts +281 -0
- package/src/pantheon/local-decision-tool.ts +160 -0
- package/src/pantheon/local-decision-turn.ts +101 -0
- package/src/pantheon/local-decision-usage-evidence.internal.ts +168 -0
- package/src/pantheon/local-orchestration.ts +322 -0
- package/src/pantheon/model-pricing.ts +1 -536
- package/src/pantheon/pantheon-decision-catalog.ts +101 -0
- package/src/pantheon/v2-decision-budget.ts +456 -0
- package/src/pantheon/v2-decision-contracts.ts +300 -0
- package/src/pantheon/v2-decision-egress.ts +203 -0
- package/src/pantheon/v2-decision-events.ts +180 -0
- package/src/pantheon/v2-decision-heuristic.ts +121 -0
- package/src/pantheon/v2-decision-points/p1-agent.ts +91 -0
- package/src/pantheon/v2-decision-points/p10-claims.ts +243 -0
- package/src/pantheon/v2-decision-points/p11-catalog.ts +220 -0
- package/src/pantheon/v2-decision-points/p2-skill.ts +83 -0
- package/src/pantheon/v2-decision-points/p3-complexity.ts +108 -0
- package/src/pantheon/v2-decision-points/p4-memory.ts +137 -0
- package/src/pantheon/v2-decision-points/p5-themis-verify.ts +190 -0
- package/src/pantheon/v2-decision-points/p6-council.ts +161 -0
- package/src/pantheon/v2-decision-points/p7-loop.ts +263 -0
- package/src/pantheon/v2-decision-points/p8-guardrail.ts +367 -0
- package/src/pantheon/v2-decision-points/p9-memory-compaction.ts +304 -0
- package/src/pantheon/v2-decision-points.ts +242 -0
- package/src/pantheon/v2-decision-policy.ts +166 -0
- package/src/pantheon/v2-decision-premises.ts +146 -0
- package/src/pantheon/v2-decision-prompt-surface.ts +115 -0
- package/src/pantheon/v2-decision-rank.ts +91 -0
- package/src/pantheon/v2-decision-registry.ts +391 -0
- package/src/pantheon/v2-decision-resource-ids.ts +127 -0
- package/src/pantheon/v2-decision-shadow.ts +123 -0
- package/src/pantheon/v2-decision-telemetry.ts +214 -0
- package/src/pantheon/v2-decision-verify.ts +51 -0
- package/src/pantheon/v2-hook-engine.ts +307 -0
- package/src/pantheon/v2-native-decisions.ts +365 -0
- package/src/pantheon/v2-shell-hooks.ts +66 -2
- package/src/pantheon/v2-tools.ts +38 -15
- package/src/pantheon/v2-vision.ts +34 -29
- package/src/pantheon/vision.ts +43 -10
- package/src/plugin-v2.ts +449 -79
- package/src/plugin.ts +4 -0
- package/src/plugins/tui/THIRD_PARTY_NOTICES.md +24 -0
- package/src/plugins/tui/dist/server-v2.d.ts +22 -0
- package/src/plugins/tui/dist/server-v2.d.ts.map +1 -0
- package/src/plugins/tui/dist/server-v2.js +26 -0
- package/src/plugins/tui/dist/server-v2.js.map +1 -0
- package/src/plugins/tui/dist/tui-v2.d.ts +54 -51
- package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui-v2.js +762 -529
- package/src/plugins/tui/dist/tui-v2.js.map +1 -1
- package/src/plugins/tui/dist/tui.js +1 -1
- package/src/plugins/tui/index-v2.ts +3 -6
- package/src/plugins/tui/package-lock.json +17 -2
- package/src/plugins/tui/package.json +6 -3
- package/src/plugins/tui/src/context-gauge.ts +59 -0
- package/src/plugins/tui/src/cost-data.ts +607 -0
- package/src/plugins/tui/src/index-v2.tsx +360 -242
- package/src/plugins/tui/src/model-pricing.ts +536 -0
- package/src/plugins/tui/src/model-usage-limits.ts +4 -0
- package/src/plugins/tui/src/server-v2.ts +21 -0
- package/src/plugins/tui/src/sidebar-width.ts +129 -0
- package/src/plugins/tui/tsconfig.typecheck.json +1 -1
- package/src/plugins/tui/tsdown.config.ts +34 -5
- package/src/routing.yml +72 -13
- package/src/skills/README.md +4 -0
- package/src/skills/agent-coordination/SKILL.md +0 -3
- package/src/skills/artifact-management/SKILL.md +0 -3
- package/src/skills/auto-continue/SKILL.md +0 -3
- package/src/skills/code-review-checklist/SKILL.md +0 -3
- package/src/skills/context-compression/SKILL.md +0 -3
- package/src/skills/memory-bank/SKILL.md +6 -28
- package/src/skills/session-goal/SKILL.md +0 -3
- package/src/skills/simplify/SKILL.md +5 -4
- package/src/skills/tdd-with-agents/SKILL.md +0 -3
- package/src/skills/visual-review-pipeline/SKILL.md +0 -1
- package/src/pantheon/memory-context.ts +0 -1017
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs'
|
|
2
|
-
import {
|
|
2
|
+
import { readdir, readFile, writeFile } from 'node:fs/promises'
|
|
3
3
|
import { join } from 'node:path'
|
|
4
4
|
import { fileURLToPath } from 'node:url'
|
|
5
5
|
import solid from 'rolldown-plugin-solid'
|
|
@@ -10,7 +10,7 @@ const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf8')) as
|
|
|
10
10
|
version: string
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
async function
|
|
13
|
+
async function finalizeDistArtifacts(): Promise<void> {
|
|
14
14
|
const dist = join(__dirname, 'dist')
|
|
15
15
|
const entries = await readdir(dist, { withFileTypes: true })
|
|
16
16
|
|
|
@@ -20,13 +20,40 @@ async function ensureDistArtifactsEndWithNewline(): Promise<void> {
|
|
|
20
20
|
.map(async ({ name }) => {
|
|
21
21
|
const path = join(dist, name)
|
|
22
22
|
const contents = await readFile(path, 'utf8')
|
|
23
|
-
|
|
23
|
+
const normalized = normalizeHqtuiBundlePaths(name, contents)
|
|
24
|
+
const finalContents = normalized.endsWith('\n') ? normalized : `${normalized}\n`
|
|
25
|
+
if (contents !== finalContents) await writeFile(path, finalContents)
|
|
24
26
|
}),
|
|
25
27
|
)
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
/** Keep Rolldown's vendor source labels stable when a clean build uses a node_modules symlink. */
|
|
31
|
+
function normalizeHqtuiBundlePaths(name: string, contents: string): string {
|
|
32
|
+
if (name === 'tui-v2.js') {
|
|
33
|
+
return contents.replace(
|
|
34
|
+
/\/\/#region [^\n]*node_modules\/@profullstack\/hqtui\/dist\//g,
|
|
35
|
+
'//#region ../../../node_modules/@profullstack/hqtui/dist/',
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
if (name !== 'tui-v2.js.map') return contents
|
|
39
|
+
|
|
40
|
+
const map = JSON.parse(contents) as { sources?: string[]; [key: string]: unknown }
|
|
41
|
+
if (!Array.isArray(map.sources)) return contents
|
|
42
|
+
map.sources = map.sources.map((source) => {
|
|
43
|
+
const packagePath = 'node_modules/@profullstack/hqtui/'
|
|
44
|
+
const packageIndex = source.lastIndexOf(packagePath)
|
|
45
|
+
return packageIndex < 0 ? source : `../../../../${source.slice(packageIndex)}`
|
|
46
|
+
})
|
|
47
|
+
return JSON.stringify(map)
|
|
48
|
+
}
|
|
49
|
+
|
|
28
50
|
export default defineConfig({
|
|
29
|
-
entry: {
|
|
51
|
+
entry: {
|
|
52
|
+
tui: 'src/index.tsx',
|
|
53
|
+
'tui-v2': 'src/index-v2.tsx',
|
|
54
|
+
server: 'src/server.ts',
|
|
55
|
+
'server-v2': 'src/server-v2.ts',
|
|
56
|
+
},
|
|
30
57
|
format: ['esm'],
|
|
31
58
|
platform: 'node',
|
|
32
59
|
outDir: 'dist',
|
|
@@ -34,6 +61,7 @@ export default defineConfig({
|
|
|
34
61
|
outExtensions: () => ({ js: '.js' }),
|
|
35
62
|
dts: {
|
|
36
63
|
tsconfig: join(__dirname, 'tsconfig.build.json'),
|
|
64
|
+
entry: ['src/index.tsx', 'src/index-v2.tsx', 'src/server.ts', 'src/server-v2.ts'],
|
|
37
65
|
},
|
|
38
66
|
define: {
|
|
39
67
|
__PANTHEON_VERSION__: JSON.stringify(pkg.version),
|
|
@@ -48,6 +76,7 @@ export default defineConfig({
|
|
|
48
76
|
],
|
|
49
77
|
deps: {
|
|
50
78
|
neverBundle: [/^@opencode-ai\//, /^@opencode\//, /^@opentui\//, /^solid-js/],
|
|
79
|
+
alwaysBundle: [/^@profullstack\/hqtui$/],
|
|
51
80
|
},
|
|
52
|
-
onSuccess:
|
|
81
|
+
onSuccess: finalizeDistArtifacts,
|
|
53
82
|
})
|
package/src/routing.yml
CHANGED
|
@@ -174,11 +174,17 @@ agents:
|
|
|
174
174
|
- talos
|
|
175
175
|
skills:
|
|
176
176
|
- agent-coordination
|
|
177
|
-
- session-goal
|
|
178
177
|
- artifact-management
|
|
179
|
-
- context-compression
|
|
180
178
|
- auto-continue
|
|
179
|
+
- codemap
|
|
180
|
+
- context-compression
|
|
181
181
|
- incremental-implementation
|
|
182
|
+
- loop-engineering
|
|
183
|
+
- reflect
|
|
184
|
+
- session-goal
|
|
185
|
+
- simplify
|
|
186
|
+
- verification-planning
|
|
187
|
+
- worktrees
|
|
182
188
|
athena:
|
|
183
189
|
role: Strategic planner
|
|
184
190
|
reasoning_effort: high
|
|
@@ -196,8 +202,13 @@ agents:
|
|
|
196
202
|
- memory_recall
|
|
197
203
|
- pantheon_resources
|
|
198
204
|
skills:
|
|
199
|
-
-
|
|
205
|
+
- loop-engineering
|
|
200
206
|
- memory-bank
|
|
207
|
+
- reflect
|
|
208
|
+
- simplify
|
|
209
|
+
- spec-driven-development
|
|
210
|
+
- verification-planning
|
|
211
|
+
- worktrees
|
|
201
212
|
apollo:
|
|
202
213
|
role: Investigation scout
|
|
203
214
|
reasoning_effort: low
|
|
@@ -215,6 +226,11 @@ agents:
|
|
|
215
226
|
subagent_can_delegate_to: []
|
|
216
227
|
skills:
|
|
217
228
|
- auto-continue
|
|
229
|
+
- codemap
|
|
230
|
+
- loop-engineering
|
|
231
|
+
- reflect
|
|
232
|
+
- simplify
|
|
233
|
+
- worktrees
|
|
218
234
|
hermes:
|
|
219
235
|
role: Backend specialist
|
|
220
236
|
reasoning_effort: medium
|
|
@@ -232,11 +248,14 @@ agents:
|
|
|
232
248
|
- memory_store
|
|
233
249
|
- pantheon_code_mode
|
|
234
250
|
skills:
|
|
235
|
-
-
|
|
236
|
-
- file-prompts
|
|
237
|
-
- streaming-patterns
|
|
251
|
+
- clonedeps
|
|
238
252
|
- git-workflow-and-versioning
|
|
239
253
|
- incremental-implementation
|
|
254
|
+
- loop-engineering
|
|
255
|
+
- reflect
|
|
256
|
+
- simplify
|
|
257
|
+
- tdd-with-agents
|
|
258
|
+
- worktrees
|
|
240
259
|
aphrodite:
|
|
241
260
|
role: Frontend specialist
|
|
242
261
|
reasoning_effort: medium
|
|
@@ -254,9 +273,13 @@ agents:
|
|
|
254
273
|
- pantheon_resources_memory_bank
|
|
255
274
|
- pantheon_code_mode
|
|
256
275
|
skills:
|
|
276
|
+
- incremental-implementation
|
|
277
|
+
- loop-engineering
|
|
278
|
+
- reflect
|
|
279
|
+
- simplify
|
|
257
280
|
- tdd-with-agents
|
|
258
281
|
- visual-review-pipeline
|
|
259
|
-
-
|
|
282
|
+
- worktrees
|
|
260
283
|
demeter:
|
|
261
284
|
role: Database specialist
|
|
262
285
|
reasoning_effort: medium
|
|
@@ -274,8 +297,12 @@ agents:
|
|
|
274
297
|
- memory_recall
|
|
275
298
|
- pantheon_code_mode
|
|
276
299
|
skills:
|
|
277
|
-
- tdd-with-agents
|
|
278
300
|
- incremental-implementation
|
|
301
|
+
- loop-engineering
|
|
302
|
+
- reflect
|
|
303
|
+
- simplify
|
|
304
|
+
- tdd-with-agents
|
|
305
|
+
- worktrees
|
|
279
306
|
themis:
|
|
280
307
|
role: Quality gate
|
|
281
308
|
reasoning_effort: high
|
|
@@ -294,9 +321,12 @@ agents:
|
|
|
294
321
|
- pantheon_code_mode
|
|
295
322
|
skills:
|
|
296
323
|
- code-review-checklist
|
|
324
|
+
- loop-engineering
|
|
325
|
+
- reflect
|
|
297
326
|
- security-hardening
|
|
327
|
+
- simplify
|
|
298
328
|
- tdd-with-agents
|
|
299
|
-
-
|
|
329
|
+
- worktrees
|
|
300
330
|
prometheus:
|
|
301
331
|
role: Infrastructure specialist
|
|
302
332
|
reasoning_effort: medium
|
|
@@ -315,6 +345,10 @@ agents:
|
|
|
315
345
|
skills:
|
|
316
346
|
- git-workflow-and-versioning
|
|
317
347
|
- incremental-implementation
|
|
348
|
+
- loop-engineering
|
|
349
|
+
- reflect
|
|
350
|
+
- simplify
|
|
351
|
+
- worktrees
|
|
318
352
|
hephaestus:
|
|
319
353
|
role: AI pipelines
|
|
320
354
|
reasoning_effort: medium
|
|
@@ -331,8 +365,13 @@ agents:
|
|
|
331
365
|
- memory_search
|
|
332
366
|
- pantheon_code_mode
|
|
333
367
|
skills:
|
|
334
|
-
- tdd-with-agents
|
|
335
368
|
- auto-continue
|
|
369
|
+
- clonedeps
|
|
370
|
+
- loop-engineering
|
|
371
|
+
- reflect
|
|
372
|
+
- simplify
|
|
373
|
+
- tdd-with-agents
|
|
374
|
+
- worktrees
|
|
336
375
|
nyx:
|
|
337
376
|
role: Observability
|
|
338
377
|
reasoning_effort: low
|
|
@@ -349,8 +388,12 @@ agents:
|
|
|
349
388
|
- pantheon_resources_routing
|
|
350
389
|
- pantheon_code_mode
|
|
351
390
|
skills:
|
|
352
|
-
- security-hardening
|
|
353
391
|
- auto-continue
|
|
392
|
+
- loop-engineering
|
|
393
|
+
- reflect
|
|
394
|
+
- security-hardening
|
|
395
|
+
- simplify
|
|
396
|
+
- worktrees
|
|
354
397
|
gaia:
|
|
355
398
|
role: Remote sensing domain specialist
|
|
356
399
|
reasoning_effort: low
|
|
@@ -365,6 +408,10 @@ agents:
|
|
|
365
408
|
- ml_classification
|
|
366
409
|
skills:
|
|
367
410
|
- auto-continue
|
|
411
|
+
- loop-engineering
|
|
412
|
+
- reflect
|
|
413
|
+
- simplify
|
|
414
|
+
- worktrees
|
|
368
415
|
iris:
|
|
369
416
|
role: GitHub operations
|
|
370
417
|
reasoning_effort: low
|
|
@@ -380,8 +427,12 @@ agents:
|
|
|
380
427
|
- changelog_generation
|
|
381
428
|
- pantheon_resources
|
|
382
429
|
skills:
|
|
383
|
-
- git-workflow-and-versioning
|
|
384
430
|
- artifact-management
|
|
431
|
+
- git-workflow-and-versioning
|
|
432
|
+
- loop-engineering
|
|
433
|
+
- reflect
|
|
434
|
+
- simplify
|
|
435
|
+
- worktrees
|
|
385
436
|
mnemosyne:
|
|
386
437
|
role: Memory bank
|
|
387
438
|
reasoning_effort: low
|
|
@@ -402,9 +453,13 @@ agents:
|
|
|
402
453
|
subagent_can_delegate_to: []
|
|
403
454
|
skills:
|
|
404
455
|
- artifact-management
|
|
405
|
-
- memory-bank
|
|
406
456
|
- context-compression
|
|
457
|
+
- loop-engineering
|
|
458
|
+
- memory-bank
|
|
459
|
+
- reflect
|
|
407
460
|
- session-goal
|
|
461
|
+
- simplify
|
|
462
|
+
- worktrees
|
|
408
463
|
talos:
|
|
409
464
|
role: Hotfix agent
|
|
410
465
|
reasoning_effort: low
|
|
@@ -421,6 +476,10 @@ agents:
|
|
|
421
476
|
subagent_can_delegate_to: []
|
|
422
477
|
skills:
|
|
423
478
|
- incremental-implementation
|
|
479
|
+
- loop-engineering
|
|
480
|
+
- reflect
|
|
481
|
+
- simplify
|
|
482
|
+
- worktrees
|
|
424
483
|
auto_continue:
|
|
425
484
|
checkpoint_script: .pantheon/code-mode/checkpoint-session.sh
|
|
426
485
|
heartbeat_interval: 5
|
package/src/skills/README.md
CHANGED
|
@@ -117,6 +117,10 @@ The `SKILL.md` file contains YAML frontmatter with `name`, `description`, and pl
|
|
|
117
117
|
- **Agent frontmatter**: Agents declare which skills they use via the `skills:` field in their `.agent.md` frontmatter. The platform uses this to determine relevance.
|
|
118
118
|
- **OpenCode platform**: Skills are listed in the system prompt's `<available_skills>` block. The agent invokes `skill` with the matching name to load the full content.
|
|
119
119
|
|
|
120
|
+
When editing a skill, run `npm run skills:lock` to refresh its content digest,
|
|
121
|
+
then `node scripts/validate-routing.mjs` to verify the lock, routing catalog,
|
|
122
|
+
agent grants, and skill inventory.
|
|
123
|
+
|
|
120
124
|
## Quick Reference Table
|
|
121
125
|
|
|
122
126
|
| # | Skill Name | Domain | Used By |
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: context-compression
|
|
3
3
|
description: "Use only for an explicit request to compact or preserve context; prefer native OpenCode compaction and minimal resumable checkpoints."
|
|
4
|
-
context: fork
|
|
5
|
-
globs: ["**/01-active-context.md", "**/02-progress-log.md"]
|
|
6
|
-
alwaysApply: false
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Context and Checkpoint Guidance
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memory-bank
|
|
3
3
|
description: "Memory bank rules, structure, and optimization — complete guide to Pantheon memory management."
|
|
4
|
-
context: fork
|
|
5
|
-
globs: []
|
|
6
|
-
alwaysApply: false
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Memory Bank
|
|
@@ -100,32 +97,13 @@ At sprint close:
|
|
|
100
97
|
|
|
101
98
|
---
|
|
102
99
|
|
|
103
|
-
##
|
|
100
|
+
## Memory Bank maintenance
|
|
104
101
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|------|--------|-------|
|
|
111
|
-
| **Active context** | 500+ lines of history | 50 lines: current sprint only |
|
|
112
|
-
| **Progress log** | Everything since day 1 | Link to archived logs; keep last 50 lines |
|
|
113
|
-
| **Task records** | All tasks in one file | One file per task; archive completed |
|
|
114
|
-
| **Notes** | Long narrative | Bullet points with links to source |
|
|
115
|
-
|
|
116
|
-
### Compression Targets
|
|
117
|
-
|
|
118
|
-
- `01-active-context.md`: Keep under 100 lines. Archive old sprints to `_notes/`.
|
|
119
|
-
- `02-progress-log.md`: Keep last 20 entries. Archive older to `_notes/archive/`.
|
|
120
|
-
- `_tasks/`: Mark completed tasks `[x]`, move to `_tasks/archive/`.
|
|
121
|
-
|
|
122
|
-
### Commands
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
@mnemosyne Compress memory bank # Audit and compress all files
|
|
126
|
-
@mnemosyne Archive completed tasks # Move done tasks to archive
|
|
127
|
-
@mnemosyne Trim active context # Keep only current sprint
|
|
128
|
-
```
|
|
102
|
+
Memory Bank cleanup is a manual file-maintenance task, separate from native
|
|
103
|
+
conversation compaction. Do it only when requested. Keep active-context files
|
|
104
|
+
focused on current decisions and blockers; move old material only when its
|
|
105
|
+
destination and retention are clear. Do not enforce line-count or entry-count
|
|
106
|
+
targets, rewrite the archive automatically, or create one artifact per phase.
|
|
129
107
|
|
|
130
108
|
---
|
|
131
109
|
|
|
@@ -27,10 +27,11 @@ Simplify code while preserving its exact behavior. Focus on reducing complexity
|
|
|
27
27
|
|
|
28
28
|
## Verification
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
1.
|
|
32
|
-
2.
|
|
33
|
-
3.
|
|
30
|
+
For each simplification:
|
|
31
|
+
1. Choose the smallest existing test or static check that covers the changed behavior.
|
|
32
|
+
2. For a behavior change, add one focused regression test when the existing suite does not cover it; run that test and verify the behavior.
|
|
33
|
+
3. Run a broader suite only when the change crosses layers, touches a strong safety gate, affects required coverage, or a CI/release gate calls for it. `npm test` is the full repository suite, not the default after every simplification.
|
|
34
|
+
4. For documentation-only or formatting-only changes, inspect the diff and run the narrowest relevant check instead of inventing a test.
|
|
34
35
|
|
|
35
36
|
## Rules
|
|
36
37
|
- Never change public API signatures without explicit approval
|