@axiomantic/garden 0.2.8 → 0.2.10

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/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  **Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine**
6
6
 
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
8
- [![Rhizo](https://img.shields.io/badge/Rhizo-0.2.1%2B-red.svg)](https://github.com/axiomantic/rhizo)
9
- [![Vine](https://img.shields.io/badge/Vine-0.2.0%2B-purple.svg)](https://github.com/axiomantic/vine)
8
+ [![Rhizo](https://img.shields.io/badge/Rhizo-0.2.11%2B-red.svg)](https://github.com/axiomantic/rhizo)
9
+ [![Vine](https://img.shields.io/badge/Vine-0.2.3%2B-purple.svg)](https://github.com/axiomantic/vine)
10
10
  [![Swarm](https://img.shields.io/badge/Swarm-Prompt--Bootstrapped-brightgreen.svg)](README.md)
11
11
  [![Platform](https://img.shields.io/badge/Platform-macOS%20%7C%20Linux-blue.svg)](README.md)
12
12
 
@@ -29,7 +29,7 @@
29
29
  > ```
30
30
  > The session automatically acts as the **Lead Orchestrator**. It conducts a brief interactive intake interview to calibrate your desired team balance, coding harnesses, and model tiers. It then configures your project (`garden.toml` & `garden-swarm.json`) and prints ready-to-copy prompt cards wrapped in **10 backticks** (` ``````````markdown `). You paste these cards into separate terminal tabs or coding harnesses, and Garden coordinates the entire swarm over Rhizo (local Redis message bus) and Vine (isolated Rift copy-on-write workspaces)!
31
31
 
32
- Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated APFS Copy-on-Write strands verified by Vine's Two-Key Gate.
32
+ Instead of treating AI agents as isolated single-turn chatbots, Garden provisions **prompt-bootstrapped worker swarms** across your favorite AI coding harnesses (Claude Code, OpenCode, Antigravity, Pi, Cursor), balances specialized personas with designated foundation models, drives **empirically grounded dialectical deliberation**, schedules distributed fencing mutexes, and integrates code through isolated Rift copy-on-write strands verified by Vine's Two-Key Gate.
33
33
 
34
34
  ```mermaid
35
35
  flowchart TD
@@ -45,7 +45,7 @@ flowchart TD
45
45
  end
46
46
 
47
47
  subgraph Layer2["Layer 2: Vine (Workstream Integrator)"]
48
- Strands["APFS CoW Strands (Sub-second isolated workspaces)"]
48
+ Strands["Rift Strands (Zero-cost copy-on-write workspaces)"]
49
49
  TwoKey["Two-Key Gate (Mechanical merge-tree + semantic test suite)"]
50
50
  Weave["Trunk Weaving (Fast-forward verified branches)"]
51
51
  end
@@ -82,7 +82,7 @@ Garden is completely standalone and can direct multi-agent dialectics, persona s
82
82
 
83
83
  However, Garden is designed from the ground up to pair seamlessly with **Rhizo** and **Vine**:
84
84
  - [**Rhizo**](https://github.com/axiomantic/rhizo) (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
85
- - [**Vine**](https://github.com/axiomantic/vine) (Workspaces & Verification): Sub-second APFS Copy-on-Write strands, polyglot build-cache normalization, and the Two-Key integration gate (`git merge-tree` mechanical + compiler/test suite semantic checks).
85
+ - [**Vine**](https://github.com/axiomantic/vine) (Workspaces & Verification): Zero-cost Rift copy-on-write strands, polyglot build-cache normalization, and the Two-Key integration gate (`git merge-tree` mechanical + compiler/test suite semantic checks).
86
86
  - **Garden** (Swarm Ceremonies): Prompt-based worker session bootstrapping, 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.
87
87
 
88
88
  ---
@@ -113,7 +113,7 @@ Install the compiled CLI tools directly onto your `$PATH`:
113
113
 
114
114
  ```bash
115
115
  # Install all three tools:
116
- npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden
116
+ npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapshot
117
117
 
118
118
  # Or install Garden alone:
119
119
  npm install -g @axiomantic/garden
@@ -190,7 +190,7 @@ The personas deliberate across three empirical stages:
190
190
  ### 5. Ceremonial Planning (`plan-implementation`)
191
191
  Garden authors `implementation_plan.md`:
192
192
  - Schedules distributed fencing locks (`rhizo lock file:<path> --fencing`).
193
- - Assigns tasks and defines APFS CoW strands (`vine new <task_id> --worktree`).
193
+ - Assigns tasks and provisions isolated Rift strands (`vine new <task_id>`).
194
194
  - Sets up dynamic progress checkboxes and harness To-Do tracking.
195
195
 
196
196
  ### 6. Live Orchestration & Trunk Weaving (`orchestrate-swarm`)
package/SKILL.md CHANGED
@@ -73,7 +73,11 @@ When an operator initiates a project or requests multi-agent coordination, the s
73
73
  - *Option 2*: Focused Duo (2 Workers: Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
74
74
  - *Option 3*: Custom Swarm (Operator specifies custom roles and headcount).
75
75
  3. **Question 3: Available AI Coding Harnesses**:
76
- - The operator specifies which coding environments they have available (Claude Code CLI, Antigravity, OpenCode, Pi, Cursor, Headless Terminal). Explain that workers can run in **any** combination of harnesses!
76
+ - The operator specifies which coding environments they will open dedicated tabs/windows for (Claude Code CLI, OpenCode, Antigravity, Pi, Cursor, Headless Terminal).
77
+ <CRITICAL>
78
+ Sovereign Sessions Only (Universal Subagent Prohibition):
79
+ Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via copy-paste prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY PROHIBITED as swarm workers across all harnesses. Internal subagents are ephemeral, cannot maintain continuous background listeners, and cause severe context poisoning. NEVER offer or present "subagents" as an option in Question 3 or any other intake question.
80
+ </CRITICAL>
77
81
  4. **Question 4: Foundation Model Pairing & Equivalencies**:
78
82
  - Recommend optimal models with fallback equivalents:
79
83
  - `@<project>-architect`: Gemini 3.8 Flash / Claude 3.5 Sonnet / GPT-4o (deep architecture comprehension).
@@ -224,7 +228,11 @@ This intake gate applies to ANY request to "work on X", "build Y", "fix Z", or "
224
228
  </CRITICAL>
225
229
 
226
230
  <INVARIANT>
227
- Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must ONLY be used if the operator explicitly requests a "subagent" by name, or if no cluster workers exist in the cluster roster (`rhizo who`).
231
+ Sovereign Session & Subagent Prohibition: Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g., Antigravity's 'invoke_subagent', Claude Code's 'Task', OpenCode subagents, Cursor sub-composers) are STRICTLY PROHIBITED from acting as cluster swarm workers across all harnesses. Internal subagents are ephemeral, terminate upon single-task completion, cannot maintain persistent blocking listeners ('rhizo listen'), corrupt workspace isolation, and cause severe context poisoning by dumping execution traces back into the parent prompt. When orchestrating or bootstrapping a swarm, an orchestrator must NEVER spawn internal subagents and must NEVER offer "subagents" as a worker execution option during intake.
232
+ </INVARIANT>
233
+
234
+ <INVARIANT>
235
+ Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must NEVER be used to fulfill cluster swarm roles; they are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly requests a "subagent" by name.
228
236
  </INVARIANT>
229
237
 
230
238
  <INVARIANT>
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomantic/garden",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
5
5
  "main": "bin/run.js",
6
6
  "bin": {
@@ -37,16 +37,32 @@ graph TD
37
37
 
38
38
  ---
39
39
 
40
- ## 2. Harness & Model Matching Matrix
40
+ ## 2. Harness & Model Alignment
41
41
 
42
- When proposing personas, the assistant must explicitly pair each persona with an appropriate **coding harness** and **foundation model**, taking operator preferences into account (defaulting to Antigravity + Gemini 3.8 Flash for rapid implementation, and invoking Claude for deep adversarial auditing):
42
+ Every recommended worker represents an INDEPENDENT, DEDICATED CODING SESSION (separate terminal tab or dedicated IDE window) bootstrapped via Garden 10-backtick prompt cards.
43
43
 
44
- | Role Mandate | Recommended Harness | Recommended Model Tier | Rationale |
44
+ Workers inherit whatever foundation model is native or configured in that session:
45
+ - In **Antigravity IDE**: Workers run on Antigravity's active session models (Gemini).
46
+ - In **Claude Code CLI**: Workers run on Claude CLI's active models (Claude 3.7 Sonnet).
47
+ - In **OpenCode Desktop**: Workers run on models configured in `opencode.json`.
48
+ - In **Headless Terminal / Pi**: Workers run on provider CLI configuration.
49
+
50
+ <CRITICAL>
51
+ Sovereign Dedicated Sessions Only (Universal Subagent Prohibition):
52
+ Swarm workers are ALWAYS sovereign, independent interactive sessions (separate terminal tabs or dedicated IDE windows) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY FORBIDDEN from acting as swarm workers. NEVER pair a persona with internal subagents.
53
+ </CRITICAL>
54
+
55
+ <CRITICAL>
56
+ Session Default Models (No Cross-Harness Model Quizzes):
57
+ Swarm workers operate in sovereign interactive sessions and inherit whatever foundation model is active in that harness session. NEVER present a separate question asking the operator to choose "Foundation Model Pairings", and NEVER present model options that do not correspond to the chosen harness. In `garden-swarm.json` and prompt cards, models default to `"Session Default (active in window/tab)"`.
58
+ </CRITICAL>
59
+
60
+ | Role Mandate | Recommended Harness | Model Alignment | Rationale |
45
61
  | :--- | :--- | :--- | :--- |
46
- | **Architectural Design & Systems Modeling** | **Antigravity** or **OpenCode** | **Gemini 3.8 Flash** or **Claude 3.5 Sonnet** | Fast token throughput, deep reasoning, superior multi-file architectural comprehension, and native background ear support. |
47
- | **Adversarial Audit & Code Quality Purism** | **Claude Code CLI** | **Claude 3 Opus** or **Claude 3.5 Sonnet** | Uncompromising adherence to instructions, meticulous attention to negative controls, zero tolerance for superficial green tests. |
48
- | **DevEx, Rapid Prototyping & Implementation** | **Antigravity** | **Gemini 3.8 Flash** | Native reactive tool execution (`run_command`), rapid file modification, direct terminal feedback. |
49
- | **Hermetic / Local Security Analysis** | **Headless Terminal Worker** | **Ollama / Local DeepSeek-R1** | Air-gapped execution for proprietary credentials, licensing checks, or sensitive security audits. |
62
+ | **Architectural Design & Systems Modeling** | **Antigravity (Dedicated Window)** or **OpenCode (Dedicated Session)** | Session Default (Native in window) | Fast token throughput, deep reasoning, superior multi-file architectural comprehension, and native background ear support. |
63
+ | **Adversarial Audit & Code Quality Purism** | **Claude Code CLI (Dedicated Tab)** or **Antigravity (Dedicated Window)** | Session Default (Native in tab/window) | Uncompromising adherence to instructions, meticulous attention to negative controls, zero tolerance for superficial green tests. |
64
+ | **DevEx, Rapid Prototyping & Implementation** | **Antigravity (Dedicated Window)** or **OpenCode (Dedicated Session)** | Session Default (Native in window) | Native reactive tool execution (`run_command`), rapid file modification, direct terminal feedback. |
65
+ | **Hermetic / Local Security Analysis** | **Headless Terminal Worker (Dedicated Tab)** | Ollama / Local DeepSeek-R1 | Air-gapped execution for proprietary credentials, licensing checks, or sensitive security audits. |
50
66
 
51
67
  ---
52
68
 
@@ -56,17 +72,27 @@ When proposing personas, the assistant must explicitly pair each persona with an
56
72
  sequenceDiagram
57
73
  autonumber
58
74
  participant Orch as Orchestrator Chat
75
+ participant Redis as Rhizo Cluster
59
76
  participant Repo as Codebase Context
60
77
  participant User as Human Operator
61
78
 
62
- Orch->>Repo: Inspects project language, repo structure & open issues
63
- Note over Orch: Formulates primary triad + 2 alternate candidates
64
- Orch->>User: Renders interactive ask_question modal with recommendations & alternatives
65
- User-->>Orch: Submits chosen triad (or specifies custom modifications)
66
- Orch->>Repo: Writes garden-swarm.json manifest
79
+ Orch->>Redis: rhizo who --json (Pre-Flight Check)
80
+ alt Active Workers Found
81
+ Redis-->>Orch: Active workers online
82
+ Note over Orch: Bypasses intake; reuses active cluster workers
83
+ else Zero Workers Online
84
+ Orch->>Repo: Inspects project language, repo structure & open issues
85
+ Note over Orch: Formulates primary triad + harness pairing
86
+ Orch->>User: Renders unified ask_question modal (Team shape + Harness)
87
+ User-->>Orch: Submits chosen triad
88
+ Orch->>Repo: Writes garden-swarm.json manifest
89
+ end
67
90
  ```
68
91
 
69
- ### Step 1: Codebase & Task Analysis
92
+ ### Step 0: Pre-Flight Cluster Check
93
+ Run `rhizo who --json` and inspect `garden-swarm.json`. If active, healthy workers already exist in the cluster, skip persona selection and reuse the existing workers.
94
+
95
+ ### Step 1: Codebase & Task Analysis (Cold Starts Only)
70
96
  1. Inspect repository stack (e.g., Nim, Rust, Python, TypeScript, C).
71
97
  2. Read project `AGENTS.md` and `README.md` to identify existing conventions.
72
98
  3. Determine task scope:
@@ -74,21 +100,20 @@ sequenceDiagram
74
100
  - *Greenfield Subsystem*: Prioritize Systems Architect + API Designer.
75
101
  - *Security / Compliance*: Prioritize ISO Compliance Auditor + Security Adversary.
76
102
 
77
- ### Step 2: Formulate Recommendation & Alternatives
78
- Synthesize the primary triad and at least two alternative candidates:
103
+ ### Step 2: Formulate Unified Recommendation & Alternatives
104
+ Synthesize the primary triad paired with target harness environments:
79
105
  - **Primary Triad**:
80
- - Persona 1: Name, Role title, Mandate, Suggested Harness, Suggested Model.
81
- - Persona 2: Name, Role title, Mandate, Suggested Harness, Suggested Model.
82
- - Persona 3: Name, Role title, Mandate, Suggested Harness, Suggested Model.
83
- - **Alternative Candidates**:
84
- - Alternate A: e.g. Performance Benchmarking Engineer.
85
- - Alternate B: e.g. Documentation & Developer Education Lead.
106
+ - Persona 1: Marcus Vance, Staff Systems Architect (Invariants, boundaries, structure)
107
+ - Persona 2: Caleb Thorne, Verification & Adversarial Auditor (Negative controls, purism)
108
+ - Persona 3: Elena Rostova, DevEx & Implementation Lead (Velocity, ergonomics)
86
109
 
87
110
  ### Step 3: Interactive Operator Ratification (`ask_question`)
88
- Invoke `ask_question` with structured, selectable options:
89
- - Option 1 (Recommended): Primary Triad (with explicit harnesses and models listed).
90
- - Option 2: Alternative balance (e.g. replacing Purist with Performance Engineer).
91
- - Option 3: Custom configuration (allows user write-in).
111
+ Invoke `ask_question` with unified, selectable options combining team shape and harness:
112
+ - Option 1 (Recommended): Balanced Triad in Antigravity IDE (3 dedicated workspace windows, session-native models)
113
+ - Option 2: Balanced Triad in Claude Code CLI (3 dedicated terminal tabs)
114
+ - Option 3: Balanced Triad in OpenCode (3 dedicated sessions)
115
+ - Option 4: Focused Duo (Implementation Lead + Adversarial Auditor in preferred harness)
116
+ - Option 5: Custom configuration (allows user write-in).
92
117
 
93
118
  ### Step 4: Generate Swarm Manifest (`garden-swarm.json`)
94
119
  Once ratified, write `garden-swarm.json` to the target project directory:
@@ -104,8 +129,8 @@ Once ratified, write `garden-swarm.json` to the target project directory:
104
129
  "name": "my-project-architect",
105
130
  "persona": "Marcus Vance",
106
131
  "role": "Staff Systems Architect",
107
- "harness": "Antigravity / OpenCode",
108
- "model": "Gemini 3.8 Flash / Claude 3.5 Sonnet",
132
+ "harness": "Antigravity / Claude Code",
133
+ "model": "Session Default (active in window/tab)",
109
134
  "tags": ["my-project", "systems", "architecture", "invariants"],
110
135
  "system_prompt": "You are Marcus Vance, Staff Systems Architect for project my-project...",
111
136
  "opposing_priority": "Structural purity, invariant guarantees, and long-term maintainability over hasty quick fixes."
@@ -115,7 +140,7 @@ Once ratified, write `garden-swarm.json` to the target project directory:
115
140
  "persona": "Caleb Thorne",
116
141
  "role": "Verification & Adversarial Auditor",
117
142
  "harness": "Claude Code CLI / Antigravity",
118
- "model": "Claude 3.5 Sonnet / Claude 3 Opus",
143
+ "model": "Session Default (active in window/tab)",
119
144
  "tags": ["my-project", "qa", "audit", "verifier", "purist"],
120
145
  "system_prompt": "You are Caleb Thorne, Verification & Adversarial Auditor for project my-project...",
121
146
  "opposing_priority": "Adversarial skepticism, rigorous negative controls, and proof over convenience."
@@ -125,7 +150,7 @@ Once ratified, write `garden-swarm.json` to the target project directory:
125
150
  "persona": "Elena Rostova",
126
151
  "role": "DevEx & Implementation Lead",
127
152
  "harness": "Antigravity / OpenCode",
128
- "model": "Gemini 3.8 Flash / Claude 3.5 Sonnet",
153
+ "model": "Session Default (active in window/tab)",
129
154
  "tags": ["my-project", "dev", "devex", "build", "implementation"],
130
155
  "system_prompt": "You are Elena Rostova, DevEx & Implementation Lead for project my-project...",
131
156
  "opposing_priority": "High-velocity implementation, pragmatic delivery, and developer ergonomics."
@@ -63,23 +63,38 @@ Execute phases sequentially. Never skip phases or invert the order.
63
63
 
64
64
  ### Phase 0: Interactive Project Intake & Swarm Calibration
65
65
 
66
- When an operator initiates a project or requests multi-agent coordination, the session MUST NOT silently guess configuration or begin writing code directly. It immediately invokes `ask_question` to conduct the **Interactive Intake Interview**:
66
+ #### Fast-Path: Re-using an Active / Existing Swarm (First-Look Invariant)
67
+ Before asking ANY intake questions or presenting configuration modals, the orchestrator MUST run `rhizo who --json` to inspect the cluster.
68
+ If active, healthy workers are ALREADY registered and listening on the Rhizo cluster:
69
+ - **DO NOT** ask intake interview questions or prompt the operator for new sessions or models.
70
+ - **DO NOT** display swarm composition or harness questions.
71
+ - Automatically attach to the existing online workers (`@worker-1`, `@worker-2`, ...).
72
+ - Confirm cluster readiness and proceed immediately to Phase 3 (Dialectical Pump / Task Breakdown) or Phase 5 (Task Dispatch).
73
+
74
+ #### Cold-Start Intake Protocol (Zero Active Workers Only)
75
+ When an operator initiates a fresh project or requests multi-agent coordination and NO active cluster workers exist, the session MUST NOT silently guess configuration. It invokes `ask_question` to conduct a streamlined **Interactive Intake Interview** of at most TWO questions:
67
76
 
68
77
  1. **Question 1: Execution Mode**:
69
78
  - *Option 1 (Recommended)*: Multi-Agent Swarm (Dedicated terminal tabs/coding harnesses over Rhizo & Vine).
70
79
  - *Option 2*: Single-Agent Inline (Sequential execution within current chat session).
71
- 2. **Question 2: Swarm Composition & Team Sizing**:
72
- - *Option 1 (Recommended)*: Balanced Triad (3 Workers: Systems Architect `@<project>-architect`, Adversarial Auditor `@<project>-auditor`, DevEx Lead `@<project>-implementer`).
73
- - *Option 2*: Focused Duo (2 Workers: Implementation Lead `@<project>-implementer`, Adversarial Auditor `@<project>-auditor`).
74
- - *Option 3*: Custom Swarm (Operator specifies custom roles and headcount).
75
- 3. **Question 3: Available AI Coding Harnesses**:
76
- - The operator specifies which coding environments they have available (Claude Code CLI, Antigravity, OpenCode, Pi, Cursor, Headless Terminal). Explain that workers can run in **any** combination of harnesses!
77
- 4. **Question 4: Foundation Model Pairing & Equivalencies**:
78
- - Recommend optimal models with fallback equivalents:
79
- - `@<project>-architect`: Gemini 3.8 Flash / Claude 3.5 Sonnet / GPT-4o (deep architecture comprehension).
80
- - `@<project>-auditor`: Claude 3.5 Sonnet / Claude 3 Opus (strict negative controls, zero sloppy approvals).
81
- - `@<project>-implementer`: Gemini 3.8 Flash / Claude 3.5 Sonnet (rapid, iterative coding velocity).
82
- - *Air-gapped / Local*: Ollama / DeepSeek-R1.
80
+
81
+ 2. **Question 2: Swarm Composition & Harness Environment (Unified)**:
82
+ Pair team composition directly with the target coding harness in a single decision point:
83
+ - *Option 1 (Recommended)*: Balanced Triad in Antigravity IDE (3 dedicated workspace windows, session-native models).
84
+ - *Option 2*: Balanced Triad in Claude Code CLI (3 dedicated terminal tabs, Claude models).
85
+ - *Option 3*: Balanced Triad in OpenCode (3 dedicated sessions, configured workspace models).
86
+ - *Option 4*: Focused Duo (2 Workers: Implementation Lead & Adversarial Auditor in preferred harness).
87
+ - *Option 5*: Custom / Mixed Harnesses (Operator specifies custom distribution).
88
+
89
+ <CRITICAL>
90
+ Sovereign Sessions Only (Universal Subagent Prohibition):
91
+ Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via copy-paste prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY PROHIBITED as swarm workers across all harnesses. Internal subagents are ephemeral, cannot maintain continuous background listeners, and cause severe context poisoning. NEVER offer or present "subagents" as an option in Question 2 or any other intake question.
92
+ </CRITICAL>
93
+
94
+ <CRITICAL>
95
+ Standalone Foundation Model Pairing Quiz Prohibited:
96
+ Swarm workers operate in sovereign interactive sessions and inherit whatever foundation model is active in that harness session (e.g., Gemini in Antigravity, Claude in Claude Code, provider settings in OpenCode). NEVER present a separate question asking the operator to choose "Foundation Model Pairings", and NEVER present model options (Claude, GPT, Gemini) that do not correspond to the chosen harness. In `garden-swarm.json` and prompt cards, model configuration defaults to `"Session Default (active in window/tab)"`.
97
+ </CRITICAL>
83
98
 
84
99
  #### Automatic Fulfillment & 10-Backtick Prompt Generation:
85
100
  Upon receiving the operator's responses:
@@ -224,7 +239,11 @@ This intake gate applies to ANY request to "work on X", "build Y", "fix Z", or "
224
239
  </CRITICAL>
225
240
 
226
241
  <INVARIANT>
227
- Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must ONLY be used if the operator explicitly requests a "subagent" by name, or if no cluster workers exist in the cluster roster (`rhizo who`).
242
+ Sovereign Session & Subagent Prohibition: Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated terminal tabs, CLI windows, or IDE sessions) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g., Antigravity's 'invoke_subagent', Claude Code's 'Task', OpenCode subagents, Cursor sub-composers) are STRICTLY PROHIBITED from acting as cluster swarm workers across all harnesses. Internal subagents are ephemeral, terminate upon single-task completion, cannot maintain persistent blocking listeners ('rhizo listen'), corrupt workspace isolation, and cause severe context poisoning by dumping execution traces back into the parent prompt. When orchestrating or bootstrapping a swarm, an orchestrator must NEVER spawn internal subagents and must NEVER offer "subagents" as a worker execution option during intake.
243
+ </INVARIANT>
244
+
245
+ <INVARIANT>
246
+ Delegation Precedence: When instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`). Harness-internal subagents (e.g. `invoke_subagent`, `Task`, `Agent`) must NEVER be used to fulfill cluster swarm roles; they are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly requests a "subagent" by name.
228
247
  </INVARIANT>
229
248
 
230
249
  <INVARIANT>
@@ -37,6 +37,10 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
37
37
  </CRITICAL>
38
38
  5. **Zero Dirty Commits**:
39
39
  - Never stage coordination state (`.rhizo.*`, `*.lock`, `.vine.json`, `workspaces/`) into Git.
40
+ 6. **Sovereign Dedicated Session Invariant (Universal Subagent Prohibition)**:
41
+ <CRITICAL>
42
+ Swarm workers are ALWAYS sovereign, independent interactive sessions (separate terminal tabs or IDE windows) bootstrapped via Garden 10-backtick prompt cards. Harness-internal subagents (e.g. Antigravity's `invoke_subagent`, Claude Code's `Task`, OpenCode subtasks, Cursor sub-composers) are STRICTLY FORBIDDEN from acting as swarm workers. Prompt cards are generated strictly for human operators to paste into separate sessions. The orchestrator must NEVER attempt to automate prompt cards by feeding them into internal subagents.
43
+ </CRITICAL>
40
44
 
41
45
  ---
42
46
 
@@ -90,11 +94,11 @@ The Orchestrator presents the generated prompt blocks to the operator with clear
90
94
 
91
95
  1. **Numbered Terminal Tab / Session Instructions**:
92
96
  Provide a concise setup list instructing the operator on how many sessions to open and which harness/model to configure for each:
93
- - **Session 1 (@<project>-architect)**: e.g. Antigravity or OpenCode with Gemini 3.8 Flash / Claude 3.5 Sonnet $\to$ Paste Card 1
94
- - **Session 2 (@<project>-auditor)**: e.g. Claude Code CLI with Claude 3.5 Sonnet / Claude 3 Opus $\to$ Paste Card 2
95
- - **Session 3 (@<project>-implementer)**: e.g. Antigravity or OpenCode with Gemini 3.8 Flash $\to$ Paste Card 3
97
+ - **Session 1 (@<project>-architect)**: e.g. Antigravity IDE (Window 1) or Claude Code CLI (Tab 1) $\to$ Paste Card 1
98
+ - **Session 2 (@<project>-auditor)**: e.g. Claude Code CLI (Tab 2) or Antigravity IDE (Window 2) $\to$ Paste Card 2
99
+ - **Session 3 (@<project>-implementer)**: e.g. Antigravity IDE (Window 3) or OpenCode $\to$ Paste Card 3
96
100
  2. **Harness & Model Agnostic Flexibility**:
97
- Explicitly reassure the operator: *"Workers can run in ANY coding harness (Claude Code, OpenCode, Antigravity, Pi, Cursor) and use any equivalent model tier. Coordination occurs strictly over Rhizo (local Redis) and Vine (Rift strands)."*
101
+ Explicitly reassure the operator: *"Workers can run in ANY coding harness (Antigravity, Claude Code, OpenCode, Pi, Cursor) and inherit the active model configured in that window/session. Coordination occurs strictly over Rhizo (local Redis) and Vine (Rift strands)."*
98
102
  3. **10-Backtick Raw Markdown Formatting**:
99
103
  Ensure every prompt card is displayed inside ` ``````````markdown ` fences so the operator can copy the clean, unrendered text with a single click.
100
104
  4. **Immediate Autonomous Onboarding**:
@@ -18,9 +18,9 @@ The main chat session assumes the role of **Lead Orchestrator**:
18
18
  - **Gated Integration**: Never run `git merge` directly. Only weave branches that have passed both Key 1 (mechanical merge-tree) and Key 2 (live compiler/tests) inside their Vine strands.
19
19
 
20
20
  <CRITICAL>
21
- Delegation Precedence Invariant:
21
+ Delegation Precedence & Sovereign Session Invariant:
22
22
  Whenever instructed to "delegate", "assign", or "dispatch" work, the Lead Orchestrator MUST route tasks to active cluster workers via Rhizo (`rhizo send <worker>`, `rhizo enqueue queue:<project>:tasks`, or `rhizo task assign/claim`).
23
- NEVER spawn harness-internal subagents (e.g. `invoke_subagent`, `Task`) when asked to delegate, UNLESS the operator explicitly specifies the word "subagent". Cluster workers running in dedicated sessions are the primary execution vehicle.
23
+ Cluster workers operate exclusively in dedicated, sovereign sessions bootstrapped via 10-backtick prompt cards. NEVER spawn harness-internal subagents (e.g. `invoke_subagent`, `Task`, OpenCode subtasks) to act as cluster workers. Internal subagents are ephemeral, cannot maintain persistent blocking listeners, and cause severe context poisoning. Harness-internal subagents are restricted solely to transient, single-turn ad-hoc inspections in non-swarm solo chats when the operator explicitly specifies the word "subagent".
24
24
  </CRITICAL>
25
25
 
26
26
  <CRITICAL>