pantheon-opencode 1.0.7 → 1.1.1-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/src/routing.yml CHANGED
@@ -1,251 +1,218 @@
1
- # routing.yml — Canonical Routing Source for Pantheon
2
- # Version: 1.0 — Agent routing, delegation rules, and handoff contracts
3
1
  version: 1.0
4
-
5
- # Primary Delegation Flow
6
- # ```mermaid
7
- # flowchart LR
8
- # Z[Zeus] --> A[Athena] --> AP[Apollo]
9
- # Z --> H[Hermes] --> T[Themis]
10
- # Z --> PH[Aphrodite] --> T
11
- # Z --> D[Demeter] --> T
12
- # Z --> R[Prometheus]
13
- # Z --> HE[Hephaestus]
14
- # Z --> N[Nyx]
15
- # Z --> G[Gaia]
16
- # # Z --> I[Iris] --> M[Mnemosyne]
17
- # Z --> M
18
- # Z -.-> TA[Talos]
19
- # T --> I
20
- # T --> M
21
- # ```
22
- # Removed agents: argus, chiron, echo (merged/deprecated)
23
-
24
- # AGENT REGISTRY — 14 active agents
25
2
  agents:
26
3
  zeus:
27
- role: "Central orchestrator"
28
- model_tier: default
4
+ role: Central orchestrator
5
+ model_tier: code
29
6
  reasoning_effort: medium
30
7
  user_invocable: true
31
8
  can_delegate: true
32
9
  can_receive_delegation: true
33
10
  capabilities:
34
- - orchestration
35
- - delegation
36
- - context_conservation
37
- - context_compression
38
- - phase_management
39
- - quality_gate_enforcement
40
- - memory_recall
41
- - pantheon_resources
42
- - pantheon_code_mode
43
- - pantheon_deepwork
11
+ - orchestration
12
+ - delegation
13
+ - context_conservation
14
+ - context_compression
15
+ - phase_management
16
+ - quality_gate_enforcement
17
+ - memory_recall
18
+ - pantheon_resources
19
+ - pantheon_code_mode
20
+ - pantheon_deepwork
44
21
  subagent_can_delegate_to:
45
- - athena
46
- - apollo
47
- - hermes
48
- - aphrodite
49
- - demeter
50
- - themis
51
- - prometheus
52
- - hephaestus
53
- - nyx
54
- - iris
55
- - mnemosyne
56
- - talos
22
+ - athena
23
+ - apollo
24
+ - hermes
25
+ - aphrodite
26
+ - demeter
27
+ - themis
28
+ - prometheus
29
+ - hephaestus
30
+ - nyx
31
+ - iris
32
+ - mnemosyne
33
+ - talos
57
34
  skills:
58
- - agent-coordination
59
- - session-goal
60
- - artifact-management
61
- - context-compression
62
- - auto-continue
63
- - orchestration-workflow
64
- - incremental-implementation
65
-
35
+ - agent-coordination
36
+ - session-goal
37
+ - artifact-management
38
+ - context-compression
39
+ - auto-continue
40
+ - orchestration-workflow
41
+ - incremental-implementation
66
42
  athena:
67
- role: "Strategic planner"
43
+ role: Strategic planner
68
44
  model_tier: premium
69
45
  reasoning_effort: high
70
46
  user_invocable: true
71
47
  can_delegate: true
72
48
  can_receive_delegation: true
73
49
  capabilities:
74
- - strategic_planning
75
- - tdd_planning
76
- - architectural_design
77
- - root_cause_analysis
78
- - risk_assessment
79
- - memory_recall
80
- - pantheon_resources
50
+ - strategic_planning
51
+ - tdd_planning
52
+ - architectural_design
53
+ - root_cause_analysis
54
+ - risk_assessment
55
+ - memory_recall
56
+ - pantheon_resources
81
57
  subagent_can_delegate_to:
82
- - apollo
58
+ - apollo
83
59
  skills:
84
- - spec-driven-development
85
- - memory-bank
86
-
60
+ - spec-driven-development
61
+ - memory-bank
87
62
  apollo:
88
- role: "Investigation scout"
89
- model_tier: fast
63
+ role: Investigation scout
64
+ model_tier: free
90
65
  reasoning_effort: low
91
66
  user_invocable: false
92
67
  can_delegate: false
93
68
  can_receive_delegation: true
94
69
  capabilities:
