ignis-swarm
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Fail
- exec() — Shell command execution in hooks/command-rules.mjs
- os.homedir — User home directory access in hooks/command-rules.mjs
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Contract-driven /swarm engineering workflow for Google Antigravity — atomic wave planning, BDD+TDD, ADR/BDR trails, blind diff review, and a resilient MCP broker.
Ignis Swarm (ignis-swarm)
Adaptive, contract-driven engineering workflow for Google Antigravity (/plan, /swarm, /boost, /teamwork, Solo).
Zero external dependencies · Tested in CI on Linux, Windows and macOS · Node.js ≥ 22
Why Ignis Swarm?
Most multi-agent setups rely on verbose personas and hope the model remembers every rule across long sessions. ignis-swarm enforces engineering rigor through structural mechanisms instead:
- Adaptive
/planwith silent triage & early mode selection —/planclassifies work into three archetypes (Bootstrap,Build / Change,Investigate) plus theSplit Gate, picksSolo,/swarm,/boost, or/teamworkearly, and offers an opt-in 1-pass plan review. - Ephemeral
.ignis-swarm/workspace state (scripts/ignis-workspace.mjs) — Post-approval Phase 0.5 creates self-ignored.ignis-swarm/active/artifacts (manifest.json,plan.md, and for/swarmonly, pre-bakedbriefs/<task-id>.md) in one atomicpreparestep, enabling slim pointer-based/compacthandoffs, automaticSessionStartresume detection, and clean archival on completion. The same machine-local, git-ignored folder holdsproject.json(project setup, fingerprint, trackers and backlog destination),backlog.json(local backlog) and, for a local brief,project-brief.md; the default brief is the committed.agents/rules/ignis-project.md. - Outer-loop BDD + inner-loop TDD & cache-preserving escalation — Every task starts with observable
Given / When / Thencriteria and a failing test first, while/swarmkeeps the Coordinator atmediumeffort and escalates repeated gate failures to a fresh-context specialist. - Auditable decision trails — Technical choices (
docs/adr/ADR-NNN-*.md) and business rules (docs/bdr/BDR-NNN-*.md) live in 1 file per decision with a leanINDEX.md, enforced by a deterministicStophook. - Unbiased 3-lens final audit — A
blind-edge-huntersubagent (or optional headless Claude/Codex runner) reviews the change from the diff alone, without plans or trackers, and an independent@acceptance-auditorchecks it against the plan. - Resilient local MCP broker (
ignis-swarm_broker) — Supervisesstdioand Streamable HTTP MCP servers behind 4 compact meta-tools with auto-reconnect, per-workspace pooling, local-first/global-fallback config, and spill-to-file output truncation.
Prerequisites & Installation
- Google Antigravity (App or
agyCLI) - Node.js
>= 22(powers the zero-dependency hooks and bundled MCP broker). CI runs Node 22 and 24 on Ubuntu and Windows, and Node 24 on macOS.
Install via Antigravity CLI
# Install directly from GitHub
agy plugin install https://github.com/magalz/ignis-swarm
# Or install from a local clone
git clone https://github.com/magalz/ignis-swarm.git
agy plugin install ./ignis-swarm
Verify Installation
agy plugin list
You should see ignis-swarm (enabled, 1.4.0) with 11 skills, 4 agents, 1 rule, 5 hooks, and 1 MCP server. The four agents are verifier, acceptance-auditor, doc-auditor and blind-edge-hunter.
First-Run Setup (/ignis-onboarding)
On your first interactive session in a project workspace, ignis-swarm prompts you to run /ignis-onboarding (you can also run it any time to reconfigure). Subagents and /swarm workers never receive onboarding prompts.
The wizard probes your environment (with secrets redacted), briefs you neutrally before every question (no default labels), and configures 5 areas across Batch 1 (Q1–Q5) + conditional Batch 2 (Q6–Q7), saved to ~/.ignis-broker/onboarding.json:
- Managed MCP Servers (Q1) — Selectively register discovered MCP servers into
ignis-brokerwithout modifying your existing~/.gemini/config/mcp_config.json. - Opt-In Memtrace (Q2) — Optionally enable Memtrace code-intelligence health checks and broker integration (disabled by default).
- Phase 4 Blind Review Routing (
reviewRouting, Q3 + Q6–Q7) — Q3 asks whether to use another model family (Claude Code CLI or Codex CLI) as blind reviewer; "No" savesantigravity_gemini_only. If "Yes", Batch 2 Q6 picks routing priority and Q7 picks the CLI backend (claudeOpus /codexSol) with an optional smoke test:antigravity_gemini_only— Uses only the bundled Antigravityblind-edge-huntersubagent (zero external CLIs required).antigravity_first— Usesblind-edge-hunter(Gemini Pro, not Claude Opus) first, falling back to a headless external CLI (claudeOpus orcodexSol) if native quota runs out.headless_always— Runsscripts/run-blind-review.mjsdirectly, falling back to native only if the external CLI fails (fallbackToNative: true).PreToolUse(run_command|invoke_subagent) blocks premature nativeblind-edge-huntercalls, andSessionStartinjects[ignis-swarm][Phase 4 Review Routing]with the resolved script path.
- Antigravity Plan Tier (
executionModes.paidPlan, Q4) — Record whether the paid modes (/boost,/teamwork) are available:truemeans they are available,falsemeans they are not available on the user's plan, andnullmeans the plan tier is not recorded. - Opt-In Phase 0 Plan Review (
planReview, Q5 + Q7) — Configure optional 1-pass pre-proposal plan review viascripts/run-plan-review.mjs(disabled,native_subagent, orheadless_always; defaulteffort: "medium", bounded 512 KiB plan input, Claude--tools ""/ Codex isolated empty tempcwd). Q7 also picks the CLI backend when Q5 isheadless_always. Upgrading from v1.2.x: the "native subagent first, external CLI as fallback" strategy is gone. A stored value of it loads asnative_subagentand no longer falls back to the external CLI; chooseheadless_alwaysif you want the CLI.
Issue trackers and the backlog are no longer global: the wizard ends by checking the project's setup status and offering ignis-project-setup when setup is pending.
Deep dive into
onboarding.jsonschema, CLI probing, and smoke tests: Getting Started & Onboarding.
Project Setup (ignis-project-setup)
After onboarding is done or skipped, the first interactive session in a project offers ignis-project-setup; run it any time to reconfigure. It detects the stack from git ls-files, lockfiles, key files, CI files, package.json scripts and the git remote, reads a bounded set of those files, and drafts a short brief. It asks at most four open questions (purpose; conventions no tool enforces; fragile or do-not-touch areas; delivery) plus two choices: where the brief lives and where deferred work goes. A question the investigation already answered is skipped.
The brief holds only facts an agent cannot cheaply discover: purpose, commands, non-obvious layout, conventions, constraints and delivery. It is never a generated codebase summary and never a secret value. The default is the committed .agents/rules/ignis-project.md with trigger: always_on, which Antigravity loads in the App, CLI and IDE and /swarm workers see once it is committed. The alternative is machine-local .ignis-swarm/project-brief.md, for a repository you do not want to commit to; SessionStart then points the agent at it, and only when git confirms nothing under .ignis-swarm/ is tracked.
Freshness is deterministic. Setup records SHA-256 hashes of the key files (manifests, lockfiles, CI files, tool-version files) in .ignis-swarm/project.json; SessionStart compares them with plain file reads and prints only a count and a command. At closure, every mode refreshes the brief when the slice changed what it states, or runs mark-fresh when status reports a stale fingerprint; /swarm does this at the end of Phase 3, before its Phase 4 review.
Trackers and the backlog are per project, in machine-local .ignis-swarm/project.json, never in a committed file. A project without setup, or with setup skipped, keeps using the global onboarding.json trackers. If git tracks any file under .ignis-swarm/, or git fails, the project state is refused. The backlog goes to the local .ignis-swarm/backlog.json or the project's first tracker; issues in an external tracker are created only after you confirm one batch that names the tracker kind and ref, and a failed tracker call falls back to the local backlog.
node <plugin-root>/scripts/ignis-project.mjs status --json
Day-to-Day Commands & Skills
1. Primary Feature Workflow (Use Native Antigravity Commands)
rules/AGENTS.md automatically wires Antigravity's native commands to ignis-swarm:
| Step | Command you type | What happens |
|---|---|---|
| 1. Plan | /plan <feature or slice goal> |
Loads ignis-plan (Phase 0): silent three-archetype triage plus the Split Gate, early mode selection (Solo, /swarm, /boost, /teamwork), YAGNI gate, frozen contracts, optional 1-pass run-plan-review.mjs, and post-approval Phase 0.5 .ignis-swarm/active/ creation via ignis-workspace.mjs prepare. |
| 2. Compact | Run /compact via the slash menu with the slim Preserve: ... pointer payload (from Phase 0) |
Compacts the conversation cleanly while pointing to .ignis-swarm/active/manifest.json, real branch, baseSha, and tracker IDs. |
| 3. Execute | Run /swarm (or /boost, /teamwork, or continue in Solo) via the slash menu with the payload-only launch block |
Executes the approved plan natively in the chosen mode. For /swarm, loads ignis-swarm to read pre-baked briefs from .ignis-swarm/active/, dispatch waves, verify each task, write ADRs/BDRs, refresh the project brief, run the 3-lens final audit, and archive .ignis-swarm/active/. |
[!IMPORTANT]
Handoffs are payload-only: pasting text that starts with/compact,/swarm,/boost,/teamwork, or/effortsends plain text and does not trigger the command; pick the command from the slash menu and paste only the payload.Always use native
/swarm(not/ignis-swarmalone) to run a swarm.
Antigravity only activates the native Swarm message board andswarmtool when you invoke/swarmexplicitly. Once/swarmstarts,rules/AGENTS.mdautomatically loads theignis-swarmcoordinator playbook.
2. Standalone On-Demand Playbooks
Call these directly whenever you don't need a full multi-wave slice:
| Command | When to use it |
|---|---|
/ignis-onboarding |
First-run setup or reconfiguring MCP broker servers, Memtrace, or reviewRouting. |
/ignis-project-setup |
Detect the project stack, confirm the project brief, and bind per-project trackers and backlog. |
/ignis-bug-fix |
Standalone bugs or regressions: failing repro test first (Red), root-cause trace, attack-the-premise after 2 failed attempts, minimal fix, runtime proof. |
/ignis-investigate |
Read-only architectural questions or incident forensics (optionally parallelized), separating Observed, Inferred, and Unknown facts. |
/ignis-benchmark |
Methodological audit ("Explain the Number") before trusting or reporting any latency, throughput, memory, or speedup claim. |
3. Stage Skills (Auto-Triggered & Usable Directly)
These skills trigger automatically during /plan and /swarm, and also work standalone when called directly:
| Command | Standalone use |
|---|---|
/ignis-tdd-bdd |
Implement a task with strict BDD + TDD, boundary-only mocking, and zero narrative inline comments. |
/ignis-review |
Run @verifier checks or the 3-lens final audit (blind-edge-hunter + @acceptance-auditor) on your current diff. |
/ignis-audit-docs |
Create/update docs/adr/ADR-NNN-*.md, docs/bdr/BDR-NNN-*.md, INDEX.md, and optional tracker links. |
/ignis-broker |
Query/call managed MCP servers via ignis-swarm_broker or troubleshoot the broker daemon. |
/ignis-plan |
Run Phase 0 planning rules directly outside Antigravity's native /plan UI mode. |
Full reference with examples and trigger matrix: Commands & Skills Reference.
The 5-Phase Workflow
flowchart LR
P0["Phase 0: /plan\n3 Archetypes + Split Gate · Mode Select\nYAGNI · Optional Plan Review\nPhase 0.5 .ignis-swarm/active/"]
HO["Pointer Handoff\nSlim /compact + payload\nMode Launch + payload"]
P12["Phases 1-2: /swarm Waves\nPre-Baked 5-Field Briefs\nBDD+TDD · @verifier · Escalation"]
P3["Phase 3: @doc-auditor\n1-File ADRs/BDRs · INDEX.md\nCoordinator: Brief Refresh · Opt-In Sync"]
P4["Phase 4: 3-Lens Audit\nblind-edge-hunter (diff-only)\n@acceptance-auditor"]
P5["Phase 5: Closure\nArchive .ignis-swarm/active/\nSummary & Final /compact"]
P0 --> HO --> P12 --> P3 --> P4 --> P5
- Phase 0 (
/plan+ Post-Approval Phase 0.5): Silently classifies the request into 1 of 3 archetypes (Bootstrap,Build / Change+ modifiers,Investigate) or stops at theSplit Gate, selects the execution mode early (Solo,/swarm,/boost, or/teamwork), maps callers/callees anddocs/{adr,bdr}/INDEX.md, enforcessubtract-before-you-addand YAGNI, freezes shared contracts (Wave 0), and optionally runs a 1-pass pre-proposal review viascripts/run-plan-review.mjs. After explicit user approval, Phase 0.5 creates ephemeral.ignis-swarm/active/(manifest.json,plan.md, and/swarmworker briefs) in one atomicpreparestep viascripts/ignis-workspace.mjs. - Phases 1–2 (
/swarmCoordinator + Workers): Marks the active planin_progress(ignis-workspace.mjs set-status), reads pre-baked briefs and posts them verbatim onto the/swarmboard (since linked git worktrees don't inherit git-ignored.ignis-swarm/), runs at Balanced /mediumeffort when briefs are pre-baked, pairs waves with@verifier(Red → Green proof, scope check, anti-mock check, factual coverage), delegates 2× gate failures (attack-the-premise) to a fresh-context high-reasoning escalation subagent (neverfork: "coordinator"), and pauses for/compactat wave boundaries when context pressure rises. - Phase 3 (
@doc-auditor):@doc-auditorwrites 1 file per[ADR]/[BDR]decision and updatesINDEX.md; the coordinator then refreshes the project brief (or runsmark-fresh) so the four-step closure runs in the same order in every mode, and optionally mirrors links/comments into your connected issue tracker. - Phase 4 (3-Lens Final Audit): Combines
blind-edge-hunter(reviews the diff only:grep_search,find_by_nameandrun_commandlimited togit diff, no file viewer,inheritMcp: false,model: pro; or headless Claude/Codex viascripts/run-blind-review.mjs, which reads the committed, staged, unstaged and untracked non-ignored diff from stdin) with@acceptance-auditor(full access to plan, tracker, and ADRs/BDRs). - Phase 5 (Closure): Fixes proven
HIGH/MEDIUMfindings, archives.ignis-swarm/active/from the main checkout viascripts/ignis-workspace.mjs archive --reason completed, reports observed coverage and audit verdicts, and emits a pre-filled post-slice/compactcheckpoint.
Detailed walkthrough, brief templates, model routing, and compaction checkpoints: Five-Phase Swarm Workflow.
Built-In Resilience & Safety at a Glance
Resilient MCP Broker (ignis-swarm_broker)
Exposes 4 compact meta-tools (broker_list, broker_describe, broker_call, broker_status) backed by a detached localhost Node.js daemon with lazy auto-start, crash recovery, per-workspace pooling, local-first (.agents/ignis-broker.json) + global-fallback (~/.ignis-broker/servers.json) config, ${VAR} secret expansion from ~/.ignis-broker/.env (global config only), and spill-to-file output truncation.
# Quick CLI diagnostics
node scripts/ignis-broker.mjs status
node scripts/ignis-broker.mjs discover-mcp
How the broker behaves:
- Local configs need a git repo and your trust.
.agents/ignis-broker.jsonis found only inside a git repository, and is ignored until you review it and runnode scripts/ignis-broker.mjs trust --cwd <repo>. Trust is bound to the file's exact bytes, so editing it voids trust.trust --listshows each entry astrusted,changedormissing.${VAR}is never expanded in a local config; keep secrets in the globalservers.json. See SECURITY.md for the limits of this trust. import-mcpmerges into~/.ignis-broker/servers.jsonand keeps servers registered earlier (a server with the same name is replaced). Literal env/header secrets move to~/.ignis-broker/.envasIGNIS_<SERVER>_<KEY>; the import is rejected if a generated variable name collides with another server's variable or a value contains a line break.- Working directory. A stdio server without a
cwdstarts in the broker data directory (the daemon's working directory); aperWorkspaceserver without one starts in the workspace's repository root. - Lifecycle.
stopwaits for the daemon and fails, naming its pid, if it survives. The daemon is started with--data-dir <dir>, and the broker hard-kills only a daemon that serves the same data dir. A daemon started by an older version has no--data-dir: it is asked to shut down, and if it ignores that, stop it by hand once. An explicitrestartstops busy servers at once. A config change lets in-flight calls finish first. The daemon exits afteridleTimeoutSecs(default 900) without traffic. - Errors mask known secrets. In errors the broker returns, including fallback errors, expanded
${VAR}values, header values, URL credentials and query values, and every stdioenvvalue are replaced with***when they are 4 or more characters long.import-mcp --dry-run,trustandonboarding --probeprint server configs with everyenvand header value as***REDACTED***and URLs without credentials or query;discover-mcpprints only server names and flags.
Automatic Lifecycle Hooks (hooks.json)
| Hook | What it does automatically |
|---|---|
SessionStart |
Prompts first-run onboarding; offers project setup when the project has none; injects [ignis-swarm][Phase 4 Review Routing] notices and, only for headless_always (plus a one-line notice while a strategy removed in v1.3.0 is still stored), [ignis-swarm][Phase 0 Plan Review] (main session only); reports how many key files changed since the project brief was last checked; points at .ignis-swarm/project-brief.md for a local brief, only when git tracks nothing under .ignis-swarm/; reports the number of open local backlog items; surfaces active .ignis-swarm/active/manifest.json state with the plan's age and an ask-before-resuming hint (including greenfield dirs containing only .ignis-swarm/), detects docs/{adr,bdr}/INDEX.md, warns on local broker config errors/fallbacks, and checks opt-in Memtrace health. |
PreToolUse (run_command|invoke_subagent) |
Enforces Phase 4 routing (blocks premature blind-edge-hunter under headless_always). Also blocks --no-verify, plain force-push to main/master, git reset --hard, and destructive root deletions; asks confirmation before other force pushes or git clean -f. |
PostToolUse |
Logs lightweight per-conversation JSONL audit entries (~/.ignis-broker/audit/<id>.jsonl) and tags test executions. |
PostInvocation |
Deterministic compaction-watch.mjs monitors active transcript size (default 550 KB) and prompts a pre-filled /compact checkpoint. |
Stop |
Blocks finishing, at most twice per user turn, if any ADR-NNN/BDR-NNN file is missing from INDEX.md or if added git diff lines contain .only, .skip, #[ignore], t.Skip, @ts-ignore, eslint-disable, bare // nolint, or new TODO/FIXME; on a third or later attempt in the same turn it stops blocking and writes the remaining issues to stderr. No test file is exempt; Markdown and text files are. |
Full Documentation (GitHub Wiki)
Detailed guides, schemas, CLI flags, environment variables, and troubleshooting live in the GitHub Wiki:
| Wiki Page | What you'll find |
|---|---|
| Home | Documentation map by role and task |
| Getting Started & Onboarding | Install methods, Q1–Q5 + Q6–Q7 wizard walkthrough, project setup, onboarding.json schema, CLI management |
| Commands & Skills Reference | All 11 skills, native /plan & /swarm rules, triggers, and standalone examples |
| Five-Phase Swarm Workflow | Adaptive /plan (3 archetypes plus Split Gate, mode selection, Phase 0.5 .ignis-swarm/), 5-field nuclear briefs, cache-preserving escalation, compaction checkpoints |
| TDD/BDD & Audit Documentation | BDD+TDD loop, anti-Goodhart rules, mutation testing, ADR/BDR templates, tracker profiles |
| Blind Review & Final Audit | @verifier, blind-edge-hunter, run-blind-review.mjs & run-plan-review.mjs (Claude Opus & Codex), @acceptance-auditor |
| Resilient MCP Broker | Architecture, 4 meta-tools, all 15 CLI commands, config precedence, .env secrets, spill-to-file |
| Lifecycle Hooks & Guardrails | Exact rules for all 5 hooks, audit logs, and all environment variables |
| Architecture, Troubleshooting & FAQ | 8 engineering principles, ADR index, common issues & fixes, FAQ |
Validation, Tests & Architecture Decisions
# Strict Antigravity plugin validation
agy plugin validate --strict .
# Full automated test suite (hooks, broker, onboarding, workspace state, plan/blind review runners, doc contracts)
node --test --test-timeout=180000 tests/*.test.mjs
- Architecture Decision Records: docs/adr/INDEX.md
- Support & Issue Reporting: agyswarm.magalz.space
- Security Policy: SECURITY.md · Contributing: CONTRIBUTING.md
License
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found