@axiomantic/garden 0.2.15 → 0.2.17

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
@@ -189,11 +189,11 @@ Garden utilizes the **Active Swarm Fast-Path (First-Look Invariant)**:
189
189
  > - **Session-Native Model Inheritance**: Swarm workers inherit whatever foundation model is active in that harness window (`Session Default (active in window/tab)`). Disconnected model pairing quizzes are eliminated.
190
190
 
191
191
  ### 3. Prompt-Based Swarm Bootstrapping (`launch-workers`)
192
- Garden writes `garden-swarm.json` and runs `garden prompts` to emit raw markdown prompt cards wrapped in **10 backticks** (` ``````````markdown `):
193
- - The Orchestrator presents ready-to-paste prompt cards to the operator:
194
- 1. Open **Tab 1 / Window 1**: Launch your preferred harness session $\to$ Paste Prompt 1 (`@auditor`)
195
- 2. Open **Tab 2 / Window 2**: Launch your preferred harness session $\to$ Paste Prompt 2 (`@architect`)
196
- 3. Open **Tab 3 / Window 3**: Launch your preferred harness session $\to$ Paste Prompt 3 (`@implementer`)
192
+ Garden writes `garden-swarm.json` and runs `garden prompts` to write prompt cards directly to temporary files (`/tmp/garden-<project>/<worker>.md`) rather than flooding the chat window with thousands of lines of raw text:
193
+ - The Orchestrator displays concise session assignments with clickable file links and OS copy commands:
194
+ 1. Open **Tab 1 / Window 1**: Paste Prompt 1 (`pbcopy < /tmp/garden-<project>/<project>-auditor.md`)
195
+ 2. Open **Tab 2 / Window 2**: Paste Prompt 2 (`pbcopy < /tmp/garden-<project>/<project>-architect.md`)
196
+ 3. Open **Tab 3 / Window 3**: Paste Prompt 3 (`pbcopy < /tmp/garden-<project>/<project>-implementer.md`)
197
197
  - Each session enters the project directory, exports `RHIZO_AGENT_NAME`, registers on the Redis bus (`rhizo open`), and arms its single-shot listener (`rhizo listen`).
198
198
  - The Orchestrator confirms all workers are live via `rhizo who --json` before dispatching tasks!
199
199
 
@@ -218,8 +218,10 @@ The main chat orchestrator dispatches work over Redis. Workers code in isolated
218
218
 
219
219
  | Command | Arguments | Description |
220
220
  | :--- | :--- | :--- |
221
- | `garden prompts` | `[--worker <name>] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Generate 10-backtick raw markdown prompt cards for pasting into worker sessions. |
222
- | `garden launch` | `[--worker <name>] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Bootstrap swarm worker sessions (defaults to generating prompt cards). |
221
+ | `garden plant` | `"<description>" [--season <name>] [--sunlight <level>] [--tags <csv>] [--list] [--json]` | Sow a roadmap seed to `.garden/seeds/<id>.toml` or list sown seeds. |
222
+ | `garden germinate` | `<dispatch\|prompt\|inline\|status> <seed_id>` | Deterministically germinate a seed via Rhizo work queues, prompt cards, inline pump, or status query. |
223
+ | `garden prompts` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Generate bootstrap prompt cards (written to /tmp/garden-<project>/ by default; pass --inline for stdout). |
224
+ | `garden launch` | `[--worker <name>] [--inline] [--write [file]] [--json] [--project-dir <dir>] [--swarm-file <file>]` | Bootstrap swarm worker sessions (writes prompt cards to /tmp/garden-<project>/). |
223
225
  | `garden status` | `[--json]` | Telemetry query across active Rhizo agents, listener status, and Vine strands. |
224
226
  | `garden init` | `[<target_dir>] [--force]` | Initialize `garden.toml`, docs scaffold, and install guide in `AGENTS.md`. |
225
227
  | `garden teardown`| `[--swarm-file <file>]` | Gracefully close registered swarm agents on the Redis bus. |
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.15",
3
+ "version": "0.2.17",
4
4
  "description": "Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine",
5
5
  "main": "bin/run.js",
6
6
  "bin": {
@@ -24,7 +24,7 @@
24
24
  "url": "git+https://github.com/axiomantic/garden.git"
25
25
  },
26
26
  "scripts": {
27
- "test": "nim c -r tests/test_garden.nim",
27
+ "test": "nim c -r tests/test_garden.nim && nim c -r tests/test_seed.nim && nim c -r tests/test_germinate.nim",
28
28
  "build": "nim c -d:release --threads:on --mm:orc -o:bin/garden src/garden.nim"
29
29
  },
