pantheon-opencode 1.6.1 → 1.6.2-beta.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.
Files changed (99) hide show
  1. package/AGENTS.global.md +11 -11
  2. package/AGENTS.md +2 -2
  3. package/CHANGELOG.md +16 -0
  4. package/README.md +91 -19
  5. package/README.pt-BR.md +14 -9
  6. package/bin/pantheon-init.mjs +106 -19
  7. package/package.json +3 -2
  8. package/plugin.json +1 -1
  9. package/pyproject.toml +1 -1
  10. package/scripts/build-agents-md.mjs +1 -1
  11. package/scripts/doctor.mjs +213 -45
  12. package/scripts/install/agents-md.mjs +2 -1
  13. package/scripts/install/config-migration.mjs +344 -393
  14. package/scripts/install/config-paths.mjs +15 -0
  15. package/scripts/install/mcp-permissions.mjs +164 -0
  16. package/scripts/install/opencode-version.mjs +31 -13
  17. package/scripts/install/opencode-wildcard.mjs +106 -0
  18. package/scripts/install/opencode.mjs +240 -69
  19. package/scripts/install/plan-artifact.mjs +12 -1
  20. package/scripts/install/plugin.mjs +17 -1
  21. package/scripts/install/v2-capabilities.mjs +5 -6
  22. package/scripts/package-evidence.mjs +1 -0
  23. package/scripts/sandbox-env.sh +174 -0
  24. package/scripts/setup-v2-config.mjs +1703 -0
  25. package/scripts/setup.mjs +415 -0
  26. package/scripts/sync-tui.mjs +9 -1
  27. package/scripts/test-opencode-v2-sandbox.sh +438 -151
  28. package/scripts/update-skills-lock.mjs +30 -0
  29. package/skills-lock.json +10 -10
  30. package/src/agents/aphrodite.md +5 -2
  31. package/src/agents/apollo.md +5 -0
  32. package/src/agents/athena.md +6 -1
  33. package/src/agents/demeter.md +5 -1
  34. package/src/agents/gaia.md +4 -0
  35. package/src/agents/hephaestus.md +6 -1
  36. package/src/agents/hermes.md +6 -3
  37. package/src/agents/iris.md +5 -1
  38. package/src/agents/mnemosyne.md +20 -50
  39. package/src/agents/nyx.md +5 -1
  40. package/src/agents/prometheus.md +4 -0
  41. package/src/agents/talos.md +4 -0
  42. package/src/agents/themis.md +4 -0
  43. package/src/agents/zeus.md +9 -3
  44. package/src/instructions/agent-return-format.instructions.md +1 -1
  45. package/src/instructions/memory-protocol.instructions.md +3 -3
  46. package/src/instructions/test-economy.instructions.md +6 -6
  47. package/src/mcp/pantheon_vision.py +37 -36
  48. package/src/pantheon/v2-vision.ts +34 -29
  49. package/src/pantheon/vision.ts +43 -10
  50. package/src/plugin-v2.ts +30 -53
  51. package/src/plugins/tui/dist/quota-adapters.d.ts +89 -0
  52. package/src/plugins/tui/dist/quota-adapters.d.ts.map +1 -0
  53. package/src/plugins/tui/dist/quota-adapters.js +1142 -0
  54. package/src/plugins/tui/dist/quota-adapters.js.map +1 -0
  55. package/src/plugins/tui/dist/quota-cli.d.ts +17 -0
  56. package/src/plugins/tui/dist/quota-cli.d.ts.map +1 -0
  57. package/src/plugins/tui/dist/quota-cli.js +184 -0
  58. package/src/plugins/tui/dist/quota-cli.js.map +1 -0
  59. package/src/plugins/tui/dist/quota-rpc-UL2HuFRJ.js +390 -0
  60. package/src/plugins/tui/dist/quota-rpc-UL2HuFRJ.js.map +1 -0
  61. package/src/plugins/tui/dist/server-v2.d.ts +14 -0
  62. package/src/plugins/tui/dist/server-v2.d.ts.map +1 -0
  63. package/src/plugins/tui/dist/server-v2.js +673 -0
  64. package/src/plugins/tui/dist/server-v2.js.map +1 -0
  65. package/src/plugins/tui/dist/tui-v2.d.ts +247 -52
  66. package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
  67. package/src/plugins/tui/dist/tui-v2.js +2492 -529
  68. package/src/plugins/tui/dist/tui-v2.js.map +1 -1
  69. package/src/plugins/tui/dist/tui.js +1 -1
  70. package/src/plugins/tui/index-v2.ts +3 -6
  71. package/src/plugins/tui/package-lock.json +2 -2
  72. package/src/plugins/tui/package.json +3 -2
  73. package/src/plugins/tui/src/context-gauge.ts +59 -0
  74. package/src/plugins/tui/src/go-key-diagnostic-ui.ts +100 -0
  75. package/src/plugins/tui/src/go-key-diagnostic.ts +125 -0
  76. package/src/plugins/tui/src/index-v2.tsx +199 -240
  77. package/src/plugins/tui/src/model-usage-limits.ts +4 -0
  78. package/src/plugins/tui/src/quota-adapters.ts +1598 -0
  79. package/src/plugins/tui/src/quota-cli.ts +237 -0
  80. package/src/plugins/tui/src/quota-rpc.ts +209 -0
  81. package/src/plugins/tui/src/quota-v2-model.ts +1032 -0
  82. package/src/plugins/tui/src/quota-v2.tsx +986 -0
  83. package/src/plugins/tui/src/server-v2.ts +841 -0
  84. package/src/plugins/tui/src/sidebar-width.ts +129 -0
  85. package/src/plugins/tui/tsconfig.typecheck.json +1 -1
  86. package/src/plugins/tui/tsdown.config.ts +8 -1
  87. package/src/routing.yml +72 -13
  88. package/src/skills/README.md +4 -0
  89. package/src/skills/agent-coordination/SKILL.md +0 -3
  90. package/src/skills/artifact-management/SKILL.md +0 -3
  91. package/src/skills/auto-continue/SKILL.md +0 -3
  92. package/src/skills/code-review-checklist/SKILL.md +0 -3
  93. package/src/skills/context-compression/SKILL.md +0 -3
  94. package/src/skills/memory-bank/SKILL.md +6 -28
  95. package/src/skills/session-goal/SKILL.md +0 -3
  96. package/src/skills/simplify/SKILL.md +5 -4
  97. package/src/skills/tdd-with-agents/SKILL.md +0 -3
  98. package/src/skills/visual-review-pipeline/SKILL.md +0 -1
  99. package/src/pantheon/memory-context.ts +0 -1017