95
- - codebase_discovery
96
- - pattern_discovery
97
- - dependency_research
98
- - parallel_search
99
- - codemap_generation
100
- - memory_search
101
- - pantheon_resources
70
+ - codebase_discovery
71
+ - pattern_discovery
72
+ - dependency_research
73
+ - parallel_search
74
+ - codemap_generation
75
+ - memory_search
76
+ - pantheon_resources
102
77
  subagent_can_delegate_to: []
103
78
  skills:
104
- - auto-continue
105
-
79
+ - auto-continue
106
80
  hermes:
107
- role: "Backend specialist"
108
- model_tier: default
81
+ role: Backend specialist
82
+ model_tier: code
109
83
  reasoning_effort: medium
110
84
  user_invocable: true
111
85
  can_delegate: true
112
86
  can_receive_delegation: true
113
87
  capabilities:
114
- - backend_implementation
115
- - api_development
116
- - service_layer
117
- - async_programming
118
- - obsolete_lib_detection
119
- - memory_store
120
- - pantheon_code_mode
88
+ - backend_implementation
89
+ - api_development
90
+ - service_layer
91
+ - async_programming
92
+ - obsolete_lib_detection
93
+ - memory_store
94
+ - pantheon_code_mode
121
95
  skills:
122
- - tdd-with-agents
123
- - file-prompts
124
- - streaming-patterns
125
- - git-workflow-and-versioning
126
- - incremental-implementation
127
-
96
+ - tdd-with-agents
97
+ - file-prompts
98
+ - streaming-patterns
99
+ - git-workflow-and-versioning
100
+ - incremental-implementation
128
101
  aphrodite:
129
- role: "Frontend specialist"
130
- model_tier: default
102
+ role: Frontend specialist
103
+ model_tier: code
131
104
  reasoning_effort: medium
132
105
  user_invocable: true
133
106
  can_delegate: false
134
107
  can_receive_delegation: true
135
108
  capabilities:
136
- - frontend_implementation
137
- - ui_component_design
138
- - accessibility_audit
139
- - responsive_design
140
- - deprecated_npm_detection
141
- - memory_store
142
- - pantheon_resources_memory_bank
109
+ - frontend_implementation
110
+ - ui_component_design
111
+ - accessibility_audit
112
+ - responsive_design
113
+ - deprecated_npm_detection
114
+ - memory_store
115
+ - pantheon_resources_memory_bank
143
116
  skills:
144
- - tdd-with-agents
145
- - visual-review-pipeline
146
- - file-prompts
147
-
117
+ - tdd-with-agents
118
+ - visual-review-pipeline
119
+ - file-prompts
148
120
  demeter:
149
- role: "Database specialist"
150
- model_tier: default
121
+ role: Database specialist
122
+ model_tier: code
151
123
  reasoning_effort: medium
152
124
  user_invocable: true
153
125
  can_delegate: false
154
126
  can_receive_delegation: true
155
127
  capabilities:
156
- - database_migration
157
- - schema_design
158
- - query_optimization
159
- - n_plus_one_prevention
160
- - index_strategy
161
- - memory_store
162
- - memory_recall
128
+ - database_migration
129
+ - schema_design
130
+ - query_optimization
131
+ - n_plus_one_prevention
132
+ - index_strategy
133
+ - memory_store
134
+ - memory_recall
163
135
  skills:
164
- - tdd-with-agents
165
- - incremental-implementation
166
-
136
+ - tdd-with-agents
137
+ - incremental-implementation
167
138
  themis:
168
- role: "Quality gate"
139
+ role: Quality gate
169
140
  model_tier: premium
170
141
  reasoning_effort: high
171
142
  user_invocable: true
172
143
  can_delegate: true
173
144
  can_receive_delegation: true
174
145
  capabilities:
175
- - code_review
176
- - security_audit
177
- - test_coverage_validation
178
- - quality_gate
179
- - dead_code_detection
180
- - deprecation_audit
181
- - memory_search
182
- - pantheon_resources
146
+ - code_review
147
+ - security_audit
148
+ - test_coverage_validation
149
+ - quality_gate
150
+ - dead_code_detection
151
+ - deprecation_audit
152
+ - memory_search
153
+ - pantheon_resources
183
154
  subagent_can_delegate_to:
184
- - mnemosyne
155
+ - mnemosyne
185
156
  skills:
186
- - code-review-checklist
187
- - security-hardening
188
- - tdd-with-agents
189
- - context-compression
190
-
157
+ - code-review-checklist
158
+ - security-hardening
159
+ - tdd-with-agents
160
+ - context-compression
191
161
  prometheus:
