pantheon-opencode 1.1.1 → 1.1.3-beta.0
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/commands/pantheon-audit.md +25 -0
- package/commands/pantheon-consolidate.md +11 -0
- package/commands/pantheon-deepwork.md +79 -0
- package/commands/pantheon-optimize.md +79 -0
- package/commands/pantheon.md +49 -0
- package/package.json +1 -1
- package/commands/pantheon-reflect.md +0 -16
- package/commands/pantheon-verify.md +0 -17
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Audit: heuristic scan (zero LLM) + Themis review. Usage: /pantheon-audit [--light|--full|--plan]"
|
|
3
|
+
agent: "zeus"
|
|
4
|
+
---
|
|
5
|
+
# /pantheon-audit — Quality & Security Audit
|
|
6
|
+
|
|
7
|
+
**What:** Layer 1 heuristic scan (zero tokens, <2s). If BLOCKING, returns score. If APPROVED, Themis deep review.
|
|
8
|
+
|
|
9
|
+
**Usage:**
|
|
10
|
+
- `/pantheon-audit` — Full audit (Layer 1 → 2 → 3)
|
|
11
|
+
- `/pantheon-audit --light` — Layer 1 only (quick scan)
|
|
12
|
+
- `/pantheon-audit --full` — Force full review
|
|
13
|
+
- `/pantheon-audit --plan` — Verification planning only
|
|
14
|
+
|
|
15
|
+
## Layers
|
|
16
|
+
|
|
17
|
+
### Layer 1 — Heuristic Scan
|
|
18
|
+
`python3 scripts/themis_heuristic_scan.py [--path=<dir>]`
|
|
19
|
+
Zero tokens, <2s. Checks: ruff, biome, anti-pattern slop, anti-overengineering (YAGNI), hash-anchored edits. Returns score 0-100 + APPROVED/BLOCKING.
|
|
20
|
+
|
|
21
|
+
### Layer 2 — Themis Deep Review
|
|
22
|
+
~500 tokens. Confidence scoring, regression prediction, OWASP Top 10.
|
|
23
|
+
|
|
24
|
+
### Layer 3 — Verification Planning
|
|
25
|
+
For N>5 file changes. Sugere plano de verificação antes de implementar.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Merge and consolidate memory entries"
|
|
3
|
+
agent: zeus
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Merge related memory entries and consolidate duplicates:
|
|
7
|
+
|
|
8
|
+
1. Search for related memories via memory_search
|
|
9
|
+
2. Merge overlapping entries
|
|
10
|
+
3. Remove duplicates via memory_forget
|
|
11
|
+
4. Store consolidated entry via memory_store
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Start a heavy multi-phase task with persisted checkpoints, phased specialist dispatch, and Themis review gates. Progress saved to .pantheon/deepwork/ for resumability."
|
|
3
|
+
agent: "zeus"
|
|
4
|
+
---
|
|
5
|
+
# /pantheon-deepwork — Heavy Task Workflow
|
|
6
|
+
|
|
7
|
+
Structured, checkpointed workflow for complex multi-step tasks spanning multiple agents and sessions. Progress persisted to `.pantheon/deepwork/<task-slug>/`. Each phase gated by Themis.
|
|
8
|
+
|
|
9
|
+
| Use When | Don't Use When |
|
|
10
|
+
|---|---|
|
|
11
|
+
| 10+ turns or multi-session | Simple fixes (→ @talos) |
|
|
12
|
+
| Multi-agent dependencies | Single-file changes (→ /subtask) |
|
|
13
|
+
| Costly context loss | < 5 turns (→ normal delegation) |
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
Phase 0: SCOPING
|
|
19
|
+
└─ Zeus + Athena define scope, phases, acceptance criteria → PLAN.md
|
|
20
|
+
|
|
21
|
+
Phase 1: DISCOVERY
|
|
22
|
+
└─ @apollo maps relevant codebase areas → DISCOVERY.md
|
|
23
|
+
|
|
24
|
+
Phase 2-N: IMPLEMENTATION (parallel per phase)
|
|
25
|
+
└─ @hermes, @aphrodite, @demeter, @hephaestus, @prometheus
|
|
26
|
+
└─ Output: IMPL-phase-<N>-<agent>.md
|
|
27
|
+
|
|
28
|
+
GATE after each phase:
|
|
29
|
+
└─ @themis reviews output → FAIL (fix + resubmit) or PASS (continue)
|
|
30
|
+
|
|
31
|
+
Phase FINAL: VERIFICATION
|
|
32
|
+
└─ @themis full integration review → REVIEW.md
|
|
33
|
+
└─ All tests pass, coverage >80%
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Checkpoints
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
Usage: --resume <slug> | --status <slug> | --list
|
|
40
|
+
|
|
41
|
+
.pantheon/deepwork/<slug>/
|
|
42
|
+
├── PLAN.md DISCOVERY.md IMPL-phase-*-*.md phase-*-review.md REVIEW.md STATUS.md
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Full-Auto Mode (`--full-auto`)
|
|
46
|
+
|
|
47
|
+
> ⚠️ Bypasses human review gates. Tier 1 gates (plan, commit, deploy) still require approval.
|
|
48
|
+
|
|
49
|
+
**Themis auto-approves non-blocking reviews** — only stops on **BLOCKING** verdict. No waiting between phases. Checkpoints saved at every boundary.
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
/pantheon-deepwork --full-auto "Refactor auth service to use JWT"
|
|
53
|
+
/pantheon-deepwork --full-auto --resume auth-jwt
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Anti-Stall
|
|
57
|
+
|
|
58
|
+
- **Stall Detection** — 3 turns no progress → escalate
|
|
59
|
+
- **Phase Reminder** — continue only independent work after dispatch
|
|
60
|
+
- **Progress Checkpoint** — every 5 turns, summarize completed vs remaining
|
|
61
|
+
- **Delegate Retry** — failures retried once with rephrased prompt
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
/pantheon-deepwork "Add user authentication with OAuth2" # Start new session
|
|
67
|
+
/pantheon-deepwork --resume auth-oauth2 # Resume interrupted
|
|
68
|
+
/pantheon-deepwork --status auth-oauth2 # Show progress
|
|
69
|
+
/pantheon-deepwork --list /pantheon-deepwork --archive <slug> # List / archive
|
|
70
|
+
/pantheon-deepwork --full-auto "Refactor auth" # Themis auto-approve
|
|
71
|
+
/pantheon-deepwork --full-auto --resume auth-refactor # Resume full-auto
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Safety
|
|
75
|
+
|
|
76
|
+
- All progress persisted — work is never lost
|
|
77
|
+
- Each phase gated by Themis — quality enforced at every step
|
|
78
|
+
- Explicit resume required — no auto-continue without intent (unless `--full-auto`)
|
|
79
|
+
- `.pantheon/deepwork/` is gitignored — no accidental commits
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Scan, clean, cache, and archive Pantheon project files. Scans for bloat, archives completed deepwork, migrates flat files to MCP memory, and reports optimization opportunities. Usage: /pantheon-optimize"
|
|
3
|
+
agent: "zeus"
|
|
4
|
+
---
|
|
5
|
+
# /pantheon-optimize — Pantheon Project Optimizer
|
|
6
|
+
|
|
7
|
+
**What:** Multi-mode optimization: scans for documentation bloat, archives completed deepwork, migrates memory-bank flat files to MCP memory (ChromaDB), and reports token savings.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/pantheon-optimize → Full scan + compress (default)
|
|
13
|
+
/pantheon-optimize --dry-run → Preview only, no changes
|
|
14
|
+
/pantheon-optimize --archive → Archive completed deepwork sessions
|
|
15
|
+
/pantheon-optimize --cache → Migrate memory-bank to MCP memory
|
|
16
|
+
/pantheon-optimize --path=<dir> → Limit scan to directory
|
|
17
|
+
/pantheon-optimize --all → Run all modes (default)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Modes
|
|
21
|
+
|
|
22
|
+
### `--archive` — Deepwork Archiving
|
|
23
|
+
Archives completed deepwork sessions from `.pantheon/deepwork/<slug>/` to `.pantheon/deepwork/archive/<slug>/`.
|
|
24
|
+
|
|
25
|
+
**Criteria:** A session is "completed" if it has a `REVIEW.md` containing "APPROVED".
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
/pantheon-optimize archive → Interactive (ask per slug)
|
|
29
|
+
/pantheon-optimize archive --dry-run → Preview only
|
|
30
|
+
/pantheon-optimize archive --auto → Archive all completed
|
|
31
|
+
/pantheon-optimize archive --auto --keep=2 → Keep only PLAN.md + REVIEW.md
|
|
32
|
+
/pantheon-optimize archive --auto --compress → Single .md per slug
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### `--cache` — Memory Bank Migration
|
|
36
|
+
Scans `.pantheon/memory-bank/` for flat `.md` files and migrates them to the MCP memory server (ChromaDB).
|
|
37
|
+
|
|
38
|
+
**What it does:**
|
|
39
|
+
1. Reads all `.md` files in `.pantheon/memory-bank/`
|
|
40
|
+
2. Chunks by heading (## sections)
|
|
41
|
+
3. Calls `memory_store()` for each chunk with appropriate namespace
|
|
42
|
+
4. Optionally archives the original files after successful migration
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/pantheon-optimize cache → Preview candidates, ask confirm
|
|
46
|
+
/pantheon-optimize cache --dry-run → Show what would migrate
|
|
47
|
+
/pantheon-optimize cache --auto → Migrate + archive originals
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### `--dry-run` (global flag)
|
|
51
|
+
Prevents any destructive action. Shows what WOULD be done.
|
|
52
|
+
|
|
53
|
+
### Default mode (no flags)
|
|
54
|
+
Runs bloat scan on all `.md` and `.json` files + compression report.
|
|
55
|
+
|
|
56
|
+
## Output
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
🧹 Pantheon Optimize Report
|
|
60
|
+
|
|
61
|
+
📦 Bloat Scan: 47 .md + 12 .json files
|
|
62
|
+
→ 3 oversized files found
|
|
63
|
+
→ ~2.4K tokens recoverable
|
|
64
|
+
|
|
65
|
+
📁 Deepwork Archive: 15 candidates
|
|
66
|
+
→ 12 completed (REVIEW.md APPROVED)
|
|
67
|
+
→ 3 in progress (skipped)
|
|
68
|
+
→ Run with --archive --auto to archive 12 sessions
|
|
69
|
+
|
|
70
|
+
🗄️ Memory Cache: 24 files in memory-bank/
|
|
71
|
+
→ 18 already in MCP memory (dedup)
|
|
72
|
+
→ 6 candidates for migration (~3.2K tokens)
|
|
73
|
+
→ Run with --cache to migrate
|
|
74
|
+
|
|
75
|
+
📊 Summary:
|
|
76
|
+
⚡ 15 files optimizable → ~5.6K tokens
|
|
77
|
+
🗑️ 12 deepworks archivable → ~320 files cleanup
|
|
78
|
+
🗄️ 6 memory files → MCP migration ready
|
|
79
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Dispatch a question to 2-4 specialist agents via inline Zeus council"
|
|
3
|
+
agent: zeus
|
|
4
|
+
---
|
|
5
|
+
# /pantheon — Council Synthesis
|
|
6
|
+
|
|
7
|
+
**What:** Dispatches the question to 2-3 specialist agents **in parallel** via `task()`, then synthesizes their responses into a single recommendation with resolved divergences.
|
|
8
|
+
**Usage:** `/pantheon <question>`
|
|
9
|
+
**When:** Architecture trade-offs, technology selection, security assessments, multi-stakeholder concerns
|
|
10
|
+
**Returns:** Structured synthesis with recommendation, confidence level, resolved divergences
|
|
11
|
+
|
|
12
|
+
## Dispatch Selection
|
|
13
|
+
|
|
14
|
+
Choose 2-3 agents based on domain:
|
|
15
|
+
|
|
16
|
+
| Domain | Specialists |
|
|
17
|
+
|--------|-------------|
|
|
18
|
+
| Architecture | hermes, demeter, themis, athena |
|
|
19
|
+
| Security | themis, hermes, prometheus, nyx |
|
|
20
|
+
| Database | demeter, hermes, prometheus |
|
|
21
|
+
| AI/RAG | hephaestus, nyx |
|
|
22
|
+
| Infrastructure | prometheus, hermes, themis |
|
|
23
|
+
| Frontend/UX | aphrodite, themis, hermes |
|
|
24
|
+
| Observability | nyx, hermes |
|
|
25
|
+
| General | athena, themis, hermes |
|
|
26
|
+
|
|
27
|
+
Send ALL `task()` calls in a single message. Each must return: Recommendation · Reasoning · Trade-offs · Risks · Confidence.
|
|
28
|
+
|
|
29
|
+
## Synthesis Structure
|
|
30
|
+
|
|
31
|
+
After ALL responses arrive, produce EXACTLY this structure:
|
|
32
|
+
|
|
33
|
+
### 📋 Individual Assessments
|
|
34
|
+
For each specialist: Recommendation, Reasoning, Trade-offs, Risks, Confidence
|
|
35
|
+
|
|
36
|
+
### ✅ Agreements
|
|
37
|
+
Where 2+ specialists converge
|
|
38
|
+
|
|
39
|
+
### ⚡ Divergences
|
|
40
|
+
Where they disagree — resolve each one with reasoning
|
|
41
|
+
|
|
42
|
+
### 🔥 Total Divergence
|
|
43
|
+
If ALL specialists disagree on a point, call this out explicitly
|
|
44
|
+
|
|
45
|
+
### 🏆 Recommendation
|
|
46
|
+
Decisive conclusion with confidence level
|
|
47
|
+
|
|
48
|
+
## Question:
|
|
49
|
+
$ARGUMENTS
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Reflect on workflow friction and create improvement action items"
|
|
3
|
-
agent: zeus
|
|
4
|
-
---
|
|
5
|
-
# /pantheon-reflect — Workflow Reflection
|
|
6
|
-
|
|
7
|
-
**What:** After completing a task, reflect on what could be improved. Turns repeated friction into reusable skills, agents, or config improvements.
|
|
8
|
-
**Usage:** `/pantheon-reflect [session-or-task]`
|
|
9
|
-
**Returns:** Structured reflection with action items
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
- After completing a complex feature
|
|
13
|
-
- When you notice the same manual steps repeating
|
|
14
|
-
- At end of work session
|
|
15
|
-
|
|
16
|
-
Delegates to @mnemosyne with `skill: reflect`.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Create verification plan before non-trivial changes"
|
|
3
|
-
agent: zeus
|
|
4
|
-
---
|
|
5
|
-
# /pantheon-verify — Verification Planning
|
|
6
|
-
|
|
7
|
-
**What:** Plans an evidence path before non-trivial changes, defining how to verify correctness.
|
|
8
|
-
**Usage:** `/pantheon-verify <change-description>`
|
|
9
|
-
**Returns:** Verification plan with strategy, rollback, and acceptance criteria
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
- Before changes touching 3+ files
|
|
13
|
-
- Before DB migrations or schema changes
|
|
14
|
-
- Before API contract changes
|
|
15
|
-
- Before dependency upgrades
|
|
16
|
-
|
|
17
|
-
Delegates to @themis + @athena with `skill: verification-planning`.
|