@@ -0,0 +1,129 @@
1
+ /** Conservative content budget; the host sidebar slot does not report its runtime width. */
2
+ export const SIDEBAR_CONTENT_WIDTH = 34
3
+
4
+ export const GRAPHEMES = new Intl.Segmenter(undefined, { granularity: 'grapheme' })
5
+
6
+ /** A grapheme the host draws two cells wide: emoji presentation, an extended
7
+ * pictograph (a bare `❤` counts too, exactly as the host's `emoji-regex`
8
+ * does) and a regional-indicator pair (a flag). */
9
+ const EMOJI_GLYPH = /\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{Regional_Indicator}/u
10
+ /** VS16 asks for emoji presentation; without it `1` is one cell, with it the
11
+ * keycap sequence is drawn as one two-cell glyph. */
12
+ const EMOJI_PRESENTATION_SELECTOR = '\uFE0F'
13
+ /** Unicode default-ignorable code points carry no width of their own. */
14
+ const IGNORABLE_GLYPH = /^\p{Default_Ignorable_Code_Point}$/u
15
+ /** East Asian Wide/Fullwidth ranges — two cells, never the ambiguous width
16
+ * (the host measures ambiguous as narrow, so `▸`/`✓`/`—` stay one cell).
17
+ * Generated from the host's own measurement (`string-width` over every code
18
+ * point, emoji excluded), so this table can be regenerated verbatim when the
19
+ * host upgrades its Unicode data instead of being hand-edited. */
20
+ const CELL_WIDE_RANGES: readonly (readonly [number, number])[] = [
21
+ [0x1100, 0x115e],
22
+ [0x2329, 0x232a],
23
+ [0x2630, 0x2637],
24
+ [0x268a, 0x268f],
25
+ [0x2e80, 0x2e99],
26
+ [0x2e9b, 0x2ef3],
27
+ [0x2f00, 0x2fd5],
28
+ [0x2ff0, 0x302f],
29
+ [0x3031, 0x303c],
30
+ [0x303e, 0x303e],
31
+ [0x3041, 0x3096],
32
+ [0x3099, 0x30ff],
33
+ [0x3105, 0x312f],
34
+ [0x3131, 0x3163],
35
+ [0x3165, 0x318e],
36
+ [0x3190, 0x31e5],
37
+ [0x31ef, 0x321e],
38
+ [0x3220, 0x3247],
39
+ [0x3250, 0x3296],
40
+ [0x3298, 0x3298],
41
+ [0x329a, 0xa48c],
42
+ [0xa490, 0xa4c6],
43
+ [0xa960, 0xa97c],
44
+ [0xac00, 0xd7a3],
45
+ [0xf900, 0xfaff],
46
+ [0xfe10, 0xfe19],
47
+ [0xfe30, 0xfe52],
48
+ [0xfe54, 0xfe66],
49
+ [0xfe68, 0xfe6b],
50
+ [0xff01, 0xff60],
51
+ [0xffe0, 0xffe6],
52
+ [0x16fe0, 0x16fe4],
53
+ [0x16ff0, 0x16ff6],
54
+ [0x17000, 0x18cda],
55
+ [0x18cff, 0x18d20],
56
+ [0x18d80, 0x18df2],
57
+ [0x18e00, 0x19191],
58
+ [0x191a0, 0x191d2],
59
+ [0x1aff0, 0x1aff3],
60
+ [0x1aff5, 0x1affb],
61
+ [0x1affd, 0x1affe],
62
+ [0x1b000, 0x1b128],
63
+ [0x1b132, 0x1b132],
64
+ [0x1b150, 0x1b152],
65
+ [0x1b155, 0x1b155],
66
+ [0x1b164, 0x1b168],
67
+ [0x1b170, 0x1b2fb],
68
+ [0x1d300, 0x1d356],
69
+ [0x1d360, 0x1d376],
70
+ [0x1f200, 0x1f200],
71
+ [0x1f210, 0x1f219],
72
+ [0x1f21b, 0x1f22e],
73
+ [0x1f230, 0x1f231],
74
+ [0x1f23b, 0x1f23b],
75
+ [0x1f240, 0x1f248],
76
+ [0x1f260, 0x1f265],
77
+ [0x20000, 0x2fffd],
78
+ [0x30000, 0x3fffd],
79
+ ]
80
+
81
+ /** One code point the terminal draws no cell for: control characters, the
82
+ * zero-width joiners/marks, combining marks and variation selectors. */
83
+ function isZeroWidthCodePoint(code: number, glyph: string): boolean {
84
+ if (code <= 0x1f || (code >= 0x7f && code <= 0x9f)) return true
85
+ if (code >= 0x200b && code <= 0x200f) return true
86
+ if (code === 0xfeff) return true
87
+ if (code >= 0x300 && code <= 0x36f) return true
88
+ if (code >= 0x1ab0 && code <= 0x1aff) return true
89
+ if (code >= 0x1dc0 && code <= 0x1dff) return true
90
+ if (code >= 0x20d0 && code <= 0x20ff) return true
91
+ if (code >= 0xfe00 && code <= 0xfe0f) return true
92
+ if (code >= 0xfe20 && code <= 0xfe2f) return true
93
+ if (code >= 0xe0100 && code <= 0xe01ef) return true
94
+ if (code >= 0xd800 && code <= 0xdfff) return true // a lone surrogate
95
+ return IGNORABLE_GLYPH.test(glyph)
96
+ }
97
+
98
+ function isWideCodePoint(code: number): boolean {
99
+ for (const [low, high] of CELL_WIDE_RANGES) {
100
+ if (code < low) return false
101
+ if (code <= high) return true
102
+ }
103
+ return false
104
+ }
105
+
106
+ /** Cells one grapheme occupies. */
107
+ function graphemeWidth(segment: string): number {
108
+ if (EMOJI_GLYPH.test(segment)) return 2
109
+ // A lone VS16 carries no width; after a base it asks for emoji presentation.
110
+ if (segment.length > 1 && segment.includes(EMOJI_PRESENTATION_SELECTOR)) return 2
111
+ let width = 0
112
+ for (const glyph of segment) {
113
+ const code = glyph.codePointAt(0) ?? 0
114
+ if (isZeroWidthCodePoint(code, glyph)) continue
115
+ width += isWideCodePoint(code) ? 2 : 1
116
+ }
117
+ return width
118
+ }
119
+
120
+ /** Terminal cells `value` occupies — the unit every column in this plugin is
121
+ * measured in. Mirrors the host (that is how `@opentui/core` sizes a text
122
+ * run): emoji count as two cells, East Asian Wide/Fullwidth as two, East
123
+ * Asian Ambiguous as one, combining marks and variation selectors as none.
124
+ * Pure. */
125
+ export function cellWidth(value: string): number {
126
+ let width = 0
127
+ for (const { segment } of GRAPHEMES.segment(value)) width += graphemeWidth(segment)
128
+ return width
129
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "//": "Typecheck gate for the V2 TUI entry only. `tsc --noEmit` at the package root was a no-op: with no tsconfig in this directory tsc walked up to the repo tsconfig.json, which excludes src/plugins/tui entirely — so nothing here was checked. tsdown bundles without type-checking, which is how an invalid event name (session.updated, absent from the OpenCode V2 event union) shipped in the V2 rewrite. This config points tsc at the V2 entry plus its ambient declarations so a type error in src/index-v2.tsx fails `npm run typecheck`. The V1 entry (src/index.tsx) is intentionally NOT included: it carries pre-existing type errors out of scope for the V2 gate. Keep this file strict JSON — the repo pre-commit `check-json` hook rejects comments.",
3
3
  "extends": "./tsconfig.build.json",
4
- "include": ["src/index-v2.tsx", "src/opencode-v2.d.ts"]
4
+ "include": ["src/index-v2.tsx", "src/server-v2.ts", "src/opencode-v2.d.ts"]
5
5
  }
