@axiomantic/garden 0.2.24 → 0.2.26
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/SKILL.md +8 -8
- package/bin/binaries/garden-darwin-arm64 +0 -0
- package/bin/binaries/garden-darwin-x64 +0 -0
- package/bin/binaries/garden-linux-arm64 +0 -0
- package/bin/binaries/garden-linux-x64 +0 -0
- package/bin/binaries/garden-win32-x64.exe +0 -0
- package/package.json +4 -4
- package/skills/choose-personas/SKILL.md +7 -8
- package/skills/garden/SKILL.md +20 -19
- package/skills/launch-workers/SKILL.md +4 -4
- package/skills/orchestrate-swarm/SKILL.md +2 -2
package/SKILL.md
CHANGED
|
@@ -31,7 +31,7 @@ Garden directs multi-agent swarms using Rhizo for transport and Vine for workspa
|
|
|
31
31
|
flowchart TD
|
|
32
32
|
subgraph Garden["Garden Layer (Methodology & Ceremonies)"]
|
|
33
33
|
Phase0["Phase 0: Interactive Intake Interview (Scope, Team & Models)"]
|
|
34
|
-
Phase1["Phase 1: choose-personas (
|
|
34
|
+
Phase1["Phase 1: choose-personas (Synthesize Swarm Roles)"]
|
|
35
35
|
Phase2["Phase 2: launch-workers (10-Backtick Prompt Cards & Sessions)"]
|
|
36
36
|
Phase3["Phase 3: dialectical-pump (Research ➔ Design ➔ Audit)"]
|
|
37
37
|
Phase4["Phase 4: plan-implementation (Locking & Strands)"]
|
|
@@ -87,7 +87,7 @@ Execute phases sequentially. Never skip phases or invert the order.
|
|
|
87
87
|
| Phase | Sub-Skill / Step | Action | Quality Gate to Proceed |
|
|
88
88
|
| :--- | :--- | :--- | :--- |
|
|
89
89
|
| **Phase 0** | **Intake Gate** | Fast-path check (`rhizo who --json`) or single-question intake via `ask_question` calibrated to detected harness. | Active cluster workers confirmed or operator submits choice. |
|
|
90
|
-
| **Phase 1** | [`choose-personas`](../choose-personas/SKILL.md) | Synthesize
|
|
90
|
+
| **Phase 1** | [`choose-personas`](../choose-personas/SKILL.md) | Synthesize swarm configuration reflecting detected harness and chosen shape (zero on-disk JSON). | Swarm roles ratified. |
|
|
91
91
|
| **Phase 2** | [`launch-workers`](../launch-workers/SKILL.md) | Output 10-backtick raw markdown prompt cards and numbered session instructions. | `rhizo who --json` confirms 100% of workers active & listening. |
|
|
92
92
|
| **Phase 3** | [`dialectical-pump`](../dialectical-pump/SKILL.md) | Grounded triadic deliberation: research, design, adversarial audit. | Zero open `CRIT` or `BLOCKER` defects in `audit_report.md`. |
|
|
93
93
|
| **Phase 4** | [`plan-implementation`](../plan-implementation/SKILL.md) | Author master implementation plan with locking schedules, strands, and Two-Point Diff contracts (Provider, Consumer, Replacement deletion). | Complete `implementation_plan.md` with task-locking matrix. |
|
|
@@ -178,7 +178,7 @@ When the operator explicitly requests or names a worker or peer session (e.g. 'u
|
|
|
178
178
|
> **Orchestrator Scope Restriction**: This fast-path applies **ONLY** to a session that was explicitly initialized or designated by the operator as the Lead Orchestrator. A fresh unbootstrapped session must NEVER assume it is the orchestrator simply because `<project>-orchestrator` appears in `rhizo who`!
|
|
179
179
|
|
|
180
180
|
<INVARIANT>
|
|
181
|
-
Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json'
|
|
181
|
+
Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json' (especially NEVER '<project>-orchestrator'). If the operator commands '/rhizo listen' without arguments in an unbootstrapped session, the session MUST either:
|
|
182
182
|
1. Run 'rhizo name' to allocate a fresh unique identity, followed by 'rhizo open <name>', OR
|
|
183
183
|
2. Ask the operator via 'ask_question' which persona or role this window represents.
|
|
184
184
|
Never assume you are the orchestrator or an existing active worker simply because those names appear in the project directory.
|
|
@@ -205,13 +205,13 @@ Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated
|
|
|
205
205
|
|
|
206
206
|
<CRITICAL>
|
|
207
207
|
Session Default Models (Standalone Model Quizzes Prohibited):
|
|
208
|
-
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, configured workspace models in OpenCode). NEVER present a separate question asking the operator to choose "Foundation Model Pairings". In
|
|
208
|
+
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, configured workspace models in OpenCode). NEVER present a separate question asking the operator to choose "Foundation Model Pairings". In prompt cards, model configuration defaults to `"Session Default (active in window/tab)"`.
|
|
209
209
|
</CRITICAL>
|
|
210
210
|
|
|
211
211
|
#### Automatic Fulfillment & 10-Backtick Prompt Generation:
|
|
212
212
|
Upon receiving the operator's response:
|
|
213
213
|
1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
|
|
214
|
-
2.
|
|
214
|
+
2. Synthesize swarm configuration reflecting the chosen workers, roles, detected harness, and session-default models (zero on-disk JSON).
|
|
215
215
|
3. Run `garden prompts` which writes individual prompt cards to `/tmp/garden-<project>/<worker>.md` and all cards to `/tmp/garden-<project>/all-workers.md`.
|
|
216
216
|
4. Present the operator with concise setup instructions and copy commands (NEVER paste prompt cards inline in chat):
|
|
217
217
|
```text
|
|
@@ -466,12 +466,12 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
466
466
|
|
|
467
467
|
---
|
|
468
468
|
|
|
469
|
-
## 5. Configuration &
|
|
469
|
+
## 5. Configuration & Architecture Reference
|
|
470
470
|
|
|
471
471
|
See [`docs/configuration.md`](../../docs/configuration.md) for full details on:
|
|
472
|
-
- **Environment Variables**: `
|
|
472
|
+
- **Environment Variables**: `GARDEN_CONFIG`, `GARDEN_PROJECT_DIR`, and `GARDEN_TERMINAL_APP`.
|
|
473
473
|
- **`garden.toml`**: Project-level defaults (`name`, `preferred_terminal`, `session_prefix`, `default_triad`).
|
|
474
|
-
-
|
|
474
|
+
- **Dynamic Swarm Synthesis**: Swarm specification schema (`project`, `target_repo`, `orchestrator`, `shared_workspace`, `workers` array: `name`, `persona`, `role`, `harness`, `model`, `tags`, `system_prompt`, `opposing_priority`) generated dynamically in-memory without on-disk JSON artifacts.
|
|
475
475
|
- **The 10-Backtick Protocol**: Clean raw markdown formatting for copy-paste worker bootstrap prompts.
|
|
476
476
|
|
|
477
477
|
|
|
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.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
|
|
5
5
|
"main": "bin/run.js",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "git+https://github.com/axiomantic/garden.git"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"test": "nim c -r tests/test_garden.nim && nim c -r tests/test_seed.nim && nim c -r tests/test_germinate.nim && nim c -r tests/test_update.nim && node tests/test_riders.js",
|
|
33
|
+
"test": "nim c -r tests/test_garden.nim && nim c -r tests/test_seed.nim && nim c -r tests/test_germinate.nim && nim c -r tests/test_roadmap.nim && nim c -r tests/test_update.nim && node tests/test_riders.js",
|
|
34
34
|
"build": "nim c -d:release --threads:on --mm:orc -o:bin/garden src/garden.nim"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/axiomantic/garden#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@axiomantic/rhizo": "^0.2.
|
|
54
|
-
"@axiomantic/vine": "^0.2.
|
|
53
|
+
"@axiomantic/rhizo": "^0.2.28",
|
|
54
|
+
"@axiomantic/vine": "^0.2.16",
|
|
55
55
|
"rift-snapshot": "^0.0.13"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: choose-personas
|
|
3
|
-
description: "Selects, balances, and configures specialized agent personas for a Garden swarm task. Analyzes codebase context, domain complexity, and task requirements to formulate a triad of complementary personas with opposing priorities. Auto-detects the active coding harness and aligns worker harnesses and session-default models with operator preferences via a single intake question.
|
|
3
|
+
description: "Selects, balances, and configures specialized agent personas for a Garden swarm task. Analyzes codebase context, domain complexity, and task requirements to formulate a triad of complementary personas with opposing priorities. Auto-detects the active coding harness and aligns worker harnesses and session-default models with operator preferences via a single intake question. Synthesizes dynamic swarm configurations. Triggers: 'choose personas', 'select personas', 'set up agent team', 'assemble personas for this task', 'recommend agents'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `choose-personas`: Dynamic Swarm Persona Selection & Auto-Detected Harness Intake
|
|
@@ -60,7 +60,7 @@ Swarm workers are ALWAYS sovereign, independent interactive sessions (separate t
|
|
|
60
60
|
|
|
61
61
|
<CRITICAL>
|
|
62
62
|
Session Default Models (No Cross-Harness Model Quizzes):
|
|
63
|
-
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
|
|
63
|
+
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 prompt cards and swarm specifications, models default to `"Session Default (active in window/tab)"`.
|
|
64
64
|
</CRITICAL>
|
|
65
65
|
|
|
66
66
|
<CRITICAL>
|
|
@@ -97,7 +97,7 @@ sequenceDiagram
|
|
|
97
97
|
Note over Orch: Formulates primary triad + harness pairing
|
|
98
98
|
Orch->>User: Renders unified ask_question modal (Team shape + Harness)
|
|
99
99
|
User-->>Orch: Submits chosen triad
|
|
100
|
-
Orch->>
|
|
100
|
+
Orch->>Garden: Synthesizes dynamic swarm configuration
|
|
101
101
|
end
|
|
102
102
|
```
|
|
103
103
|
|
|
@@ -136,8 +136,8 @@ Invoke `ask_question` with a SINGLE concise question combining execution mode an
|
|
|
136
136
|
- Option 3: Single-Agent Inline (Execute sequentially within current chat session)
|
|
137
137
|
- Option 4: Custom configuration (allows user write-in).
|
|
138
138
|
|
|
139
|
-
### Step 4:
|
|
140
|
-
Once ratified,
|
|
139
|
+
### Step 4: Synthesize Swarm Specification
|
|
140
|
+
Once ratified, Garden synthesizes the swarm configuration dynamically in memory (zero on-disk JSON). If inspectable output is needed, Garden emits to stdout or prompt cards in `/tmp/garden-<project>/`:
|
|
141
141
|
|
|
142
142
|
```json
|
|
143
143
|
{
|
|
@@ -185,8 +185,7 @@ Once ratified, write `garden-swarm.json` to the target project directory with wo
|
|
|
185
185
|
## 4. Verification & Automatic Prompt Generation Handoff
|
|
186
186
|
|
|
187
187
|
Before concluding:
|
|
188
|
-
1.
|
|
189
|
-
2.
|
|
190
|
-
3. Proceed to Worker On-Ramp ([`launch-workers`](../launch-workers/SKILL.md)):
|
|
188
|
+
1. Confirm each worker has unique `name` and non-empty `tags`.
|
|
189
|
+
2. Proceed to Worker On-Ramp ([`launch-workers`](../launch-workers/SKILL.md)):
|
|
191
190
|
- **Pathway A (Dynamic Repurposing)**: If idle cluster peers were detected, run `garden repurpose` to reassign them to the chosen personas/roles without manual session setup.
|
|
192
191
|
- **Pathway B (Fresh Session Bootstrapping)**: Call `garden prompts` to generate the 10-backtick raw markdown blocks in `/tmp/garden-<project>/`, present tab setup instructions, and await cluster readiness via `rhizo who --all --json`.
|
package/skills/garden/SKILL.md
CHANGED
|
@@ -31,7 +31,7 @@ Garden directs multi-agent swarms using Rhizo for transport and Vine for workspa
|
|
|
31
31
|
flowchart TD
|
|
32
32
|
subgraph Garden["Garden Layer (Methodology & Ceremonies)"]
|
|
33
33
|
Phase0["Phase 0: Interactive Intake Interview (Scope, Team & Models)"]
|
|
34
|
-
Phase1["Phase 1: choose-personas (
|
|
34
|
+
Phase1["Phase 1: choose-personas (Synthesize Swarm Roles)"]
|
|
35
35
|
Phase2["Phase 2: launch-workers (10-Backtick Prompt Cards & Sessions)"]
|
|
36
36
|
Phase3["Phase 3: dialectical-pump (Research ➔ Design ➔ Audit)"]
|
|
37
37
|
Phase4["Phase 4: plan-implementation (Locking & Strands)"]
|
|
@@ -87,7 +87,7 @@ Execute phases sequentially. Never skip phases or invert the order.
|
|
|
87
87
|
| Phase | Sub-Skill / Step | Action | Quality Gate to Proceed |
|
|
88
88
|
| :--- | :--- | :--- | :--- |
|
|
89
89
|
| **Phase 0** | **Intake Gate** | Fast-path check (`rhizo who --json`) or single-question intake via `ask_question` calibrated to detected harness. | Active cluster workers confirmed or operator submits choice. |
|
|
90
|
-
| **Phase 1** | [`choose-personas`](../choose-personas/SKILL.md) | Synthesize
|
|
90
|
+
| **Phase 1** | [`choose-personas`](../choose-personas/SKILL.md) | Synthesize swarm configuration reflecting detected harness and chosen shape (zero on-disk JSON). | Swarm roles ratified. |
|
|
91
91
|
| **Phase 2** | [`launch-workers`](../launch-workers/SKILL.md) | Output 10-backtick raw markdown prompt cards and numbered session instructions. | `rhizo who --json` confirms 100% of workers active & listening. |
|
|
92
92
|
| **Phase 3** | [`dialectical-pump`](../dialectical-pump/SKILL.md) | Grounded triadic deliberation: research, design, adversarial audit. | Zero open `CRIT` or `BLOCKER` defects in `audit_report.md`. |
|
|
93
93
|
| **Phase 4** | [`plan-implementation`](../plan-implementation/SKILL.md) | Author master implementation plan with locking schedules, strands, and Two-Point Diff contracts (Provider, Consumer, Replacement deletion). | Complete `implementation_plan.md` with task-locking matrix. |
|
|
@@ -104,8 +104,8 @@ Instead, it acts as an **Intelligent Intake Concierge**:
|
|
|
104
104
|
|
|
105
105
|
0. **Fast-Path Check for Pre-Authorized Directives & Active Swarm**:
|
|
106
106
|
- **Pre-Authorized Directives & Autonomous Dispatch**: If the operator instructs "work on this with your workers" (or similar delegation phrases), or whenever active cluster workers already exist on the Rhizo cluster (`rhizo who`), the Orchestrator MUST NOT stop to ask routing questions. It is fully pre-authorized to act! It must immediately break down work, provision isolated Vine strands (`vine new <task>`), and dispatch directly over Rhizo (`rhizo send`) or enqueue to work queues (`rhizo enqueue`).
|
|
107
|
-
- **Fleet-
|
|
108
|
-
- **Mandatory `ask_question` Tool Discipline**: Only during a true cold start with 0 cluster workers online and no explicit delegation directive may the orchestrator solicit routing input. In that case, the orchestrator MUST invoke the interactive `ask_question` tool. Dumping numbered multiple-choice lists (1, 2, 3) or raw option text directly into the chat stream is STRICTLY PROHIBITED.
|
|
107
|
+
- **Project-Scoped Fleet Mandate & Anti-Hijacking Invariant**: Workers assigned to a named project belong exclusively to that project. Cross-project worker hijacking is strictly prohibited by default. When online workers exist FOR THIS PROJECT (or in the unassigned pool: project 'unassigned'/'default' or tagged 'pool'/'float'/'shared'), dispatch or repurpose existing workers over Rhizo (`rhizo send` / `garden repurpose`). If only workers belonging to other named projects are online and no unassigned workers are available, the orchestrator MUST NOT hijack foreign workers; it MUST bootstrap dedicated workers for the project via prompt cards (`garden prompts` / `garden launch`).
|
|
108
|
+
- **Mandatory `ask_question` Tool Discipline**: Only during a true cold start with 0 cluster workers online for this project and no explicit delegation directive may the orchestrator solicit routing input. In that case, the orchestrator MUST invoke the interactive `ask_question` tool. Dumping numbered multiple-choice lists (1, 2, 3) or raw option text directly into the chat stream is STRICTLY PROHIBITED.
|
|
109
109
|
|
|
110
110
|
1. **Evaluate Request Scope & Blast Radius (Cold Start Only)**:
|
|
111
111
|
- **High Complexity / Architectural Shifts / New Subsystems / Multi-File Migrations**: The request impacts foundational contracts, multiple modules, or shared abstractions. Requires empirical research, RFC design, adversarial review, and parallel strand isolation. Recommend **Option 1**.
|
|
@@ -132,10 +132,11 @@ Instead, it acts as an **Intelligent Intake Concierge**:
|
|
|
132
132
|
#### Adaptive Swarm On-Ramp & Dynamic Worker Repurposing (First-Look Invariant)
|
|
133
133
|
|
|
134
134
|
Before asking ANY intake questions or presenting configuration modals, the designated orchestrator MUST run `rhizo who --all --json` to inspect the cluster across all projects.
|
|
135
|
-
Garden automatically categorizes cluster listeners into
|
|
135
|
+
Garden automatically categorizes cluster listeners into four operational pools:
|
|
136
136
|
1. **`projectActive`**: Active listeners already registered on the target project.
|
|
137
|
-
2. **`availableIdlePeers`**: Active idle listeners
|
|
138
|
-
3. **`
|
|
137
|
+
2. **`availableIdlePeers`**: Active idle listeners in the unassigned pool (project is empty, `default`, or `unassigned`, or tagged `pool`/`float`/`shared`), immediately available for dynamic repurposing.
|
|
138
|
+
3. **`foreignProjectPeers`**: Active listeners registered to other named projects, **protected against cross-project poaching** (repurposing rejected unless `--allow-cross-project` is explicitly passed).
|
|
139
|
+
4. **`busyClusterPeers`**: Active listeners executing in-flight tasks (`BUSY`), guarded from unintentional reassignment (requires `--force`).
|
|
139
140
|
|
|
140
141
|
##### Fast-Path: Re-using an Active / Existing Swarm
|
|
141
142
|
If active, healthy workers on the target project meet or exceed the target worker count (`projectActive >= targetWorkers`):
|
|
@@ -145,10 +146,10 @@ If active, healthy workers on the target project meet or exceed the target worke
|
|
|
145
146
|
- **Bypass**: To force prompt card regeneration despite active workers, pass `--force-prompts` to `garden prompts` or `garden launch`.
|
|
146
147
|
|
|
147
148
|
##### Dual-Pathway Swarm On-Ramp (When Additional Workers Needed)
|
|
148
|
-
When target project workers are needed and idle cluster peers exist, Garden surfaces two distinct pathways:
|
|
149
|
+
When target project workers are needed and unassigned idle cluster peers exist, Garden surfaces two distinct pathways:
|
|
149
150
|
|
|
150
|
-
- **Pathway A (Dynamic Repurposing via `garden repurpose`)**:
|
|
151
|
-
Repurpose existing idle cluster listeners directly into the target project without opening new terminal windows or copying prompt cards:
|
|
151
|
+
- **Pathway A (Dynamic Worker Repurposing via `garden repurpose`)**:
|
|
152
|
+
Repurpose existing unassigned idle cluster listeners directly into the target project without opening new terminal windows or copying prompt cards:
|
|
152
153
|
```bash
|
|
153
154
|
garden repurpose <worker1> <worker2> \
|
|
154
155
|
--project <target-project> \
|
|
@@ -164,10 +165,10 @@ When target project workers are needed and idle cluster peers exist, Garden surf
|
|
|
164
165
|
--expected-tags "backend,frontend,qa,audit"
|
|
165
166
|
```
|
|
166
167
|
The recipient worker inspects its local toolchain, self-selects a compatible role, adds corresponding tags (`rhizo tag add <tags>`), and replies with `WORKER_READY`.
|
|
167
|
-
- **Negative Control &
|
|
168
|
+
- **Negative Control & Tenancy Guardrail**: Repurposing rejects workers belonging to other named projects unless `--allow-cross-project` is specified. It also rejects workers that are actively `BUSY` on tasks (requires `--force`).
|
|
168
169
|
|
|
169
|
-
- **Pathway B (Fresh Session Bootstrapping)**:
|
|
170
|
-
When zero cluster listeners exist or the operator prefers isolated fresh sessions, Garden generates self-contained 10-backtick prompt cards in `/tmp/garden-<project>/` via `garden prompts` (or `garden launch`).
|
|
170
|
+
- **Pathway B (Fresh Session Bootstrapping via Prompt Cards)**:
|
|
171
|
+
When zero unassigned cluster listeners exist (even if workers from other projects are online) or the operator prefers isolated fresh sessions, Garden generates self-contained 10-backtick prompt cards in `/tmp/garden-<project>/` via `garden prompts` (or `garden launch`). Dedicated prompt cards are the primary and intended mechanism for spinning up workers for a new project!
|
|
171
172
|
|
|
172
173
|
<CRITICAL>
|
|
173
174
|
Operator-Named Worker Delegation Mandate:
|
|
@@ -178,7 +179,7 @@ When the operator explicitly requests or names a worker or peer session (e.g. 'u
|
|
|
178
179
|
> **Orchestrator Scope Restriction**: This fast-path applies **ONLY** to a session that was explicitly initialized or designated by the operator as the Lead Orchestrator. A fresh unbootstrapped session must NEVER assume it is the orchestrator simply because `<project>-orchestrator` appears in `rhizo who`!
|
|
179
180
|
|
|
180
181
|
<INVARIANT>
|
|
181
|
-
Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json'
|
|
182
|
+
Unbootstrapped Session Identity: If a session was NOT explicitly bootstrapped with an identity in its conversation history (via a Garden bootstrap prompt card, an explicit operator assignment, or prior 'rhizo open <name>' in that same conversation), it MUST NEVER guess, adopt, or assume an existing identity from 'rhizo who --json' (especially NEVER '<project>-orchestrator'). If the operator commands '/rhizo listen' without arguments in an unbootstrapped session, the session MUST either:
|
|
182
183
|
1. Run 'rhizo name' to allocate a fresh unique identity, followed by 'rhizo open <name>', OR
|
|
183
184
|
2. Ask the operator via 'ask_question' which persona or role this window represents.
|
|
184
185
|
Never assume you are the orchestrator or an existing active worker simply because those names appear in the project directory.
|
|
@@ -205,13 +206,13 @@ Swarm workers are ALWAYS sovereign, independent interactive sessions (dedicated
|
|
|
205
206
|
|
|
206
207
|
<CRITICAL>
|
|
207
208
|
Session Default Models (Standalone Model Quizzes Prohibited):
|
|
208
|
-
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, configured workspace models in OpenCode). NEVER present a separate question asking the operator to choose "Foundation Model Pairings". In
|
|
209
|
+
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, configured workspace models in OpenCode). NEVER present a separate question asking the operator to choose "Foundation Model Pairings". In prompt cards, model configuration defaults to `"Session Default (active in window/tab)"`.
|
|
209
210
|
</CRITICAL>
|
|
210
211
|
|
|
211
212
|
#### Automatic Fulfillment & 10-Backtick Prompt Generation:
|
|
212
213
|
Upon receiving the operator's response:
|
|
213
214
|
1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
|
|
214
|
-
2.
|
|
215
|
+
2. Synthesize swarm configuration reflecting the chosen workers, roles, detected harness, and session-default models (zero on-disk JSON).
|
|
215
216
|
3. Run `garden prompts` which writes individual prompt cards to `/tmp/garden-<project>/<worker>.md` and all cards to `/tmp/garden-<project>/all-workers.md`.
|
|
216
217
|
4. Present the operator with concise setup instructions and copy commands (NEVER paste prompt cards inline in chat):
|
|
217
218
|
```text
|
|
@@ -466,12 +467,12 @@ To prevent silent deadlocks when workers stall, crash, or fail to re-arm listene
|
|
|
466
467
|
|
|
467
468
|
---
|
|
468
469
|
|
|
469
|
-
## 5. Configuration &
|
|
470
|
+
## 5. Configuration & Architecture Reference
|
|
470
471
|
|
|
471
472
|
See [`docs/configuration.md`](../../docs/configuration.md) for full details on:
|
|
472
|
-
- **Environment Variables**: `
|
|
473
|
+
- **Environment Variables**: `GARDEN_CONFIG`, `GARDEN_PROJECT_DIR`, and `GARDEN_TERMINAL_APP`.
|
|
473
474
|
- **`garden.toml`**: Project-level defaults (`name`, `preferred_terminal`, `session_prefix`, `default_triad`).
|
|
474
|
-
-
|
|
475
|
+
- **Dynamic Swarm Synthesis**: Swarm specification schema (`project`, `target_repo`, `orchestrator`, `shared_workspace`, `workers` array: `name`, `persona`, `role`, `harness`, `model`, `tags`, `system_prompt`, `opposing_priority`) generated dynamically in-memory without on-disk JSON artifacts.
|
|
475
476
|
- **The 10-Backtick Protocol**: Clean raw markdown formatting for copy-paste worker bootstrap prompts.
|
|
476
477
|
|
|
477
478
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: launch-workers
|
|
3
|
-
description: "Generates and formats X distinct copy-pasteable bootstrap prompts for new agent sessions (Claude Code, Pi, OpenCode, Antigravity, etc.) to join the Garden work group on Rhizo and Vine.
|
|
3
|
+
description: "Generates and formats X distinct copy-pasteable bootstrap prompts for new agent sessions (Claude Code, Pi, OpenCode, Antigravity, etc.) to join the Garden work group on Rhizo and Vine. Synthesizes balanced triads dynamically, configures identities, environment setup (RHIZO_AGENT_NAME, cd, rhizo open), single-shot listener discipline, task claiming, and Vine strand isolation. Spits out prompt blocks wrapped in 10 backticks for clean, unrendered raw markdown copying, and verifies cluster heartbeat readiness via rhizo who --json before handing off. Triggers: 'launch workers', 'spin up workers', 'start worker swarm', 'generate worker prompts', 'bootstrap swarm', 'launch fleet'."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `launch-workers`: Prompt-Based Swarm Bootstrapping & Work Group Onboarding
|
|
@@ -100,7 +100,7 @@ garden prompts --write garden-prompts.md
|
|
|
100
100
|
garden prompts --worker <project>-architect # (or suffix shorthand: --worker architect)
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
Garden automatically synthesizes the standard balanced triad with procedurally generated whimsical entities (e.g. botanical spirits, clockwork automatons, mythical cryptids):
|
|
104
104
|
- `@<project>-architect` (e.g. Bramblestitch / Cogswell Pendulum - Staff Systems Architect)
|
|
105
105
|
- `@<project>-auditor` (e.g. Prickle-Thistle / Grumblewick Snark - Verification & Adversarial Auditor)
|
|
106
106
|
- `@<project>-implementer` (e.g. Moss-Weaver / Sprocket-Hop - DevEx & Implementation Lead)
|
|
@@ -161,9 +161,9 @@ When the swarm mission is completed, or when canceling a run:
|
|
|
161
161
|
garden teardown
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
Or
|
|
164
|
+
Or dynamically querying the project workers:
|
|
165
165
|
```bash
|
|
166
|
-
for worker in $(
|
|
166
|
+
for worker in $(rhizo who --all --json | jq -r '.active_agents[] | select(.tags | contains(["<project>"])) | .name'); do
|
|
167
167
|
rhizo close "$worker" 2>/dev/null || true
|
|
168
168
|
done
|
|
169
169
|
```
|
|
@@ -45,8 +45,8 @@ The orchestrator inspects the cluster state via `rhizo who --all --json`:
|
|
|
45
45
|
If and ONLY if the cluster is completely cold (0 active workers online across the machine) AND the operator has not specified an execution mode:
|
|
46
46
|
The orchestrator MUST invoke the interactive `ask_question` tool to solicit the operator's preference (Swarm vs Inline).
|
|
47
47
|
Dumping multiple-choice numbered lists (`1, 2, 3`) or routing questionnaires in raw chat text is STRICTLY PROHIBITED.
|
|
48
|
-
3. **
|
|
49
|
-
When active or idle workers exist
|
|
48
|
+
3. **Project-Scoped Fleet Mandate & Anti-Hijacking Invariant**:
|
|
49
|
+
When active or idle workers exist FOR THIS PROJECT (or in the unassigned pool: project 'unassigned'/'default' or tagged 'pool'/'float'/'shared'), the orchestrator must automatically dispatch or repurpose them over Rhizo without prompt cards. However, workers assigned to other named projects are protected; cross-project worker hijacking is strictly prohibited. If only foreign project workers exist, the orchestrator MUST NOT hijack them, but must instead bootstrap dedicated workers via prompt cards (`garden prompts` / `garden launch`).
|
|
50
50
|
</CRITICAL>
|
|
51
51
|
|
|
52
52
|
<CRITICAL>
|