@axiomantic/garden
v0.2.8
Published
Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine
Downloads
1,180
Maintainers
Readme
Garden
Multi-Agent Swarm Orchestration, Empirical Dialectics & Ceremonies on top of Rhizo & Vine
Where rhizo provides inter-agent transport and vine provides workspace virtualization, garden provides the institutional intellect, empirical deliberation, and synchronized swarm execution.
What is Garden?
Garden is an agentic engineering framework and skill library for orchestrating heterogeneous teams of AI coding assistants (Claude Code, OpenCode, Antigravity, Cursor, Codex).
[!NOTE]
Quick Note: Using Garden as your High-Level Swarm Wrapper
Garden is the sovereign high-level multi-agent wrapper for all your engineering projects.
After installing@axiomantic/garden,@axiomantic/rhizo, and@axiomantic/vine, you don't need complex shell scripts, background daemon managers, or brittle terminal multiplexers. Whenever you start a session in your favorite coding harness (Antigravity, Claude Code, OpenCode, Cursor), simply tell the assistant:"garden: I want to build [feature/system/project]"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)!
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.
flowchart TD
subgraph Layer3["Layer 3: Garden (Methodology, Ceremonies & Swarms)"]
direction TB
GardenSkill["garden (Master Entrypoint)"]
P1["choose-personas (Team & Models)"]
P2["launch-workers (Prompt-Based Session Bootstrapping)"]
P3["dialectical-pump (Research ➔ Design ➔ Audit)"]
P4["plan-implementation (Locks & Strands)"]
P5["orchestrate-swarm (Dispatch & Weave)"]
GardenSkill --> P1 --> P2 --> P3 --> P4 --> P5
end
subgraph Layer2["Layer 2: Vine (Workstream Integrator)"]
Strands["APFS CoW Strands (Sub-second isolated workspaces)"]
TwoKey["Two-Key Gate (Mechanical merge-tree + semantic test suite)"]
Weave["Trunk Weaving (Fast-forward verified branches)"]
end
subgraph Layer1["Layer 1: Rhizo (Inter-Agent Transport)"]
Bus["Redis Message Bus (O2O, Multicast, RPC)"]
Locks["Distributed Mutexes & Monotonic Fencing Tokens"]
Queues["Worker Queues with Leases & Dead-Letter Escalation"]
end
Layer3 --> Layer2
Layer3 --> Layer1
Layer2 -.-> Layer1The 5 Core Skills (+ Master Entrypoint)
Garden is organized into a clean, batteries-included catalog of self-explanatory skills:
| Skill | Role | Description |
| :--- | :--- | :--- |
| garden | Master Entrypoint | The sovereign ceremony director. Guides orchestrator and operator step-by-step across all phases from initial task to woven code. |
| choose-personas | Team Calibration | Formulates a balanced triad of specialized personas (e.g. Architect, Auditor, DevEx Lead) with explicitly recommended coding harnesses and model tiers, confirmed interactively with the operator. |
| launch-workers | Session Bootstrapping | Generates self-contained, 10-backtick raw markdown prompt cards for pasting into separate terminal sessions (Claude Code, OpenCode, Antigravity, Pi). Configures environment variables, registers identities via rhizo open, and arms single-shot listeners. |
| dialectical-pump | Empirical Deliberation | Drives multi-perspective thesis/antithesis/synthesis debates. Strictly prohibits theatrical roleplay: every turn requires tool execution (reading files, running tests, checking ASTs). Produces understanding.md, design.md, and audit_report.md. |
| plan-implementation | Master Scheduling | Authors implementation_plan.md defining task assignment matrices, rhizo distributed fencing locks, vine strand workflows, dynamic markdown checkboxes, harness To-Do integration, and emergent design addenda. |
| orchestrate-swarm | Main-Chat Governor | Governs execution from the primary chat session: dispatches tasks over Redis, tracks heartbeats, ratifies emergent design addenda, verifies Two-Key gate passes, and triggers vine weave. |
Standalone Yet Designed for the Axiomantic Triad
Garden is completely standalone and can direct multi-agent dialectics, persona selection, and prompt-bootstrapped worker swarms on any codebase.
However, Garden is designed from the ground up to pair seamlessly with Rhizo and Vine:
- Rhizo (Transport & Concurrency): Inter-agent messaging bus, monotonic fencing locks, and task queues over Redis.
- Vine (Workspaces & Verification): Sub-second APFS Copy-on-Write strands, polyglot build-cache normalization, and the Two-Key integration gate (
git merge-treemechanical + compiler/test suite semantic checks). - Garden (Swarm Ceremonies): Prompt-based worker session bootstrapping, 3-stage empirical dialectical pump (research, architecture, audit), and master ceremonial implementation planning.
Installation
1. For AI Coding Assistants (Recommended)
Install the skills globally (-g) across all your coding assistants (Claude Code, Antigravity, Cursor, Codex, OpenCode, etc.):
# Recommended: Install the complete multi-agent triad globally
npx skills add -g axiomantic/rhizo
npx skills add -g axiomantic/vine
npx skills add -g axiomantic/garden(Each skill automatically self-bootstraps its native CLI binary if it is not already installed on your system).
To install only Garden (includes the 6 Garden skills):
npx skills add -g axiomantic/garden2. Standalone CLI Installation
Install the compiled CLI tools directly onto your $PATH:
# Install all three tools:
npm install -g @axiomantic/rhizo @axiomantic/vine @axiomantic/garden
# Or install Garden alone:
npm install -g @axiomantic/garden[!TIP] Zero-Install Run via NPX: In restricted or containerized environments where global installation is unavailable, you can run any command directly without installing:
npx -y @axiomantic/garden <command>
3. Repository Coordination Guide
Install the Garden multi-agent swarm coordination protocol directly into any project's AGENTS.md:
garden guide installSystem Prerequisites
rhizo(Coordination Engine):npm install -g @axiomantic/rhizovine(Workspace Virtualization Engine):npm install -g @axiomantic/vine rift-snapshot- Redis or Valkey (local or remote):
brew install redis && brew services start redis tmux(Optional): Only required if explicitly running legacy headless panes viagarden launch --tmux.
30-Second Quickstart
1. Launch Garden on Any Task
In your primary AI coding assistant (Antigravity, Claude Code, OpenCode):
User: "garden: Implement high-throughput batch claim leases with Redis pipeline support"2. Interactive Project Intake Interview (Phase 0)
The Orchestrator asks 4 quick interactive questions via ask_question:
- Execution Mode: Multi-Agent Swarm (Recommended) vs Single Session.
- Team Sizing: Standard Triad (3 Workers) vs Focused Duo (2 Workers) vs Custom.
- Available Harnesses: Claude Code CLI, OpenCode, Antigravity, Pi, Cursor, Terminal.
- Model Preferences & Equivalents:
- Systems Architect (
@architect) $\to$ Antigravity or OpenCode | Gemini 3.8 Flash or Claude 3.5 Sonnet - Adversarial Auditor (
@auditor) $\to$ Claude Code CLI | Claude 3.5 Sonnet or Claude 3 Opus - DevEx & Implementation Lead (
@implementer) $\to$ Antigravity or OpenCode | Gemini 3.8 Flash
- Systems Architect (
3. Prompt-Based Swarm Bootstrapping (launch-workers)
Garden writes garden-swarm.json and runs garden prompts to emit raw markdown prompt cards wrapped in 10 backticks (``````````markdown):
- The Orchestrator tells the operator:
- Open Tab 1: Launch
claude(Claude 3.5 Sonnet) $\to$ Paste Prompt 1 (@auditor) - Open Tab 2: Launch
opencode$\to$ Paste Prompt 2 (@architect) - Open Tab 3: Launch
antigravity(Gemini 3.8 Flash) $\to$ Paste Prompt 3 (@implementer)
- Open Tab 1: Launch
- 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). - The Orchestrator confirms all workers are live via
rhizo who --jsonbefore dispatching tasks!
4. The Dialectical Pump (dialectical-pump)
The personas deliberate across three empirical stages:
- Research: Workers read code and run tests $\to$ synthesize
understanding.md$\to$ verify against automated Fact-Check Gate. - Architecture: Triad debates trade-offs $\to$ produces ratified
design.md. - Audit: Auditor generates
audit_report.md$\to$ triad resolves every finding before coding begins.
5. Ceremonial Planning (plan-implementation)
Garden authors implementation_plan.md:
- Schedules distributed fencing locks (
rhizo lock file:<path> --fencing). - Assigns tasks and defines APFS CoW strands (
vine new <task_id> --worktree). - Sets up dynamic progress checkboxes and harness To-Do tracking.
6. Live Orchestration & Trunk Weaving (orchestrate-swarm)
The main chat orchestrator dispatches work over Redis. Workers code in isolated strands, run unit tests, and verify the Two-Key Gate (vine gate). When passed, the orchestrator executes vine weave to fast-forward verified code into main with zero merge conflicts!
CLI Reference
| Command | Arguments | Description |
| :--- | :--- | :--- |
| 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. |
| garden launch | [--worker <name>] [--write [file]] [--json] [--tmux] [--session-name <name>] | Bootstrap swarm worker sessions (defaults to generating prompt cards). |
| garden status | [--json] [--session-name <name>] | Telemetry query across active Rhizo agents, listener status, and Vine strands. |
| garden init | [<target_dir>] [--force] | Initialize garden.toml, docs scaffold, and install guide in AGENTS.md. |
| garden teardown| [--session-name <name>] [--swarm-file <file>] | Gracefully close registered swarm agents on the Redis bus. |
| garden guide | <install\|check\|uninstall> [path] | Install or manage Garden Multi-Agent Swarm Guide in AGENTS.md. |
Configuration & Swarm Manifest Reference
[!TIP] For the complete specification of
garden.toml,garden-swarm.jsonschemas, and environment variables, see the Garden Configuration & Swarm Manifest Reference.
Environment Variables
| Variable | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| GARDEN_SWARM_FILE | Path | garden-swarm.json | Explicit path to swarm manifest JSON file. |
| GARDEN_CONFIG | Path | garden.toml | Explicit path to project garden.toml. |
| GARDEN_PROJECT_DIR| Path | Auto-detected | Target repository root directory. |
| GARDEN_TERMINAL_APP| String | auto | Preferred terminal viewer for tmux sessions (Ghostty, Terminal, iTerm, none). |
Example garden-swarm.json
{
"project": "myproject",
"target_repo": "/Users/developer/Development/myproject",
"orchestrator": "orchestrator",
"workers": [
{
"name": "architect",
"persona": "Dr. Marcus Vance (Systems Architect)",
"role": "Systems Architect & Formal Invariant Specifier",
"harness": "Claude Code",
"model": "claude-3-5-sonnet",
"tags": ["design", "spec"],
"opposing_priority": "Formal mathematical correctness and zero architectural drift."
},
{
"name": "auditor",
"persona": "Lyra Sterling (Adversarial Quality Auditor)",
"role": "Adversarial Code Reviewer & Security Auditor",
"harness": "OpenCode",
"model": "gemini-3.8-flash",
"tags": ["audit", "testing"],
"opposing_priority": "Aggressive edge-case fault injection and invariant verification."
},
{
"name": "implementer",
"persona": "Elena Rostova (Lead Implementation Engineer)",
"role": "Polyglot Systems & Performance Engineer",
"harness": "Antigravity",
"model": "claude-3-5-sonnet",
"tags": ["implementation", "perf"],
"opposing_priority": "Rapid implementation velocity and minimal dependency footprint."
}
]
}Core Invariants
- The Lead Orchestrator Invariant: The main chat session coordinates, reviews, and integrates. Intensive multi-file edits are executed by the worker fleet in isolated strands.
- Empirical Grounding Protocol (Zero Theatrical Dialogue): Dialectical deliberations must cite hard evidence from real tool calls (line citations, test outputs, compiler errors). Theatrical roleplay is strictly banned.
- Two-Key Gate Verification:
No code is merged into the trunk without passing both Key 1 (in-memory
git merge-treemechanical check) and Key 2 (live semantic compiler and test suite run). - Zero Dirty Commits:
All agent identity files, session state, and temporary lockfiles are strictly ignored in
.gitignore.
License
MIT © Axiomantic / Garden Contributors