30
30
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: garden
3
- description: "Master entrypoint and end-to-end ceremony director for multi-agent swarms operating on top of Rhizo (transport) and Vine (workspace integrator). Guides the user and orchestrator session through the full lifecycle: conversational project intake interview, persona selection with harness/model pairing, prompt-based worker fleet bootstrapping with 10-backtick copy-paste prompt cards, 3-stage empirical dialectical pump (research, design, audit), master implementation planning with locking/strand schedules, and live swarm execution with Two-Key gate verification and fast-forward trunk weaving. Triggers: 'garden', 'run garden', 'swarm this project', 'orchestrate with garden', 'start garden swarm', 'run the full garden ceremony', 'start a project with garden', 'start a project with rhizo', 'set up a multi-agent team', 'use rhizo for this project', 'set up a swarm', 'coordinate multiple agents on this project', 'set up agents for this project'."
3
+ description: "Master entrypoint and umbrella conductor for the Axiomantic Multi-Agent Swarm Triad (Garden + Rhizo + Vine). Activating Garden automatically coordinates Rhizo for transport/concurrency and Vine for Rift workspace virtualization. Guides the user through feature sowing (garden plant), deterministic germination (garden germinate dispatch|prompt|inline|status), conversational intake, persona selection, prompt-based worker fleet bootstrapping with 10-backtick copy-paste cards, 3-stage empirical dialectical pump (research, design, audit), master implementation planning, and Two-Key gate trunk weaving. Triggers: 'garden', 'swarm', 'multi-agent', 'agent team', 'coordinate agents', 'parallel agents', 'run swarm', 'start swarm', 'run garden', 'swarm this project', 'orchestrate with garden', 'start garden swarm', 'run the full garden ceremony', 'start a project with garden', 'start a project with rhizo', 'set up a multi-agent team', 'use rhizo for this project', 'set up a swarm', 'coordinate multiple agents on this project', 'set up agents for this project', 'garden plant', 'garden germinate', 'sow seed', 'germinate', 'roadmap'."
4
4
  ---
5
5
 
6
6
  # Garden: Multi-Agent Swarm Ceremony & Orchestration Engine
@@ -17,7 +17,13 @@ npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden rift-snapsh
17
17
 
18
18
  ---
19
19
 
20
- ## 1. Architecture & Layering
20
+ ## 1. Architecture, Layering & The Master Umbrella Conductor
21
+
22
+ <CRITICAL>
23
+ Master Umbrella Conductor Invariant:
24
+ Garden is the capstone framework and single front-door of the Axiomantic Triad (Unix philosophy: Garden = Orchestration/Workflow, Rhizo = Transport/IPC, Vine = Git/Workspaces).
25
+ Whenever Garden is invoked (via 'garden', 'swarm', 'agent team', 'plant', 'germinate', or multi-agent feature requests), the agent MUST treat Garden as the parent umbrella. The operator NEVER needs to manually recite 'use garden/rhizo/vine'—activating Garden automatically mandates reading `garden`, `rhizo`, and `vine` skills.
26
+ </CRITICAL>
21
27
 
22
28
  Garden directs multi-agent swarms using Rhizo for transport and Vine for workspace virtualization:
23
29
 
@@ -46,7 +52,35 @@ flowchart TD
46
52
 
47
53
  ---
48
54
 
49
- ## 2. The End-to-End Ceremony Workflow
55
+ ## 2. Macro-Lifecycle: Sowing (`garden plant`) & Germination (`garden germinate`)
56
+
57
+ Before launching multi-agent ceremonies, features and roadmap items are captured organically as **Seeds** organized into roadmap **Seasons**:
58
+
59
+ ### A. Sowing Seeds (`garden plant`)
60
+ Add new roadmap items or feature requests to `.garden/seeds/<id>.toml`:
61
+ ```bash
62
+ garden plant "Real-time SSE event stream for cluster telemetry" \
63
+ --season "v0.3.0" \
64
+ --sunlight high \
65
+ --tags "telemetry,sse,web"
66
+ ```
67
+ Options:
68
+ - `--season <name>`: Target roadmap release or milestone (e.g. `v0.3.0`).
69
+ - `--sunlight <low|medium|high|blazing>`: Priority level.
70
+ - `--tags <csv>`: Domain classification tags.
71
+ - `--json`: Structured machine-parseable JSON output.
72
+ - `--list`: Displays all sown seeds and their dynamic lifecycle status.
73
+
74
+ ### B. Deterministic Germination (`garden germinate <subcommand> <seed>`)
75
+ To prevent LLM tool-calling omissions, germination uses dedicated positional subcommands:
76
+ 1. **`garden germinate dispatch <seed>`**: Enqueues the seed directly to Rhizo cluster work queues (`queue:<project>:tasks`) with dialectical pump specifications.
77
+ 2. **`garden germinate prompt <seed>`**: Emits copy-pasteable **10-backtick raw markdown prompt cards** for bootstrapping dedicated worker sessions.
78
+ 3. **`garden germinate inline <seed>`**: Runs the 3-stage dialectical pump (Research ➔ Design ➔ Audit) within the active chat session.
79
+ 4. **`garden germinate status <seed>`**: Inspects dynamic lifecycle progress (`SOWN` ➔ `DISPATCHED` ➔ `GERMINATED` ➔ `WOVEN`).
80
+
81
+ ---
82
+
83
+ ## 3. The End-to-End Ceremony Workflow
50
84
 