@@ -26,7 +26,14 @@ async function ensureDistArtifactsEndWithNewline(): Promise<void> {
26
26
  }
27
27
 
28
28
  export default defineConfig({
29
- entry: { tui: 'src/index.tsx', 'tui-v2': 'src/index-v2.tsx', server: 'src/server.ts' },
29
+ entry: {
30
+ tui: 'src/index.tsx',
31
+ 'tui-v2': 'src/index-v2.tsx',
32
+ server: 'src/server.ts',
33
+ 'server-v2': 'src/server-v2.ts',
34
+ 'quota-cli': 'src/quota-cli.ts',
35
+ 'quota-adapters': 'src/quota-adapters.ts',
36
+ },
30
37
  format: ['esm'],
31
38
  platform: 'node',
32
39
  outDir: 'dist',
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
- - spec-driven-development
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
- - tdd-with-agents
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
- - file-prompts
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
- - context-compression
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
@@ -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: agent-coordination
3
3
  description: "Multi-agent orchestration with model routing, category delegation, and sprint management. Use for coordinating Pantheon agents."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Agent Coordination
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: artifact-management
3
3
  description: "Structured artifacts for planned, multi-phase, or materially risky implementation work."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Artifact Management
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: auto-continue
3
3
  description: "Auto-continue through todos with idle detection and safety gates. Use for multi-step orchestration."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Auto-Continue Mode
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: code-review-checklist
3
3
  description: "Systematic code review with quality gates, security audit, and parallel checks. Use for structured feedback on pull requests."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Code Review Checklist
@@ -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
- ## Optimization: Compression Rules
100
+ ## Memory Bank maintenance
104
101
 
105
- ### Problem: Memory bank files grow too large, wasting tokens on every load.
106
-
107
- ### Strategy: Lazy-load only what's needed
108
-
109
- | Rule | Before | After |
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
 
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: session-goal
3
3
  description: "Pin session objectives to prevent scope creep. Use for alignment across long multi-agent sessions."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Session Goal — Alignment Anchor
@@ -27,10 +27,11 @@ Simplify code while preserving its exact behavior. Focus on reducing complexity
27
27
 
28
28
  ## Verification
29
29
 
30
- After each simplification:
31
- 1. Run tests (`pytest`, `npm test`)
32
- 2. Verify no behavior change
33
- 3. If no tests exist: add minimal characterization tests first
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
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: tdd-with-agents
3
3
  description: "TDD enforcement with RED→GREEN→REFACTOR cycle and advanced testing patterns. Use for test-driven development across all layers."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # TDD with Agents
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: visual-review-pipeline
3
3
  description: "Automated visual review pipeline — Playwright screenshots, self-analysis, fix loop, escalation. Used by Aphrodite for UI verification."
4
- applyTo: "agents/{aphrodite,zeus}.agent.md"
5
4
  ---
6
5
 
7
6
  # Visual Review Pipeline