pantheon-opencode 1.6.0-beta.7 → 1.6.0-beta.8
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.md +58 -15
- package/CHANGELOG.md +37 -100
- package/README.md +78 -102
- package/README.pt-BR.md +19 -37
- package/package.json +1 -2
- package/plugin.json +2 -2
- package/pyproject.toml +1 -1
- package/scripts/build-agents-md.mjs +2 -3
- package/scripts/doctor.mjs +22 -104
- package/scripts/hooks/scan-secrets.sh +97 -0
- package/scripts/install/config-migration.mjs +9 -42
- package/scripts/install/interactive.mjs +1 -1
- package/scripts/install/opencode.mjs +114 -43
- package/scripts/install/strings.mjs +0 -8
- package/scripts/probe-pantheon-cost.mjs +3 -16
- package/scripts/test-opencode-v2-sandbox.sh +203 -786
- package/scripts/validate-sandbox-install.mjs +138 -0
- package/skills-lock.json +3 -4
- package/src/agents/aphrodite.md +2 -9
- package/src/agents/demeter.md +0 -9
- package/src/agents/gaia.md +1 -0
- package/src/agents/hephaestus.md +0 -9
- package/src/agents/hermes.md +2 -9
- package/src/agents/mnemosyne.md +14 -42
- package/src/agents/prometheus.md +0 -9
- package/src/agents/themis.md +0 -1
- package/src/agents/zeus.md +180 -19
- package/src/instructions/agent-return-format.instructions.md +48 -3
- package/src/instructions/memory-protocol.instructions.md +8 -9
- package/src/instructions/zeus-anti-stall.instructions.md +54 -6
- package/src/instructions/zeus-council-synthesis.instructions.md +71 -0
- package/src/instructions/zeus-memory-operations.instructions.md +4 -4
- package/src/instructions/zeus-timeout-retry.instructions.md +81 -7
- package/src/pantheon/v2-delegation-enforce.ts +2 -1
- package/src/plugin-v2.ts +251 -168
- package/src/plugins/pantheon-hooks.ts +35 -82
- package/src/plugins/tui/dist/tui.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui.js +26 -50
- package/src/plugins/tui/package-lock.json +2 -2
- package/src/plugins/tui/package.json +1 -1
- package/src/plugins/tui/src/index.tsx +25 -60
- package/src/routing.yml +4 -2
- package/src/skills/README.md +7 -12
- package/src/skills/agent-coordination/SKILL.md +83 -13
- package/src/skills/auto-continue/SKILL.md +13 -14
- package/src/skills/context-compression/SKILL.md +26 -879
- package/src/pantheon/secret-scanner.ts +0 -489
- package/src/plugins/tui/README.md +0 -14
- package/src/skills/council-synthesis/SKILL.md +0 -29
|
@@ -1,25 +1,95 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-coordination
|
|
3
|
-
description: "
|
|
3
|
+
description: "Multi-agent orchestration with model routing, category delegation, and sprint management. Use for coordinating Pantheon agents."
|
|
4
4
|
context: fork
|
|
5
5
|
globs: []
|
|
6
6
|
alwaysApply: false
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
# Agent
|
|
9
|
+
# Agent Coordination
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Master guide to orchestrating the multi-agent system. Includes category routing, model selection, and sprint management for rapid, TDD-driven feature development.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Agent Hierarchy
|
|
16
|
+
|
|
17
|
+
See `AGENTS.md` for the full agent table.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Category Routing
|
|
22
|
+
|
|
23
|
+
Route tasks to optimized agents based on category instead of specifying agents manually:
|
|
24
|
+
|
|
25
|
+
| Category | Agent | Use For |
|
|
26
|
+
|----------|-------|---------|
|
|
27
|
+
| **Deep** | Athena, Hephaestus | Complex planning, AI pipelines |
|
|
28
|
+
| **Quick** | Talos, Apollo | Fast fixes, codebase search |
|
|
29
|
+
| **Ultrabrain** | Zeus | Multi-agent orchestration, model routing |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Sprint Workflow
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
1. User describes feature
|
|
37
|
+
2. @athena creates PLAN with phases and agents
|
|
38
|
+
3. User approves PLAN (GATE 1)
|
|
39
|
+
4. Zeus dispatches agents to phases (parallel when possible)
|
|
40
|
+
5. Each agent: TDD cycle → writes IMPL artifact
|
|
41
|
+
6. @themis reviews all phases (GATE 2)
|
|
42
|
+
7. User reviews Themis findings
|
|
43
|
+
8. If approved → user commits (GATE 3)
|
|
44
|
+
9. @mnemosyne updates memory bank
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Parallel Execution Declaration
|
|
14
50
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
51
|
+
```
|
|
52
|
+
🔀 PARALLEL EXECUTION — Phase 2
|
|
53
|
+
Running simultaneously:
|
|
54
|
+
- @hermes → backend tests → .tmp/IMPL-phase2-hermes.md
|
|
55
|
+
- @aphrodite → frontend → .tmp/IMPL-phase2-aphrodite.md
|
|
56
|
+
- @demeter → migrations → .tmp/IMPL-phase2-demeter.md
|
|
57
|
+
Themis reviews all three after completion.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Artifact Protocol
|
|
63
|
+
|
|
64
|
+
All phase outputs go to `.pantheon/memory-bank/.tmp/`. See `skill: artifact-management` for the complete protocol (who generates what, templates, lifecycle).
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Safety Gates
|
|
69
|
+
|
|
70
|
+
| Gate | When | Why |
|
|
71
|
+
|------|------|-----|
|
|
72
|
+
| **GATE 1** | After PLAN | User confirms scope |
|
|
73
|
+
| **GATE 2** | After Themis review | User sees changes |
|
|
74
|
+
| **GATE 3** | Before git commit | User controls history |
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Model Selection
|
|
79
|
+
|
|
80
|
+
Model routing is handled by Prometheus and the platform configuration. Zeus delegates model selection to the tier system (`fast` / `default` / `coding` / `premium`).
|
|
81
|
+
|
|
82
|
+
- **Deep tasks** → High-quality models (Claude, GPT-4)
|
|
83
|
+
- **Quick tasks** → Fast/cheap models (Haiku, 4o-mini)
|
|
84
|
+
- **Visual tasks** → Multimodal models (GPT-4V, Claude Vision)
|
|
85
|
+
- **Cost optimization** → Route to cheapest model that meets quality bar
|
|
86
|
+
|
|
87
|
+
---
|
|
19
88
|
|
|
20
|
-
##
|
|
89
|
+
## Anti-Patterns
|
|
21
90
|
|
|
22
|
-
- Zeus
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
91
|
+
- ❌ Zeus doing implementation work (orchestrates, doesn't code)
|
|
92
|
+
- ❌ Skipping TDD cycle (RED → GREEN → REFACTOR)
|
|
93
|
+
- ❌ Auto-committing without user approval
|
|
94
|
+
- ❌ Parallel phases with dependencies (order matters)
|
|
95
|
+
- ❌ Ignoring Themis CRITICAL findings
|
|
@@ -52,8 +52,6 @@ Full-auto may continue only within a task and scope the user explicitly authoriz
|
|
|
52
52
|
|
|
53
53
|
---
|
|
54
54
|
|
|
55
|
-
---
|
|
56
|
-
|
|
57
55
|
## Implementation Pattern
|
|
58
56
|
|
|
59
57
|
```
|
|
@@ -165,25 +163,26 @@ Should I now run the migration tests? [waiting]
|
|
|
165
163
|
|
|
166
164
|
## Session Heartbeat & Checkpoints
|
|
167
165
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
Session state is **not** file-based. It lives in **pantheon-persistence** under the
|
|
167
|
+
`checkpoint:<slug>` namespace and is cleaned up automatically by a 4h TTL.
|
|
168
|
+
|
|
169
|
+
Use checkpoints only when `context_save` and `context_get` are explicitly
|
|
170
|
+
present in the active session's tool list. If unavailable, do not attempt a
|
|
171
|
+
checkpoint or guess a session ID; carry the handoff in the normal response.
|
|
173
172
|
|
|
174
|
-
When
|
|
175
|
-
`
|
|
176
|
-
|
|
177
|
-
compaction. `state` must be an object — never pass a bare string as `content`: its
|
|
173
|
+
When available, call `context_save` with `content=JSON.stringify(state)` and an
|
|
174
|
+
explicit `session_id`. A successful save needs no immediate `context_get`; read
|
|
175
|
+
only when resuming or when the save result is uncertain. Reuse the same session
|
|
176
|
+
ID so the `latest` pointer survives compaction. `state` must be an object — never pass a bare string as `content`: its
|
|
178
177
|
`goal`/`phase`/`delegations`/`heartbeat` values are objects and `tail` is an array.
|
|
179
178
|
`goal` is optional; when unset, omit the key rather than passing a string placeholder.
|
|
180
179
|
|
|
181
180
|
### Heartbeat Check
|
|
182
|
-
-
|
|
183
|
-
- Write a heartbeat after anti-stall recovery only when the current session exposes
|
|
181
|
+
- Check heartbeat only when checkpoint tools are available and the workflow needs a durable resume.
|
|
182
|
+
- Write a heartbeat after anti-stall recovery only when the current session exposes checkpoint tools.
|
|
184
183
|
|
|
185
184
|
### Checkpoint Rules
|
|
186
|
-
1. Save checkpoints for long-running/multi-phase work, context-loss risk, or substantive parallel work — not a one-off command or bounded fix
|
|
185
|
+
1. Save checkpoints only for long-running/multi-phase work, context-loss risk, or substantive parallel work — not a one-off command or bounded fix
|
|
187
186
|
2. Include current phase and remaining tasks when a checkpoint is warranted
|
|
188
187
|
3. On resume, read the latest checkpoint only with a known session ID; otherwise request the missing handoff context.
|
|
189
188
|
|