192
- role: "Infrastructure specialist"
193
- model_tier: default
162
+ role: Infrastructure specialist
163
+ model_tier: code
194
164
  reasoning_effort: medium
195
165
  user_invocable: true
196
166
  can_delegate: false
197
167
  can_receive_delegation: true
198
168
  capabilities:
199
- - infrastructure_as_code
200
- - docker_configuration
201
- - ci_cd_pipelines
202
- - deployment_strategy
203
- - container_optimization
204
- - pantheon_code_mode
205
- - memory_store
169
+ - infrastructure_as_code
170
+ - docker_configuration
171
+ - ci_cd_pipelines
172
+ - deployment_strategy
173
+ - container_optimization
174
+ - pantheon_code_mode
175
+ - memory_store
206
176
  skills:
207
- - git-workflow-and-versioning
208
- - incremental-implementation
209
-
177
+ - git-workflow-and-versioning
178
+ - incremental-implementation
210
179
  hephaestus:
211
- role: "AI pipelines"
212
- model_tier: default
180
+ role: AI pipelines
181
+ model_tier: code
213
182
  reasoning_effort: medium
214
183
  user_invocable: true
215
184
  can_delegate: false
216
185
  can_receive_delegation: true
217
186
  capabilities:
218
- - rag_pipeline_design
219
- - langchain_workflow
220
- - vector_store_integration
221
- - embedding_strategy
222
- - ai_workflow_composition
223
- - memory_search
187
+ - rag_pipeline_design
188
+ - langchain_workflow
189
+ - vector_store_integration
190
+ - embedding_strategy
191
+ - ai_workflow_composition
192
+ - memory_search
224
193
  skills:
225
- - tdd-with-agents
226
- - auto-continue
227
-
194
+ - tdd-with-agents
195
+ - auto-continue
228
196
  nyx:
229
- role: "Observability"
230
- model_tier: fast
197
+ role: Observability
198
+ model_tier: free
231
199
  reasoning_effort: low
232
200
  user_invocable: true
233
201
  can_delegate: false
234
202
  can_receive_delegation: true
235
203
  capabilities:
236
- - opentelemetry_setup
237
- - token_cost_tracking
238
- - agent_performance_analytics
239
- - alerting
240
- - monitoring_dashboards
241
- - pantheon_resources_routing
204
+ - opentelemetry_setup
205
+ - token_cost_tracking
206
+ - agent_performance_analytics
207
+ - alerting
208
+ - monitoring_dashboards
209
+ - pantheon_resources_routing
242
210
  skills:
243
- - security-hardening
244
- - auto-continue
245
-
211
+ - security-hardening
212
+ - auto-continue
246
213
  gaia:
247
214
  role: Remote sensing domain specialist
248
- model_tier: fast
215
+ model_tier: free
249
216
  reasoning_effort: low
250
217
  user_invocable: false
251
218
  can_delegate: false
@@ -257,183 +224,175 @@ agents:
257
224
  - ml_classification
258
225
  skills:
259
226
  - auto-continue
260
-
261
227
  iris:
262
- role: "GitHub operations"
263
- model_tier: fast
228
+ role: GitHub operations
229
+ model_tier: free
264
230
  reasoning_effort: low
265
231
  user_invocable: true
266
232
  can_delegate: false
267
233
  can_receive_delegation: true
268
234
  capabilities:
269
- - branch_management
270
- - pull_request_creation
271
- - issue_tracking
272
- - release_management
273
- - changelog_generation
274
- - pantheon_resources
235
+ - branch_management
236
+ - pull_request_creation
237
+ - issue_tracking
238
+ - release_management
239
+ - changelog_generation
240
+ - pantheon_resources
275
241
  subagent_can_delegate_to:
276
- - mnemosyne
242
+ - mnemosyne
277
243
  skills:
278
- - git-workflow-and-versioning
279
- - artifact-management
280
-
244
+ - git-workflow-and-versioning
245
+ - artifact-management
281
246
  mnemosyne:
282
- role: "Memory bank"
283
- model_tier: fast
247
+ role: Memory bank
248
+ model_tier: free
284
249
  reasoning_effort: low
285
250
  user_invocable: true
286
251
  can_delegate: true
287
252
  can_receive_delegation: true
288
253
  capabilities:
