pantheon-opencode 1.1.1-beta.11 → 1.1.1-beta.13
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/opencode.json +49 -2
- package/package.json +1 -1
- package/pantheon.schema.json +1 -1
- package/scripts/mcp_persistence_server.py +3 -3
- package/src/agents/mnemosyne.md +9 -1
- package/src/agents/nyx.md +7 -1
- package/src/agents/themis.md +8 -2
- package/src/agents/zeus.md +10 -0
- package/src/mcp/mcp_persistence_server.py +3 -3
- package/src/routing.yml +11 -30
- package/commands/pantheon-audit.md +0 -25
- package/commands/pantheon-deepwork.md +0 -79
- package/commands/pantheon-focus.md +0 -9
- package/commands/pantheon-forget.md +0 -58
- package/commands/pantheon-optimize.md +0 -79
- package/commands/pantheon-remember.md +0 -44
- package/commands/pantheon-search.md +0 -48
- package/commands/pantheon-status.md +0 -71
- package/commands/pantheon.md +0 -49
- package/scripts/check-version-consistency.sh +0 -23
- package/scripts/generate-routing-docs.mjs +0 -104
- package/scripts/manifest.mjs +0 -597
- package/scripts/memory_cache.py +0 -78
- package/scripts/paths.py +0 -64
- package/scripts/prune_context.py +0 -72
- package/scripts/release-bundle.mjs +0 -109
- package/scripts/todo_enforcer.py +0 -242
- package/scripts/validate_agent_frontmatter.py +0 -226
package/opencode.json
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
"$schema": "https://opencode.ai/config.json",
|
|
3
3
|
"default_agent": "zeus",
|
|
4
4
|
"subagent_depth": 2,
|
|
5
|
-
"
|
|
5
|
+
"model": "opencode-go/deepseek-v4-flash",
|
|
6
|
+
"small_model": "opencode-go/deepseek-v4-flash-free",
|
|
6
7
|
"permission": {
|
|
7
|
-
"skill": {
|
|
8
|
+
"skill": {
|
|
9
|
+
"*": "allow"
|
|
10
|
+
},
|
|
8
11
|
"websearch": "deny",
|
|
9
12
|
"bash": {
|
|
10
13
|
"git *": "allow",
|
|
@@ -29,5 +32,49 @@
|
|
|
29
32
|
"x-bf-vk": "sk-bf-a5a9b5b0-45fc-414d-8e4d-f9beb8c49a6d"
|
|
30
33
|
}
|
|
31
34
|
}
|
|
35
|
+
},
|
|
36
|
+
"agent": {
|
|
37
|
+
"athena": {
|
|
38
|
+
"model": "opencode-go/kimi-k3"
|
|
39
|
+
},
|
|
40
|
+
"themis": {
|
|
41
|
+
"model": "opencode-go/deepseek-v4-pro"
|
|
42
|
+
},
|
|
43
|
+
"zeus": {
|
|
44
|
+
"model": "opencode-go/deepseek-v4-pro"
|
|
45
|
+
},
|
|
46
|
+
"hephaestus": {
|
|
47
|
+
"model": "opencode-go/deepseek-v4-pro"
|
|
48
|
+
},
|
|
49
|
+
"hermes": {
|
|
50
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
51
|
+
},
|
|
52
|
+
"aphrodite": {
|
|
53
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
54
|
+
},
|
|
55
|
+
"demeter": {
|
|
56
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
57
|
+
},
|
|
58
|
+
"prometheus": {
|
|
59
|
+
"model": "opencode-go/deepseek-v4-flash"
|
|
60
|
+
},
|
|
61
|
+
"apollo": {
|
|
62
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
63
|
+
},
|
|
64
|
+
"nyx": {
|
|
65
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
66
|
+
},
|
|
67
|
+
"gaia": {
|
|
68
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
69
|
+
},
|
|
70
|
+
"iris": {
|
|
71
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
72
|
+
},
|
|
73
|
+
"mnemosyne": {
|
|
74
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
75
|
+
},
|
|
76
|
+
"talos": {
|
|
77
|
+
"model": "opencode-go/deepseek-v4-flash-free"
|
|
78
|
+
}
|
|
32
79
|
}
|
|
33
80
|
}
|
package/package.json
CHANGED
package/pantheon.schema.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://pantheon.orchestrator/schema.json",
|
|
4
4
|
"title": "Pantheon Configuration Schema",
|
|
5
|
-
"description": "Configuration schema
|
|
5
|
+
"description": "Pantheon Orchestration Configuration Schema — NOT the OpenCode config schema. This schema defines Pantheon-specific configuration (routing, presets, fallback chains). For OpenCode config, see https://opencode.ai/config.json",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"version": {
|
|
@@ -15,7 +15,7 @@ import argparse
|
|
|
15
15
|
import re
|
|
16
16
|
import sqlite3
|
|
17
17
|
import sys
|
|
18
|
-
from datetime import
|
|
18
|
+
from datetime import datetime, timedelta, timezone
|
|
19
19
|
from pathlib import Path
|
|
20
20
|
|
|
21
21
|
from _pantheon_paths import pantheon_home, pantheon_project
|
|
@@ -148,7 +148,7 @@ def _write_deletelog(db_path: Path, count: int, keys: list[str]) -> None:
|
|
|
148
148
|
log_path = db_path.with_name(db_path.name + ".deletelog")
|
|
149
149
|
_rotate_deletelog(log_path)
|
|
150
150
|
|
|
151
|
-
timestamp = datetime.now(
|
|
151
|
+
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
152
152
|
keys_str = ",".join(keys)
|
|
153
153
|
with open(log_path, "a", encoding="utf-8") as f:
|
|
154
154
|
f.write(f"[{timestamp}] PURGED={count} KEYS=[{keys_str}]\n")
|
|
@@ -208,7 +208,7 @@ async def kv_store(
|
|
|
208
208
|
conn = _db(scope)
|
|
209
209
|
expires_at: str | None = None
|
|
210
210
|
if ttl is not None:
|
|
211
|
-
expires_at = (datetime.now(
|
|
211
|
+
expires_at = (datetime.now(timezone.utc) + timedelta(seconds=ttl)).isoformat()
|
|
212
212
|
|
|
213
213
|
conn.execute(
|
|
214
214
|
"INSERT INTO kv_store (namespace, key, value, expires_at, "
|
package/src/agents/mnemosyne.md
CHANGED
|
@@ -34,9 +34,17 @@ permission:
|
|
|
34
34
|
bash: deny
|
|
35
35
|
read: allow
|
|
36
36
|
grep: allow
|
|
37
|
-
edit:
|
|
37
|
+
edit: deny
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
+
## ⚠️ SCOPE BOUNDARY
|
|
41
|
+
|
|
42
|
+
**Memory Bank ONLY — NEVER write files outside `.pantheon/memory-bank/` or `.pantheon/deepwork/`.**
|
|
43
|
+
Your role is documentation, ADRs, artifacts, and memory management.
|
|
44
|
+
|
|
45
|
+
NEVER modify source code files under `src/`, `backend/`, `frontend/`, `scripts/`, or any other implementation directory.
|
|
46
|
+
If asked to edit code, refuse and redirect to the appropriate implementation agent (@hermes, @aphrodite, @demeter, etc.).
|
|
47
|
+
|
|
40
48
|
## Core Capabilities
|
|
41
49
|
|
|
42
50
|
### 1. Memory Bank Management
|
package/src/agents/nyx.md
CHANGED
|
@@ -8,7 +8,7 @@ permission:
|
|
|
8
8
|
grep: allow
|
|
9
9
|
bash: allow
|
|
10
10
|
webfetch: allow
|
|
11
|
-
edit:
|
|
11
|
+
edit: deny
|
|
12
12
|
temperature: 0.1
|
|
13
13
|
steps: 25
|
|
14
14
|
skills:
|
|
@@ -20,6 +20,12 @@ mcp_tools:
|
|
|
20
20
|
pantheon-code-mode: [execute_code_script]
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
## ⚠️ ABSOLUTE CONSTRAINT
|
|
24
|
+
|
|
25
|
+
**ANALYSIS ONLY — NEVER implement, never edit files, never write code.**
|
|
26
|
+
Your role is to observe, trace, and report. If you identify a configuration change needed, report the finding — do not implement it yourself.
|
|
27
|
+
Delegate all implementation to @hermes, @prometheus, or @demeter.
|
|
28
|
+
|
|
23
29
|
## Core Capabilities
|
|
24
30
|
|
|
25
31
|
### 1. OpenTelemetry Integration
|
package/src/agents/themis.md
CHANGED
|
@@ -7,7 +7,7 @@ permission:
|
|
|
7
7
|
read: allow
|
|
8
8
|
grep: allow
|
|
9
9
|
bash: allow
|
|
10
|
-
edit:
|
|
10
|
+
edit: deny
|
|
11
11
|
temperature: 0.1
|
|
12
12
|
steps: 30
|
|
13
13
|
skills:
|
|
@@ -20,8 +20,14 @@ mcp_tools:
|
|
|
20
20
|
pantheon-memory: [memory_search]
|
|
21
21
|
pantheon-code-mode: [execute_code_script]
|
|
22
22
|
---
|
|
23
|
-
## Purpose
|
|
24
23
|
|
|
24
|
+
## ⚠️ ABSOLUTE CONSTRAINT
|
|
25
|
+
|
|
26
|
+
**REVIEWER ONLY — NEVER implement, never edit files, never write code.**
|
|
27
|
+
Your role is to audit, review, and block. If you find an issue, report it — do not fix it yourself.
|
|
28
|
+
Delegate all implementation to @hermes, @aphrodite, @demeter, or @prometheus.
|
|
29
|
+
|
|
30
|
+
## Purpose
|
|
25
31
|
Quality & security gate for all Pantheon agents. Three-layer review with IntentGate to ensure code matches requirements before deep review.
|
|
26
32
|
|
|
27
33
|
## IntentGate
|
package/src/agents/zeus.md
CHANGED
|
@@ -50,6 +50,16 @@ skills:
|
|
|
50
50
|
|
|
51
51
|
**Auto-continue** só com pedido explícito do usuário.
|
|
52
52
|
|
|
53
|
+
## ⚠️ Bash Scoping
|
|
54
|
+
|
|
55
|
+
**`bash: allow` é para leitura e diagnóstico APENAS.**
|
|
56
|
+
NUNCA use bash para:
|
|
57
|
+
- Editar arquivos (use sed/echo/redirect → delegue para @hermes)
|
|
58
|
+
- Instalar dependências (delegue para @prometheus)
|
|
59
|
+
- Executar comandos que modificam o sistema
|
|
60
|
+
|
|
61
|
+
Comandos permitidos: `ls`, `git status`, `git log`, `ps`, `python3 -c`, `cat` (leitura), `npm test` (para verificar).
|
|
62
|
+
|
|
53
63
|
---
|
|
54
64
|
|
|
55
65
|
## Delegation Cache (Otimizacao de Tokens)
|
|
@@ -14,7 +14,7 @@ import argparse
|
|
|
14
14
|
import re
|
|
15
15
|
import sqlite3
|
|
16
16
|
import sys
|
|
17
|
-
from datetime import
|
|
17
|
+
from datetime import datetime, timedelta, timezone
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
|
|
20
20
|
from _pantheon_paths import pantheon_home, pantheon_project
|
|
@@ -147,7 +147,7 @@ def _write_deletelog(db_path: Path, count: int, keys: list[str]) -> None:
|
|
|
147
147
|
log_path = db_path.with_name(db_path.name + ".deletelog")
|
|
148
148
|
_rotate_deletelog(log_path)
|
|
149
149
|
|
|
150
|
-
timestamp = datetime.now(
|
|
150
|
+
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
151
151
|
keys_str = ",".join(keys)
|
|
152
152
|
with open(log_path, "a", encoding="utf-8") as f:
|
|
153
153
|
f.write(f"[{timestamp}] PURGED={count} KEYS=[{keys_str}]\n")
|
|
@@ -207,7 +207,7 @@ async def kv_store(
|
|
|
207
207
|
conn = _db(scope)
|
|
208
208
|
expires_at: str | None = None
|
|
209
209
|
if ttl is not None:
|
|
210
|
-
expires_at = (datetime.now(
|
|
210
|
+
expires_at = (datetime.now(timezone.utc) + timedelta(seconds=ttl)).isoformat()
|
|
211
211
|
|
|
212
212
|
conn.execute(
|
|
213
213
|
"INSERT INTO kv_store (namespace, key, value, expires_at, "
|
package/src/routing.yml
CHANGED
|
@@ -2,7 +2,6 @@ version: 1.0
|
|
|
2
2
|
agents:
|
|
3
3
|
zeus:
|
|
4
4
|
role: Central orchestrator
|
|
5
|
-
model_tier: code
|
|
6
5
|
reasoning_effort: medium
|
|
7
6
|
user_invocable: true
|
|
8
7
|
can_delegate: true
|
|
@@ -41,7 +40,6 @@ agents:
|
|
|
41
40
|
- incremental-implementation
|
|
42
41
|
athena:
|
|
43
42
|
role: Strategic planner
|
|
44
|
-
model_tier: premium
|
|
45
43
|
reasoning_effort: high
|
|
46
44
|
user_invocable: true
|
|
47
45
|
can_delegate: true
|
|
@@ -61,7 +59,6 @@ agents:
|
|
|
61
59
|
- memory-bank
|
|
62
60
|
apollo:
|
|
63
61
|
role: Investigation scout
|
|
64
|
-
model_tier: free
|
|
65
62
|
reasoning_effort: low
|
|
66
63
|
user_invocable: false
|
|
67
64
|
can_delegate: false
|
|
@@ -79,7 +76,6 @@ agents:
|
|
|
79
76
|
- auto-continue
|
|
80
77
|
hermes:
|
|
81
78
|
role: Backend specialist
|
|
82
|
-
model_tier: code
|
|
83
79
|
reasoning_effort: medium
|
|
84
80
|
user_invocable: true
|
|
85
81
|
can_delegate: true
|
|
@@ -92,6 +88,10 @@ agents:
|
|
|
92
88
|
- obsolete_lib_detection
|
|
93
89
|
- memory_store
|
|
94
90
|
- pantheon_code_mode
|
|
91
|
+
subagent_can_delegate_to:
|
|
92
|
+
- apollo
|
|
93
|
+
- themis
|
|
94
|
+
- mnemosyne
|
|
95
95
|
skills:
|
|
96
96
|
- tdd-with-agents
|
|
97
97
|
- file-prompts
|
|
@@ -100,7 +100,6 @@ agents:
|
|
|
100
100
|
- incremental-implementation
|
|
101
101
|
aphrodite:
|
|
102
102
|
role: Frontend specialist
|
|
103
|
-
model_tier: code
|
|
104
103
|
reasoning_effort: medium
|
|
105
104
|
user_invocable: true
|
|
106
105
|
can_delegate: false
|
|
@@ -113,13 +112,13 @@ agents:
|
|
|
113
112
|
- deprecated_npm_detection
|
|
114
113
|
- memory_store
|
|
115
114
|
- pantheon_resources_memory_bank
|
|
115
|
+
- pantheon_code_mode
|
|
116
116
|
skills:
|
|
117
117
|
- tdd-with-agents
|
|
118
118
|
- visual-review-pipeline
|
|
119
119
|
- file-prompts
|
|
120
120
|
demeter:
|
|
121
121
|
role: Database specialist
|
|
122
|
-
model_tier: code
|
|
123
122
|
reasoning_effort: medium
|
|
124
123
|
user_invocable: true
|
|
125
124
|
can_delegate: false
|
|
@@ -132,12 +131,12 @@ agents:
|
|
|
132
131
|
- index_strategy
|
|
133
132
|
- memory_store
|
|
134
133
|
- memory_recall
|
|
134
|
+
- pantheon_code_mode
|
|
135
135
|
skills:
|
|
136
136
|
- tdd-with-agents
|
|
137
137
|
- incremental-implementation
|
|
138
138
|
themis:
|
|
139
139
|
role: Quality gate
|
|
140
|
-
model_tier: premium
|
|
141
140
|
reasoning_effort: high
|
|
142
141
|
user_invocable: true
|
|
143
142
|
can_delegate: true
|
|
@@ -151,6 +150,7 @@ agents:
|
|
|
151
150
|
- deprecation_audit
|
|
152
151
|
- memory_search
|
|
153
152
|
- pantheon_resources
|
|
153
|
+
- pantheon_code_mode
|
|
154
154
|
subagent_can_delegate_to:
|
|
155
155
|
- mnemosyne
|
|
156
156
|
skills:
|
|
@@ -160,7 +160,6 @@ agents:
|
|
|
160
160
|
- context-compression
|
|
161
161
|
prometheus:
|
|
162
162
|
role: Infrastructure specialist
|
|
163
|
-
model_tier: code
|
|
164
163
|
reasoning_effort: medium
|
|
165
164
|
user_invocable: true
|
|
166
165
|
can_delegate: false
|
|
@@ -178,7 +177,6 @@ agents:
|
|
|
178
177
|
- incremental-implementation
|
|
179
178
|
hephaestus:
|
|
180
179
|
role: AI pipelines
|
|
181
|
-
model_tier: code
|
|
182
180
|
reasoning_effort: medium
|
|
183
181
|
user_invocable: true
|
|
184
182
|
can_delegate: false
|
|
@@ -190,12 +188,12 @@ agents:
|
|
|
190
188
|
- embedding_strategy
|
|
191
189
|
- ai_workflow_composition
|
|
192
190
|
- memory_search
|
|
191
|
+
- pantheon_code_mode
|
|
193
192
|
skills:
|
|
194
193
|
- tdd-with-agents
|
|
195
194
|
- auto-continue
|
|
196
195
|
nyx:
|
|
197
196
|
role: Observability
|
|
198
|
-
model_tier: free
|
|
199
197
|
reasoning_effort: low
|
|
200
198
|
user_invocable: true
|
|
201
199
|
can_delegate: false
|
|
@@ -207,12 +205,12 @@ agents:
|
|
|
207
205
|
- alerting
|
|
208
206
|
- monitoring_dashboards
|
|
209
207
|
- pantheon_resources_routing
|
|
208
|
+
- pantheon_code_mode
|
|
210
209
|
skills:
|
|
211
210
|
- security-hardening
|
|
212
211
|
- auto-continue
|
|
213
212
|
gaia:
|
|
214
213
|
role: Remote sensing domain specialist
|
|
215
|
-
model_tier: free
|
|
216
214
|
reasoning_effort: low
|
|
217
215
|
user_invocable: false
|
|
218
216
|
can_delegate: false
|
|
@@ -226,7 +224,6 @@ agents:
|
|
|
226
224
|
- auto-continue
|
|
227
225
|
iris:
|
|
228
226
|
role: GitHub operations
|
|
229
|
-
model_tier: free
|
|
230
227
|
reasoning_effort: low
|
|
231
228
|
user_invocable: true
|
|
232
229
|
can_delegate: false
|
|
@@ -238,17 +235,14 @@ agents:
|
|
|
238
235
|
- release_management
|
|
239
236
|
- changelog_generation
|
|
240
237
|
- pantheon_resources
|
|
241
|
-
subagent_can_delegate_to:
|
|
242
|
-
- mnemosyne
|
|
243
238
|
skills:
|
|
244
239
|
- git-workflow-and-versioning
|
|
245
240
|
- artifact-management
|
|
246
241
|
mnemosyne:
|
|
247
242
|
role: Memory bank
|
|
248
|
-
model_tier: free
|
|
249
243
|
reasoning_effort: low
|
|
250
244
|
user_invocable: true
|
|
251
|
-
can_delegate:
|
|
245
|
+
can_delegate: false
|
|
252
246
|
can_receive_delegation: true
|
|
253
247
|
capabilities:
|
|
254
248
|
- memory_bank_management
|
|
@@ -260,6 +254,7 @@ agents:
|
|
|
260
254
|
- memory_store
|
|
261
255
|
- memory_recall
|
|
262
256
|
- pantheon_resources_memory_bank
|
|
257
|
+
- pantheon_code_mode
|
|
263
258
|
subagent_can_delegate_to: []
|
|
264
259
|
skills:
|
|
265
260
|
- artifact-management
|
|
@@ -268,7 +263,6 @@ agents:
|
|
|
268
263
|
- session-goal
|
|
269
264
|
talos:
|
|
270
265
|
role: Hotfix agent
|
|
271
|
-
model_tier: free
|
|
272
266
|
reasoning_effort: low
|
|
273
267
|
user_invocable: true
|
|
274
268
|
can_delegate: false
|
|
@@ -379,19 +373,6 @@ platforms:
|
|
|
379
373
|
- bash_execution
|
|
380
374
|
- web_fetch
|
|
381
375
|
- web_search
|
|
382
|
-
fallback_chains:
|
|
383
|
-
premium_agents:
|
|
384
|
-
primary: deepseek/deepseek-v4-pro
|
|
385
|
-
secondary: mimo/v2.5
|
|
386
|
-
emergency: deepseek/deepseek-v4-pro
|
|
387
|
-
code_agents:
|
|
388
|
-
primary: deepseek/deepseek-v4-flash
|
|
389
|
-
secondary: mimo/v2.5
|
|
390
|
-
emergency: deepseek/deepseek-v4-flash
|
|
391
|
-
free_agents:
|
|
392
|
-
primary: deepseek/deepseek-v4-flash
|
|
393
|
-
secondary: mimo/v2.5
|
|
394
|
-
emergency: deepseek/deepseek-v4-flash
|
|
395
376
|
background_job_board:
|
|
396
377
|
max_concurrent_per_agent: 3
|
|
397
378
|
signal_dir: .pantheon/deepwork/board-signals/
|
|
@@ -1,25 +0,0 @@
|
|
|
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.
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Pin a session goal to prevent scope creep. Usage: /pantheon-focus"
|
|
3
|
-
agent: "zeus"
|
|
4
|
-
---
|
|
5
|
-
# /pantheon-focus — Session Goal
|
|
6
|
-
|
|
7
|
-
**What:** Pins a session objective. When active, all agents verify every action against the pinned goal. Off-topic work is flagged and blocked.
|
|
8
|
-
**Usage:** `/pantheon-focus <short objective>`
|
|
9
|
-
**Commands:** `/pantheon-focus list` — show all active goals, `/pantheon-focus clear` — remove all
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Compress old memory entries into summarized form. /pantheon-forget lists entries older than N days, then replaces them with a compressed summary. --auto applies without confirmation. Usage: /pantheon-forget"
|
|
3
|
-
agent: "zeus"
|
|
4
|
-
---
|
|
5
|
-
# /pantheon-forget — Memory Range Compression
|
|
6
|
-
|
|
7
|
-
**What:** Applies range compression to old memory entries — groups entries by time period and namespace, generates a concise summary via fast LLM, replaces N raw entries with 1 summary. Companion to memory_consolidate (merge) vs memory_forget (compress).
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
/pantheon-forget → Lista candidatas (7+ dias, modo interativo)
|
|
13
|
-
/pantheon-forget --days=30 → Só entradas com 30+ dias
|
|
14
|
-
/pantheon-forget --namespace=sessions → Namespace específico
|
|
15
|
-
/pantheon-forget --namespace=sessions --days=14 Combinado
|
|
16
|
-
/pantheon-forget --auto → Comprime sem confirmação
|
|
17
|
-
/pantheon-forget --auto --days=30 --compress → Agressivo: 30+ dias + comprimir em 1 arquivo
|
|
18
|
-
/pantheon-forget --dry-run → Preview sem modificar
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Flags
|
|
22
|
-
|
|
23
|
-
| Flag | Default | Descrição |
|
|
24
|
-
|------|---------|-----------|
|
|
25
|
-
| `--days=<N>` | `7` | Idade mínima em dias |
|
|
26
|
-
| `--namespace=<ns>` | `all` | Namespace específico |
|
|
27
|
-
| `--auto` | off | Comprimir sem confirmação |
|
|
28
|
-
| `--dry-run` | off | Preview sem modificar |
|
|
29
|
-
| `--compress` | off | Comprimir tudo em 1 único entry (modo agressivo) |
|
|
30
|
-
|
|
31
|
-
## How It Works
|
|
32
|
-
|
|
33
|
-
1. `memory_list()` → obtém entradas, filtra por idade
|
|
34
|
-
2. Agrupa por namespace + mês
|
|
35
|
-
3. Cada grupo: envia para LLM fast com prompt:
|
|
36
|
-
```
|
|
37
|
-
Summarize these N memory entries into 2-3 sentences:
|
|
38
|
-
[entries...]
|
|
39
|
-
```
|
|
40
|
-
4. Substitui grupo por entry único com key `compressed:<namespace>:<YYYY-MM>`
|
|
41
|
-
5. Entradas originais são deletadas via `memory_forget()`
|
|
42
|
-
|
|
43
|
-
## Output
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
🗜️ Memory Range Compression
|
|
47
|
-
|
|
48
|
-
Group: sessions · 2026-06 (15 entries · 1.2K tokens)
|
|
49
|
-
→ "Sessões de junho focadas em migração FastAPI, ajustes de rota e correção de testes."
|
|
50
|
-
→ Compressed: 15 → 1 entry ✅
|
|
51
|
-
|
|
52
|
-
Group: decisions · 2026-05 (8 entries · 640 tokens)
|
|
53
|
-
→ "Decisões de maio sobre arquitetura: monorepo mantido, SQLAlchemy 2.0 como padrão."
|
|
54
|
-
→ Compressed: 8 → 1 entry ✅
|
|
55
|
-
|
|
56
|
-
Summary: 2 groups compressed, 23 entries → 2 entries (-91%)
|
|
57
|
-
Tokens saved: ~1.8K
|
|
58
|
-
```
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
```
|