51
85
  Execute phases sequentially. Never skip phases or invert the order.
52
86
 
@@ -95,11 +129,11 @@ Swarm workers operate in sovereign interactive sessions and inherit whatever fou
95
129
  Upon receiving the operator's response:
96
130
  1. Run `garden init` if `garden.toml` or `AGENTS.md` is not yet initialized.
97
131
  2. Generate `garden-swarm.json` reflecting the chosen workers, roles, detected harness, and session-default models.
98
- 3. Run `garden prompts` to generate the raw markdown prompt cards wrapped in **10 backticks** (` ``````````markdown `).
99
- 4. Present the operator with clear, numbered instructions:
132
+ 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`.
133
+ 4. Present the operator with concise setup instructions and copy commands (NEVER paste prompt cards inline in chat):
100
134
  ```text
101
135
  1. Open X terminal tabs or windows in your detected coding harness.
102
- 2. Copy the raw block inside each 10-backtick pre block below and paste it into its corresponding session.
136
+ 2. Copy each worker's prompt card from its file (e.g. `pbcopy < /tmp/garden-<project>/<worker>.md`) and paste into its session.
103
137
  3. Once pasted, tell me here (or I will automatically detect them online via `rhizo who`).
104
138
  ```
105
139
  5. Register the orchestrator's presence (`rhizo open <project>-orchestrator`) and arm the listener.
@@ -15,13 +15,12 @@ description: "Generates and formats X distinct copy-pasteable bootstrap prompts
15
15
  1. **Human-in-the-Loop Sovereign Session Autonomy**:
16
16
  - Terminal multiplexers (tmux) are unsupported. We do not blindly spawn tmux background processes or attempt to drive terminal multiplexers with fragile subshell scripting.
17
17
  - Workers run in sovereign, independent interactive sessions (dedicated terminal tabs or IDE windows) in the operator's active coding harness.
18
- 2. **Raw Markdown 10-Backtick Fencing**:
18
+ 2. **Prompt Card Temp File Delivery (Zero Chat Flooding)**:
19
19
  <CRITICAL>
20
- When outputting prompt cards in stdout, artifacts, or chat, every prompt block MUST be wrapped in exactly 10 backticks:
21
- ``````````markdown
22
- ...
23
- ``````````
24
- This guarantees that nested backtick fences (```bash) and internal markdown headers inside the prompts do NOT prematurely terminate the code block or render markdown, preserving pristine raw text for one-click clipboard copying.
20
+ `garden prompts` and `garden launch` automatically write worker prompt cards to `/tmp/garden-<project>/<worker-name>.md` and a combined roster to `/tmp/garden-<project>/all-workers.md`.
21
+ Orchestrator agents MUST NEVER dump thousands of lines of prompt text inline into the chat conversation. Dumping cards inline exhausts token context budgets, causes scrolling fatigue, and triggers chat UI rendering bugs.
22
+ Instead, orchestrators MUST output concise session assignments with clickable file links and OS-calibrated clipboard copy commands (e.g. `pbcopy < /tmp/garden-<project>/<worker>.md`).
23
+ Inside the generated files and when `--inline` is passed, blocks are wrapped in 10 backticks (``````````markdown) to protect nested markdown and shell code blocks.
25
24
  </CRITICAL>
26
25
  3. **Single-Shot Listener Discipline**:
27
26
  <CRITICAL>
@@ -103,8 +102,12 @@ The Orchestrator presents the generated prompt blocks to the operator with clear
103
102
  - **Session 3 (@<project>-implementer)**: e.g. Antigravity IDE (Window 3) or OpenCode $\to$ Paste Card 3
104
103
  2. **Harness & Model Agnostic Flexibility**:
105
104
  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)."*
106
- 3. **10-Backtick Raw Markdown Formatting**:
107
- Ensure every prompt card is displayed inside ` ``````````markdown ` fences so the operator can copy the clean, unrendered text with a single click.
105
+ 3. **Temp File Links & Clipboard Copy Commands (Zero Inline Chat Flooding)**:
106
+ NEVER paste the multi-page prompt card bodies inline into chat. Output the concise list of workers with clickable file links and OS-calibrated clipboard copy commands:
107
+ - **@<project>-architect**: `pbcopy < /tmp/garden-<project>/<project>-architect.md`
108
+ - **@<project>-auditor**: `pbcopy < /tmp/garden-<project>/<project>-auditor.md`
109
+ - **@<project>-implementer**: `pbcopy < /tmp/garden-<project>/<project>-implementer.md`
110
+ - **All Combined**: `/tmp/garden-<project>/all-workers.md`
108
111
  4. **Immediate Autonomous Onboarding**:
109
112
  Each prompt instructs the pasted session to immediately:
110
113
  - `cd "<project_dir>"`