289
- - memory_bank_management
290
- - artifact_persistence
291
- - adr_writing
292
- - project_initialization
293
- - sprint_documentation
294
- - context_compression
295
- - memory_store
296
- - memory_recall
297
- - pantheon_resources_memory_bank
254
+ - memory_bank_management
255
+ - artifact_persistence
256
+ - adr_writing
257
+ - project_initialization
258
+ - sprint_documentation
259
+ - context_compression
260
+ - memory_store
261
+ - memory_recall
262
+ - pantheon_resources_memory_bank
298
263
  subagent_can_delegate_to: []
299
264
  skills:
300
- - artifact-management
301
- - memory-bank
302
- - context-compression
303
- - session-goal
304
-
265
+ - artifact-management
266
+ - memory-bank
267
+ - context-compression
268
+ - session-goal
305
269
  talos:
306
- role: "Hotfix agent"
307
- model_tier: fast
270
+ role: Hotfix agent
271
+ model_tier: free
308
272
  reasoning_effort: low
309
273
  user_invocable: true
310
274
  can_delegate: false
311
275
  can_receive_delegation: true
312
276
  capabilities:
313
- - rapid_repair
314
- - css_fix
315
- - typo_correction
316
- - minor_bug_fix
317
- - escalation_detection
318
- - pantheon_code_mode
277
+ - rapid_repair
278
+ - css_fix
279
+ - typo_correction
280
+ - minor_bug_fix
281
+ - escalation_detection
282
+ - pantheon_code_mode
319
283
  subagent_can_delegate_to: []
320
284
  skills:
321
- - incremental-implementation
322
-
323
- # AUTO-CONTINUE CONFIGURATION
324
- # Checkpoint and heartbeat settings for autonomous sessions
285
+ - incremental-implementation
325
286
  auto_continue:
326
- checkpoint_script: ".pantheon/code-mode/checkpoint-session.sh"
287
+ checkpoint_script: .pantheon/code-mode/checkpoint-session.sh
327
288
  heartbeat_interval: 5
328
289
  idle:
329
290
  warning: 60
330
291
  stall: 120
331
292
  pause: 300
332
-
333
- # DELEGATION RULES
334
- # Implicit default: any agent can delegate to apollo for codebase discovery.
335
- # Overrides are listed in agent subagent_can_delegate_to fields above.
336
- # See instructions/zeus-timeout-retry.instructions.md for timeout/retry defaults.
337
- # INTENT GATE — Heuristic request classification (zero LLM)
338
- # Zeus classifies the request BEFORE delegating to the correct agent.
339
- # Patterns are matched by keyword, not LLM call.
340
293
  intent_gate:
341
294
  fix:
342
- patterns: ["bug", "error", "crash", "broken", "fail", "wrong", "incorrect"]
295
+ patterns:
296
+ - bug
297
+ - error
298
+ - crash
299
+ - broken
300
+ - fail
301
+ - wrong
302
+ - incorrect
343
303
  target: talos
344
304
  research:
345
- patterns: ["how", "what", "why", "where", "find", "search", "lookup", "documentation"]
305
+ patterns:
306
+ - how
307
+ - what
308
+ - why
309
+ - where
310
+ - find
311
+ - search
312
+ - lookup
313
+ - documentation
346
314
  target: apollo
347
315
  investigate:
348
- patterns: ["compare", "vs", "trade.?off", "should", "which", "risk", "impact"]
316
+ patterns:
317
+ - compare
318
+ - vs
319
+ - trade.?off
320
+ - should
321
+ - which
322
+ - risk
323
+ - impact
349
324
  target: athena
350
325
  plan:
351
- patterns: ["plan", "roadmap", "architecture", "design", "proposal", "strategy"]
326
+ patterns:
327
+ - plan
328
+ - roadmap
329
+ - architecture
330
+ - design
331
+ - proposal
332
+ - strategy
352
333
  target: athena
353
334
  implement:
354
335
  patterns: []
355
- target: hermes # default fallback
356
-
336
+ target: hermes
357
337
  delegation:
358
338
  zeus:
359
- - target: athena
360
- - target: apollo
361
- - target: hermes
362
- - target: aphrodite
363
- - target: demeter
364
- - target: themis
365
- - target: prometheus
366
- - target: hephaestus
367
- - target: nyx
368
- - target: gaia
369
- - target: iris
370
- - target: mnemosyne
371
- - target: talos
372
-
373
- # Delegation conventions (documentation only — not programmatically enforced):
374
- # - Implementers → themis for code review
375
- # - Themis → zeus (blockers/escalation) or mnemosyne (documentation)
376
- # - Others → zeus or athena as appropriate
377
-
378
- # HANDOFF DEFINITIONS — named contracts for delegation
339
+ - target: athena
340
+ - target: apollo
341
+ - target: hermes
342
+ - target: aphrodite
343
+ - target: demeter
344
+ - target: themis
345
+ - target: prometheus
346
+ - target: hephaestus
347
+ - target: nyx
348
+ - target: gaia
349
+ - target: iris
350
+ - target: mnemosyne
351
+ - target: talos
379
352
  handoffs:
