pantheon-opencode 2.0.2 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
7
 
8
+ ## [v2.0.3] - 2026-11-11
9
+
10
+ ### 🆕 What's New
11
+
12
+ - **Simplified TUI Architecture**: Plain-language labels for Jev Assistant, Operation Mode, Cloud API Access, and Safety Gate.
13
+ - **Two-Tier Architecture Planning**: Concise 1-page visual summary in chat with full technical blueprint saved to disk.
14
+ - **Interactive Question Prompts**: Native question tool integration for prompt refinery disambiguation and plan approval gates.
15
+
16
+ ### Changed
17
+
18
+ - **tui** — align row labels and group titles across Decision, Autonomy, and J1 Safety in PT-BR and EN.
19
+ - **planning** — decouple Athena plan into chat-friendly Executive Decision Contract and disk-based deep technical blueprint.
20
+ - **agents** — grant native question tool to Zeus and Athena for interactive UI choices and confirmation dialogs.
21
+
22
+
8
23
  ## [v2.0.2] - 2026-11-11
9
24
 
10
25
  ### 🆕 What's New
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Multi-agent orchestration for OpenCode \u2014 14 specialized agents, TDD, Themis review gates.",
5
5
  "type": "module",
6
6
  "workspaces": [
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon",
3
3
  "publisher": "ils15",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 25 skills, and OpenCode support.",
7
7
  "agents": "./src/agents",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend"
4
4
 
5
5
  [project]
6
6
  name = "pantheon"
7
- version = "2.0.2"
7
+ version = "2.0.3"
8
8
  description = "Multi-agent orchestration framework"
9
9
  requires-python = ">=3.11"
10
10
  # Python sources under src/mcp/ import fastmcp/pydantic at runtime, but those
package/skills-lock.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "src/skills/memory-bank/references/storage-model.md": "728a9e5f2055ce0f74c759405072a6fe57f65587bdb7b9e5e7fa90b60528b085",
24
24
  "src/skills/memory-bank/references/structure-and-frequency.md": "09caedf905870c688401a2e58b2776a9c6187fe724c576019c58c3b80fe1b98f",
25
25
  "src/skills/memory-bank/SKILL.md": "047b3049c27e908b1d79afb14f79336e32f775385ba23956771166d445944f2f",
26
- "src/skills/prompt-refinery/SKILL.md": "1efbe6700dbcf357c1eab38662ff9572b163abb262915ce615694829682922c5",
26
+ "src/skills/prompt-refinery/SKILL.md": "4ffbcddefb4f8937537358386f364ecca1303f928a1b07ff0bbd7e65d6fe7982",
27
27
  "src/skills/reflect/SKILL.md": "297c374f1fbc8e15d3848f51e811e0614d4a008c7d0e1daf88bbb240d605b8a8",
28
28
  "src/skills/security-hardening/SKILL.md": "6d637e122421f7bc3b751f04854ad343a5a5d35249458bc8939233138fd3f20d",
29
29
  "src/skills/session-goal/references/goal-format.md": "071f6f8f12cfbc26d4703cd5f34f839f91e586a3b969bf5f81a74b961c254a83",
@@ -26,6 +26,7 @@ permission:
26
26
  grep: allow
27
27
  glob: allow
28
28
  webfetch: allow
29
+ question: allow
29
30
  task:
30
31
  "*": deny
31
32
  apollo: allow
@@ -110,17 +111,19 @@ Use `webfetch` to verify availability before proposing model updates to other ag
110
111
  - Make multiple planning attempts
111
112
  - Search or inspect `.pantheon/**`, `.pantheon/deepwork/**`, `.git/**` or `.pantheon-worktrees/**`
112
113
 
113
- ## Plan Structure (Visual, Actionable & Token-Efficient)
114
+ ## Plan Structure (Didactic Executive Summary + Disk Blueprint)
114
115
 
115
- Use this template whenever the user asks for a plan or Zeus requests one. Keep it
116
- visual, actionable, and token-efficient — modeled after Claude Code and ChatGPT Agent plan modes:
116
+ Whenever creating a plan, format your output in two clear, modular sections:
117
117
 
118
118
  ```markdown
119
119
  # 📐 Architecture Plan: [Feature Name]
120
120
 
121
121
  > **Architect:** @athena · **Review Gate:** @themis · **Execution Mode:** Strict TDD with Sub-10s Test Slicing
122
122
 
123
- ### Architecture & Execution Flow
123
+ ### 📋 Executive Summary (Chat Contract)
124
+ - **Goal:** One crisp sentence describing the concrete outcome.
125
+ - **Estimated Effort:** [X minutes / low or medium risk]
126
+
124
127
  ```mermaid
125
128
  flowchart LR
126
129
  P1["Phase 1: Model / Schema (@demeter)"] --> P2["Phase 2: Core Logic (@hermes)"]
@@ -128,36 +131,41 @@ flowchart LR
128
131
  P3 --> P4["Phase 4: Verification (@themis)"]
129
132
  ```
130
133
 
131
- ### Goal & Scope
134
+ | Phase | Specialist | Key Deliverable | Test Slice |
135
+ |---|---|---|---|
136
+ | **1. Data / Contract** | @demeter | Schemas, models & migrations | `npm test tests/models/...` |
137
+ | **2. Core Logic** | @hermes | Service implementation & business rules | `npm test tests/services/...` |
138
+ | **3. Interface / UI** | @aphrodite | Components, styling & accessibility | `npm test tests/ui/...` |
139
+ | **4. Verification** | @themis | Security review & full integration gate | `npm run test:e2e` |
140
+
141
+ ---
142
+
143
+ ### 🛠️ Technical Implementation Blueprint (Saved to Disk)
144
+
145
+ #### Goal, Scope & Context
132
146
  - **Goal:** One sentence describing what this plan achieves.
133
- - **In scope:** [Concrete outcomes]
134
- - **Out of scope:** [Important exclusions]
135
- - **Assumptions:** [Key assumptions; unverified facts]
136
- - **Open Questions:** [Critical decisions the user must make, with recommended defaults]
147
+ - **In scope / Out of scope:** Concrete outcomes and exclusions.
148
+ - **Assumptions & Open Questions:** Key assumptions; critical decisions with recommended defaults.
137
149
 
138
- ### Phases (3-5 max)
150
+ #### Phases & Quality Gates (3-5 max)
139
151
  1. **[Phase Name] → @agent**
140
152
  - **Goal & Actions:** Outcome and concrete steps (TDD: RED → GREEN → REFACTOR)
141
153
  - **Affected files or areas:** Known paths or explicitly mark unknown paths instead of guessing
142
154
  - **Dependencies:** Earlier phases or external systems
143
- - **Tests & Test Slicing:** Exact targeted slice (e.g. `node --test tests/foo.test.mjs`), focused checks, lint-first gate, and applicable quality gates
144
- - **Risks & Mitigation:** Specific risk → concrete mitigation
145
-
146
- 2. **[Phase Name] → @agent**
147
- ...
155
+ - **Tests & Test Slicing:** Exact targeted slice (< 10s), focused checks, lint-first gate
156
+ - **Risks & Mitigation:** Specific risk → concrete prevention
148
157
 
149
- ### Acceptance Criteria & Verification
158
+ #### Acceptance Criteria & Verification
150
159
  - [ ] Observable completion criterion
151
- - [ ] Verification criterion (all targeted tests green, 0 lint warnings)
160
+ - [ ] Verification criterion (targeted tests green, 0 lint warnings)
152
161
 
153
- ### Rollback & Contingency Plan
154
- - **Failure Trigger:** Conditions under which execution aborts (e.g. test slice failure, unexpected schema corruption).
155
- - **Rollback Steps:** Revert commit / feature flag toggle / database rollback migration.
162
+ #### Rollback & Contingency Plan
163
+ - **Failure Trigger:** Conditions under which execution aborts
164
+ - **Rollback Steps:** Revert commit / feature flag toggle / database rollback migration
156
165
  ```
157
166
 
158
- The complete plan is the deliverable. Include it in your final response to the
159
- caller; do not replace it with a summary, a file path, a status such as
160
- "approval requested", or content available only in your child-session transcript.
167
+ ### Interactive Question Gate
168
+ When directly invoked by the user, if you need trade-off confirmation or final approval, always call the native `question` tool with structured choices (e.g., `["Aprovar e executar", "Ajustar plano"]`), rather than relying solely on unstructured chat text.
161
169
  Keep unknown paths and unverified assumptions explicit rather than fabricating
162
170
  detail.
163
171
 
@@ -11,6 +11,7 @@ permission:
11
11
  vision_describe: allow
12
12
  pantheon_jev_decide: allow
13
13
  pantheon_skill_search: allow
14
+ question: allow
14
15
  task:
15
16
  "*": allow
16
17
  temperature: 0.2
@@ -97,9 +98,13 @@ Before every dispatch, send the target a concise brief with the objective/result
97
98
  ## Plan Handoff and Approval
98
99
 
99
100
  Whenever the user explicitly asks for a plan, or starts `/pantheon-deepwork`:
100
- 1. Delegate planning to @athena synchronously via `subagent`. Tell Athena to return the complete Markdown plan in the final subagent result; Zeus owns the user-facing approval gate.
101
- 2. Check that the returned subagent result contains the full plan with goal, scope, actionable phases, affected files, verification, risks, and acceptance criteria. If the plan is missing or incomplete, do not ask for approval, and tell the user the handoff did not contain a reviewable plan.
102
- 3. Publish the **entire returned plan as a normal assistant message in the main conversation** without summarizing. The plan message must be visible in the conversation before you trigger any approval UI.
103
- 4. After the plan has been published, request approval. If the runtime cannot guarantee that the plan message is visible before the question UI opens, leave the full plan in the conversation, ask for approval in plain text after it, and wait for the user's next message.
104
- 5. If the user requests changes, send them to Athena, then present the entire revised plan in the main conversation and repeat the approval gate.
105
- Athena is plan-only and cannot write files; write `.pantheon/deepwork/<slug>/PLAN.md` yourself right after her plan lands.
101
+ 1. Delegate planning to @athena synchronously via `subagent`. Tell Athena to return both the Executive Summary and the full technical plan in the subagent result; Zeus owns the user-facing approval gate.
102
+ 2. Check that the returned subagent result contains a valid plan with goal, scope, actionable phases, affected files, verification, risks, and acceptance criteria.
103
+ 3. Write the full technical blueprint to `.pantheon/deepwork/<slug>/PLAN.md` immediately so the complete specification is permanently available on disk for implementation specialists.
104
+ 4. Present a **didactic, visual Executive Decision Summary in chat (1 screen max, ~15-20 lines)**:
105
+ - **Goal & Target:** 1 crisp sentence.
106
+ - **Execution Flow:** Mermaid diagram (3-4 nodes).
107
+ - **Slice Table:** Compact table (`Phase | Specialist | Key Deliverable | Verification Slice`).
108
+ - **Disk Blueprint:** Clear reference that the exhaustive technical spec is preserved in `.pantheon/deepwork/<slug>/PLAN.md`.
109
+ 5. **Interactive Question Gate:** Always invoke the native `question` tool to request user approval with explicit options (e.g., `["Aprovar e iniciar execução", "Ajustar plano"]` / `["Approve and begin execution", "Adjust plan"]`), falling back to plain text only if the tool is not exposed.
110
+ 6. If the user requests changes, send feedback to Athena, update `.pantheon/deepwork/<slug>/PLAN.md`, and repeat the interactive gate.
@@ -194,11 +194,11 @@ function buildAutonomyTab(input) {
194
194
  title: isPt ? "Autonomia" : "Autonomy",
195
195
  groups: [
196
196
  {
197
- title: isPt ? "Goal loop (auto-continuação de sessões multi-turn)" : "Goal loop (multi-turn session auto-continuation)",
197
+ title: isPt ? "Loop Contínuo (auto-continuação de sessões multi-turn)" : "Auto-Continue Loop (multi-turn session auto-continuation)",
198
198
  rows: [
199
199
  {
200
200
  id: "autonomy.goal_loop.enabled",
201
- name: isPt ? "Goal loop" : "Goal loop",
201
+ name: isPt ? "Loop Contínuo" : "Auto-Continue Loop",
202
202
  value: input.goalLoop.enabled ? "enabled" : "disabled",
203
203
  cycle: GOAL_LOOP_ENABLED_CYCLE,
204
204
  note: isPt ? "continua tarefas multi-turn quando a sessão fica ociosa" + (input.goalLoopRestartPending ? " · [!] reinício necessário para aplicar (restart)" : " · aplicado após reiniciar o OpenCode") : "auto-continues multi-turn tasks when session goes idle" + (input.goalLoopRestartPending ? " · [!] restart required to apply" : " · applies after OpenCode restart")
@@ -220,16 +220,16 @@ function buildAutonomyTab(input) {
220
220
  ]
221
221
  },
222
222
  {
223
- title: isPt ? "Orçamento Jev (aplicado em tempo real por decisão)" : "Decision budgets (applies live per gated call)",
223
+ title: isPt ? "Orçamentos de Decisão (Jev)" : "Decision Budgets (Jev)",
224
224
  rows: [{
225
225
  id: "autonomy.budget.monthly",
226
- name: isPt ? "Teto mensal" : "Monthly cap",
226
+ name: isPt ? "Teto Mensal (USD)" : "Monthly Budget Cap",
227
227
  value: formatUsd(input.budgets.monthlyUsd),
228
228
  cycle: MONTHLY_USD_CYCLE,
229
229
  note: isPt ? "teto mensal em USD para arbitragem do Jev" : "monthly USD ceiling for gated arbitrator decisions"
230
230
  }, {
231
231
  id: "autonomy.budget.perDecision",
232
- name: isPt ? "Teto por decisão" : "Per-decision cap",
232
+ name: isPt ? "Teto por Consulta" : "Per-Decision Cap",
233
233
  value: formatUsd(input.budgets.perDecisionUsd),
234
234
  cycle: PER_DECISION_USD_CYCLE,
235
235
  note: isPt ? "teto de custo por decisão — acima disso é recusada" : "price cap — gated decisions above this are refused"
@@ -534,13 +534,13 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
534
534
  const { config, corrupt } = read;
535
535
  const rows = [{
536
536
  id: "decision.enabled",
537
- name: isPt ? "Assistente Jev" : "Router",
537
+ name: isPt ? "Assistente Jev" : "Jev Assistant",
538
538
  value: config.enabled ? "enabled" : "disabled",
539
539
  ...corrupt ? {} : { cycle: DECISION_ENABLED_CYCLE },
540
540
  note: corrupt ? isPt ? "config inválida — runtime fail-closes; repair via `decision-router setup-model`" : "config unreadable/invalid — runtime fail-closes; repair via `decision-router setup-model`" : isPt ? "applies live — arbitragem de decisões relida em tempo real a cada chamada" : "applies live — the runtime re-reads this on every gated call"
541
541
  }, {
542
542
  id: "decision.selection.mode",
543
- name: isPt ? "Modo de operação" : "Selection mode",
543
+ name: isPt ? "Modo de Operação" : "Operation Mode",
544
544
  value: config.selection.mode,
545
545
  ...corrupt ? {} : { cycle: DECISION_SELECTION_CYCLE },
546
546
  note: isPt ? "local = no seu PC (grátis); auto/explícito = modelo nuvem (OpenRouter)" : "local routes on-device; auto/explicit pick a remote decision model"
@@ -548,7 +548,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
548
548
  const explicitTarget = config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : DECISION_TARGET_CYCLE[0] ?? "openrouter-jev/typesafe/jev-1.13";
549
549
  rows.push({
550
550
  id: "decision.selection.target",
551
- name: isPt ? "Modelo de decisão" : "Explicit target",
551
+ name: isPt ? "Modelo de Decisão" : "Decision Model",
552
552
  value: config.selection.mode === "local" ? config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : "local (on-device)" : explicitTarget,
553
553
  ...corrupt ? {} : { cycle: DECISION_TARGET_CYCLE },
554
554
  note: isPt ? config.selection.mode === "local" ? "ciclar seleciona modelo remoto e ativa modo explícito" : "provedor/modelo ativo — define candidato para arbitragem" : config.selection.mode === "local" ? "cycle to select a remote model and activate explicit mode" : "provider/model — sets the candidate list"
@@ -561,7 +561,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
561
561
  });
562
562
  rows.push({
563
563
  id: "decision.consent",
564
- name: isPt ? "Acesso à nuvem (Egress)" : "Egress consent",
564
+ name: isPt ? "Acesso à Nuvem" : "Cloud API Access",
565
565
  value: config.egress_consent ? "granted" : "not granted",
566
566
  ...corrupt ? {} : { cycle: DECISION_CONSENT_CYCLE },
567
567
  note: isPt ? config.egress_consent ? "granted = rotas remotas podem consultar gateway de API (com teto de custo)" : "not granted = chamadas remotas bloqueadas; requer granted para nuvem" : config.egress_consent ? "granted = remote decision routes may call their gateway (budget-capped)" : "not granted = remote routes fail closed; grant to allow cloud calls"
@@ -570,7 +570,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
570
570
  id: "decision",
571
571
  title: isPt ? "Decisão" : "Decision",
572
572
  groups: [{
573
- title: isPt ? "Assistente de Decisão" : "Decision router",
573
+ title: isPt ? "Assistente de Decisão (Jev)" : "Decision Assistant (Jev)",
574
574
  rows
575
575
  }, {
576
576
  title: isPt ? "Credenciais (status apenas — valores nunca gravados na janela)" : "Credentials (status only — values never enter the window)",
@@ -1119,13 +1119,13 @@ function buildJ1Tab(env, disabledByOverride, languagePref) {
1119
1119
  const desc = isPt ? MODE_DESCRIPTION_PT[mode] : MODE_DESCRIPTION_EN[mode];
1120
1120
  return {
1121
1121
  id: "j1",
1122
- title: isPt ? "Segurança J1" : "J1",
1122
+ title: isPt ? "Segurança J1" : "J1 Safety",
1123
1123
  groups: [{
1124
- title: isPt ? "Nível de Segurança e Portão de Risco J1 (env-only)" : "Safety Level & Risk Gate (J1) (env-only — never written here)",
1124
+ title: isPt ? "Portão de Segurança (J1)" : "Safety Risk Gate (J1)",
1125
1125
  rows: [
1126
1126
  {
1127
1127
  id: "j1.mode",
1128
- name: isPt ? "Modo de execução" : "Mode",
1128
+ name: isPt ? "Modo de Operação" : "Operation Mode",
1129
1129
  value: mode,
1130
1130
  note: `${desc} · ${isPt ? "reinício necessário (restart applies)" : "restart applies"}`
1131
1131
  },
@@ -1137,7 +1137,7 @@ function buildJ1Tab(env, disabledByOverride, languagePref) {
1137
1137
  },
1138
1138
  {
1139
1139
  id: "j1.gate",
1140
- name: isPt ? "Estado do portão" : "Gate",
1140
+ name: isPt ? "Portão de Segurança" : "Safety Risk Gate",
1141
1141
  value: gateState,
1142
1142
  note: `${J1_FLAG_ENV} / ${J1_THRESHOLD_ENV} · ${isPt ? "lido na inicialização" : "read once at startup"}`
1143
1143
  }
@@ -1950,7 +1950,7 @@ async function readChangelogForBundle(bundleUrl) {
1950
1950
  }
1951
1951
  /** The ambient build-time version, or null outside a tsdown build. */
1952
1952
  function embeddedVersion() {
1953
- return "2.0.2";
1953
+ return "2.0.3";
1954
1954
  }
1955
1955
  /**
1956
1956
  * Resolve the running Pantheon version for the what's-new window: the plugin
@@ -2175,7 +2175,7 @@ function persistUpdateCheckState(previous, latest) {
2175
2175
  } catch {}
2176
2176
  }
2177
2177
  function resolveRunningVersion() {
2178
- return "2.0.2";
2178
+ return "2.0.3";
2179
2179
  }
2180
2180
  const VALUE_WIDTH = 24;
2181
2181
  function SettingsWindow(props) {
@@ -6341,7 +6341,7 @@ async function checkForPantheonUpdate(context) {
6341
6341
  const latest = String((await response.json())?.version ?? "");
6342
6342
  if (!latest) return;
6343
6343
  const notice = pickUpdateNotice({
6344
- currentVersion: "2.0.2",
6344
+ currentVersion: "2.0.3",
6345
6345
  latestVersion: latest,
6346
6346
  state: readState(),
6347
6347
  nowMs: Date.now()
@@ -7153,7 +7153,7 @@ function Sidebar(props) {
7153
7153
  get children() {
7154
7154
  var _el$13 = createElement("text");
7155
7155
  setProp(_el$13, "attributes", 1);
7156
- insert(_el$13, `Pantheon v2.0.2`);
7156
+ insert(_el$13, `Pantheon v2.0.3`);
7157
7157
  effect((_$p) => setProp(_el$13, "fg", text(), _$p));
7158
7158
  return _el$13;
7159
7159
  }
@@ -7925,7 +7925,7 @@ function HomeStatus(props) {
7925
7925
  },
7926
7926
  get children() {
7927
7927
  var _el$73 = createElement("text");
7928
- insert(_el$73, () => `Pantheon v2.0.2${preset().name ? ` ▸ ${preset().name}` : ""}`);
7928
+ insert(_el$73, () => `Pantheon v2.0.3${preset().name ? ` ▸ ${preset().name}` : ""}`);
7929
7929
  effect((_$p) => setProp(_el$73, "fg", muted(), _$p));
7930
7930
  return _el$73;
7931
7931
  }