380
353
  zeus:
381
354
  compress_context:
382
- label: "🗜️ Compress Context"
383
- description: "Compress completed subtask_summaries and archive IMPL/REVIEW artifacts after Themis approval"
355
+ label: 🗜️ Compress Context
356
+ description: Compress completed subtask_summaries and archive IMPL/REVIEW artifacts
357
+ after Themis approval
384
358
  agent: mnemosyne
385
- prompt: "Compress completed phase artifacts (Level 2): create ZZ-phase{N}-context.md with priority-scored entries, write compressed entries to 01-active-context.md (priority-aware, budget-allocated), archive IMPL/REVIEW to 02-progress-log.md, update _xref/index.md cross-references."
386
-
387
- # PLATFORM TOOL MAPPINGS
359
+ prompt: 'Compress completed phase artifacts (Level 2): create ZZ-phase{N}-context.md
360
+ with priority-scored entries, write compressed entries to 01-active-context.md
361
+ (priority-aware, budget-allocated), archive IMPL/REVIEW to 02-progress-log.md,
362
+ update _xref/index.md cross-references.'
388
363
  platforms:
389
364
  opencode:
390
- display_name: "OpenCode"
365
+ display_name: OpenCode
391
366
  tools:
392
- delegate_agent: "agent"
393
- delegate_subagent: "task"
394
- ask_user: "question"
395
- search_codebase: "grep"
396
- search_files: "glob"
397
- read_file: "read"
398
- run_bash: "bash"
399
- web_fetch: "webfetch"
400
- web_search: "websearch"
367
+ delegate_agent: agent
368
+ delegate_subagent: task
369
+ ask_user: question
370
+ search_codebase: grep
371
+ search_files: glob
372
+ read_file: read
373
+ run_bash: bash
374
+ web_fetch: webfetch
375
+ web_search: websearch
401
376
  capabilities:
402
- - agent_delegation
403
- - subagent_delegation
404
- - bash_execution
405
- - web_fetch
406
- - web_search
407
-
408
- # ARTIFACT LIFECYCLE
409
- # See skill: artifact-management for full lifecycle rules.
410
- # Summary: PLAN, IMPL, REVIEW, DISC → .pantheon/memory-bank/.tmp/ (ephemeral, sprint-scoped).
411
- # ADR → .pantheon/memory-bank/_notes/ (permanent). Subtask → inline, no artifact.
412
-
413
- # MODEL FALLBACK CHAINS
414
- # When an agent's primary model is rate-limited (429) or unavailable,
415
- # the platform should attempt the next model in the chain.
416
- # Chain pattern: Primary → Secondary → Emergency
417
- # These chains are advisory — the platform's model routing determines
418
- # actual fallback behavior at runtime.
377
+ - agent_delegation
378
+ - subagent_delegation
379
+ - bash_execution
380
+ - web_fetch
381
+ - web_search
419
382
  fallback_chains:
420
383
  premium_agents:
421
- primary: "anthropic/claude-sonnet-4-20250514"
422
- secondary: "openai/gpt-5.1"
423
- emergency: "deepseek/deepseek-v4-pro"
424
-
425
- default_agents:
426
- primary: "anthropic/claude-sonnet-4-20250514"
427
- secondary: "openai/gpt-4o"
428
- emergency: "deepseek/deepseek-v4-pro"
429
-
430
- fast_agents:
431
- primary: "deepseek/deepseek-v4-pro"
432
- secondary: "anthropic/claude-haiku-4-20250514"
433
- emergency: "openai/gpt-4o-mini"
434
-
435
- agent_overrides:
436
- gaia:
437
- primary: "anthropic/claude-sonnet-4-20250514"
438
- secondary: "openai/gpt-4o"
439
- emergency: "deepseek/deepseek-v4-pro"
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
+ background_job_board:
396
+ max_concurrent_per_agent: 3
397
+ signal_dir: .pantheon/deepwork/board-signals/
398
+ persistence_dir: .pantheon/board/jobs/